public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/15464] New: Accessing anonymous unions from Python
@ 2013-05-14  9:36 andre.poenitz at digia dot com
  2013-05-14 13:26 ` [Bug python/15464] " tromey at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: andre.poenitz at digia dot com @ 2013-05-14  9:36 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15464

             Bug #: 15464
           Summary: Accessing anonymous unions from Python
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andre.poenitz@digia.com
    Classification: Unclassified


If I have a 

  struct X { union { Y y; Z z; } } x; 

and later 

  a = gdb.parse_and_eval("x")

there seems to be no easy way to access the "union" "level".

'a' itself is the struct, 'a["y"]' transparently skips the union and gives the
named member.

It would be nice if there was a way to iterate through the children of the
struct. MI/varobjs nowaday seem to have that ability.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-01-15 13:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14  9:36 [Bug python/15464] New: Accessing anonymous unions from Python andre.poenitz at digia dot com
2013-05-14 13:26 ` [Bug python/15464] " tromey at redhat dot com
2013-12-27  6:38 ` tromey at redhat dot com
2013-12-30 17:03 ` poenitz at htwm dot de
2014-01-14  1:44 ` cvs-commit at gcc dot gnu.org
2014-01-15 13:12 ` cvs-commit at gcc dot gnu.org

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