git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git compile with debug symbols

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Mar 4, 2014, 16:03 UTC
Message-ID
<vpqtxbene6o.fsf@anie.imag.fr>
In-Reply-To
<87a9d6hsf3.fsf@fencepost.gnu.org>
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/
Previous: David KastrupNext: Mahesh Pujari
Message 3 of 8 in “git compile with debug symbols”
  1. Mahesh PujariMar 4, 2014
  2. David KastrupMar 4, 2014
  3. Matthieu MoyMar 4, 2014
  4. Mahesh PujariMar 4, 2014
  5. David KastrupMar 4, 2014
  6. Mahesh PujariMar 5, 2014
  7. karthik nayakMar 4, 2014
  8. Tanay AbhraMar 4, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.