This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11627] No access to automatic variables in constructors and destructors
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 24 May 2010 14:58:11 -0000
- Subject: [Bug c++/11627] No access to automatic variables in constructors and destructors
- References: <20100524134713.11627.thor@math.tu-berlin.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2010-05-24 14:58 -------
I think this is actually a compiler bug.
It works for me with gcc 4.4.1 and gdb 7.1.
See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39961
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
You can verify using "readelf -wi" or some other dwarf dumper.
Search for tmp in the output. I see:
<3><e5>: Abbrev Number: 17 (DW_TAG_variable)
<e6> DW_AT_name : tmp
<ea> DW_AT_decl_file : 1
<eb> DW_AT_decl_line : 16
<ec> DW_AT_type : <0x8f>
*** This bug has been marked as a duplicate of 8246 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://sourceware.org/bugzilla/show_bug.cgi?id=11627
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.