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 symtab/8300] no local symbol information within nested or nesting procedures


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


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