This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11627] No access to automatic variables in constructors and destructors


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]