Re: git compile with debug symbols
David Kastrup <dak@gnu.org> writes:
Show 9 quoted lines
> Mahesh Pujari <pujarimahesh_kumar@yahoo.com> writes:
>
>> Hello,
>> I am trying to compile git with debug symbols and failed to do so
>> (basically I am a noob), can some one direct me to links or mailing
>> list (have searched but couldn't find) or doc's so that I can debug
>> git using gdb.
>
> git is compiled with debug symbols by default.
... but:
1) some Git commands are shell-scripts, on which you can't use gdb.
2) some Git commands fork other commands, and then you have to deal with
multiple processes (i.e. putting a breakpoint in a piece of code
executed by the subprocess won't work if gdb is running on the other
one).
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/