gdb/2096: Missing local symbols in main()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gdb/2096: Missing local symbols in main()

es-2

>Number:         2096
>Category:       gdb
>Synopsis:       Missing local symbols in main()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 07 11:48:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     [hidden email]
>Release:        6.3, 6.4
>Organization:
>Environment:
amd64 SuSE SLES9
>Description:
Local symbols in main() are not found ('No symbol "xxx" in current context.'). argc and argv are OK. Local symbols in other functions are OK.
Fix described in Bug #1870 does not work.
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)
------------
>How-To-Repeat:
Compiled somewhat large programs with g++ 3.3
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
Reply | Threaded
Open this post in threaded view
|

Re: gdb/2096: Missing local symbols in main()

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

From: Daniel Jacobowitz <[hidden email]>
To: [hidden email]
Cc: [hidden email], [hidden email]
Subject: Re: gdb/2096: Missing local symbols in main()
Date: Tue, 7 Mar 2006 22:40:43 -0500

 On Tue, Mar 07, 2006 at 11:47:02AM -0000, [hidden email] wrote:
 > >How-To-Repeat:
 > Compiled somewhat large programs with g++ 3.3
 
 Sorry, but we can't help you with a bug report this vague; you would
 need to post a testcase that showed something going wrong.
 
 --
 Daniel Jacobowitz
 CodeSourcery