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

Re: git compile with debug symbols

From
MPMahesh Pujari <pujarimahesh_kumar@yahoo.com>
Date
Mar 5, 2014, 06:27 UTC
Message-ID
<1394000820.21154.YahooMailNeo@web162905.mail.bf1.yahoo.com>
In-Reply-To
<8761ntj4ny.fsf@fencepost.gnu.org>
Hello all,
 Thanks for replying back, figured out (offcourse had to search in net) that 'gdb' version I had was 6.7.1 (OS Ubuntu 12.04 LST), not sure how I got this. Then I upgraded gdb to version 7.4-2012.04 and things got going.

thanks, mpujari

On Tuesday, March 4, 2014 10:13 PM, David Kastrup <dak@gnu.org> wrote: Mahesh Pujari <pujarimahesh_kumar@yahoo.com> writes:

Show 12 quoted lines
> Thanks David for the reply. I think I need to do more ground work of
> going through how to use gdb.
> Basically I am java programmer and I was trying out to debug git
> source using eclipse CDT and as we do in java, I was trying out to set
> break point but failed with errors as "No line 396 in file "help.c"".
> And using gdb too I end up with same error.
>
> # (gdb) break help.c:396
> # No line 396 in file "help.c".
>
>
> Am I missing something.

There is just no line 396 known to gdb.  It seems like you are indicating a function header.  That's not code.  Either take the function _name_ rather than a line number (that's usually most reliable) or take the first line of actual code.

-- 
David Kastrup
Previous: David KastrupNext: karthik nayak
Message 6 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.