gdb/2096: Missing local symbols in main()
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
>Release:        6.3, 6.4
amd64 SuSE SLES9
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)
Compiled somewhat large programs with g++ 3.3


More information about the Gdb-prs mailing list