This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/43478] New: Missing DW_AT_location for a variable
- From: "jan dot kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Mar 2010 15:14:28 -0000
- Subject: [Bug debug/43478] New: Missing DW_AT_location for a variable
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc (GCC) 4.5.0 20100322 (experimental)
-------------------------------------------------------------------------------
int h (void);
int f (void)
{
int x, y;
x = h () * 2;
y = h () * 2;
return x + y;
}
-------------------------------------------------------------------------------
-c -Wall -g -O2
-------------------------------------------------------------------------------
<2><50>: Abbrev Number: 3 (DW_TAG_variable)
<51> DW_AT_name : x
<55> DW_AT_type : <0x67>
<59> DW_AT_location : 0x4c (location list)
<2><5d>: Abbrev Number: 4 (DW_TAG_variable)
<5e> DW_AT_name : y
<62> DW_AT_type : <0x67>
... but no DW_AT_location
--
Summary: Missing DW_AT_location for a variable
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jan dot kratochvil at redhat dot com
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43478