This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11036] New: Python: provide access to "hidden" variables
- From: "andre dot poenitz at nokia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 30 Nov 2009 17:33:42 -0000
- Subject: [Bug python/11036] New: Python: provide access to "hidden" variables
- Reply-to: sourceware-bugzilla at sourceware dot org
It is possible to iterate over most local variables that are in scope using
while not block.function is None:
for symbol in block:
value = frame.read_var(symbol.print_name) [...]
block = block.superblock
but that misses "hidden" variables (i.e. that are defined in multiple scopes)
as "read_var" always finds the innermost.
--
Summary: Python: provide access to "hidden" variables
Product: gdb
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: andre dot poenitz at nokia dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11036
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.