This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/8300] no local symbol information within nested or nesting procedures
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 29 Jul 2010 19:43:34 -0000
- Subject: [Bug symtab/8300] no local symbol information within nested or nesting procedures
- References: <20030429130800.8300.stolfi@ic.unicamp.br>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2010-07-29 19:43 -------
I looked at this a little more deeply today, with some advice from Roland.
The problem in this case is that the 'subproc' function does not reference
any variables from its enclosing context. So, gcc does not emit
DW_AT_static_link. I think the right thing to do in this case is to throw
an error for any variable from the outer function that requires a frame.
If you add a mention of 'w' to 'subproc', then the DWARF looks better.
However, gdb doesn't ever use DW_AT_static_link, so if you get the right
answer it is purely by accident.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=8300
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.