This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/10002] extern optimized out symbols print: Address of symbol is unknown.
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 26 Mar 2009 14:23:39 -0000
- Subject: [Bug symtab/10002] extern optimized out symbols print: Address of symbol is unknown.
- References: <20090325085529.10002.jan.kratochvil@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jan dot kratochvil at redhat dot com 2009-03-26 14:23 -------
As there is DW_AT_declaration present according to the DWARF spec such DIE
cannot represent an <optimized out> variable:
DWARF3 4.1 point 4:
# In a variable entry representing the definition of a variable (that is, with
# no DW_AT_declaration attribute) if no location attribute is present [...],
# the variable is assumed to exist in the source code but not in the executable
# program [...]
Currently the compiler cannot optimize out variables referenced from other
compilation units.
Discussed at:
http://sourceware.org/ml/gdb/2009-03/threads.html#00159
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=10002
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.