gdb/2096: Missing local symbols in main()

Daniel Jacobowitz drow@false.org
Sun Jun 24 20:18:00 GMT 2007


The following reply was made to PR gdb/2096; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: es@rolotec.ch
Cc: gdb-gnats@sources.redhat.com, bi@rolotec.ch
Subject: Re: gdb/2096: Missing local symbols in main()
Date: Sun, 24 Jun 2007 16:12:52 -0400

 I apologize for never getting back to you about this problem.
 
 On Tue, Mar 07, 2006 at 11:47:02AM -0000, es@rolotec.ch wrote:
 > Function lookup_minimal_symbol() does not find the symbol. "nm -a" does not show the symbol, "readelf -a --debug-dump <prog>" finds the symbol:
 > ----------
 >  <3><36d84>: Abbrev Number: 121 (DW_TAG_variable)
 >      DW_AT_name        : xxx 
 >      DW_AT_decl_file   : 1      
 >      DW_AT_decl_line   : 302    
 >      DW_AT_type        : <15c2> 
 >      DW_AT_location    : 2 byte block: 91 5f    (DW_OP_fbreg: -33)
 > ------------
 
 This is a compiler bug, not a GDB bug.  The <3> means this is three
 deep in the tree; its parent is a lexical block, and the lexical block
 does not start until too far down the function (in the example you
 sent me, line 125 of main instead of around line 55).
 
 When I recompile your example with a more recent G++, it works fine.
 So I am going to close this report.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery



More information about the Gdb-prs mailing list