public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/11036] New: Python: provide access to "hidden" variables
@ 2009-11-30 17:33 andre dot poenitz at nokia dot com
  2010-01-19 14:16 ` [Bug python/11036] " pmuldoon at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: andre dot poenitz at nokia dot com @ 2009-11-30 17:33 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-28 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-30 17:33 [Bug python/11036] New: Python: provide access to "hidden" variables andre dot poenitz at nokia dot com
2010-01-19 14:16 ` [Bug python/11036] " pmuldoon at redhat dot com
2010-01-19 14:29 ` pmuldoon at redhat dot com
2010-01-20 13:20 ` pmuldoon at redhat dot com
2010-02-24 22:07 ` pmuldoon at redhat dot com
2010-02-28 21:57 ` cvs-commit at gcc dot gnu dot org
2010-02-28 21:59 ` pmuldoon at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).