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

Re: git compile with debug symbols

From
Tanay Abhra <tanayabh@gmail.com>
Date
Mar 4, 2014, 17:53 UTC
Message-ID
<loom.20140304T184714-119@post.gmane.org>
In-Reply-To
<1393947964.16150.YahooMailNeo@web162902.mail.bf1.yahoo.com>
Mahesh Pujari <pujarimahesh_kumar <at> 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.
Show 5 quoted lines
> 
> thanks,
> mpujari
> 
> 
Hi,

I tried to put a break point at help.c:396 and it was successful . I think that the problem is either your symbols are not loaded. Nevertheless I will walk you through the steps.

$ git clone https://github.com/git/git $ make $ gdb ./git $(gdb)> gdb break help.c:396 Breakpoint 1 at 0x80f8b40: file help.c, line 396.

Cheers, Tanay Abhra.

Previous: karthik nayak
Message 8 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.