This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2096: Missing local symbols in main()
- From: es at rolotec dot ch
- To: gdb-gnats at sources dot redhat dot com
- Cc: bi at rolotec dot ch
- Date: 7 Mar 2006 11:47:02 -0000
- Subject: gdb/2096: Missing local symbols in main()
- Reply-to: es at rolotec dot ch
>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: