Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb
- From
Victor Leschuk <vleschuk@gmail.com>
- Date
- Oct 29, 2015, 05:15 UTC
- Message-ID
- <5631AB75.5030800@gmail.com>
- In-Reply-To
- <082d6474a31c405b16087f76de7bc5d01faba529.1445865176.git.johannes.schindelin@gmx.de>
>
> +if test -n "$TEST_GDB_GIT"
> +then
> + exec gdb -args "${GIT_EXEC_PATH}/@@PROG@@" "$@"Maybe we could make $TEST_GDB_GIT not just a boolean flag? It would be useful to contain "gdb" executable name. It would allow to set path to GDB when it is not in $PATH, set different debuggers (for example, I usually use cgdb), or even set it to /path/to/gdb_wrapper.sh which could contain different gdb options and tunings.
-- Victor