gdb/2096: Missing local symbols in main()

es@rolotec.ch es@rolotec.ch
Tue Mar 7 11:48:00 GMT 2006


>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:     es@rolotec.ch
>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:



More information about the Gdb-prs mailing list