public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/16113] New: gdb.Value needs a way to reference a superclass sub-object
@ 2013-11-01 18:26 tromey at redhat dot com
  2013-12-12 23:26 ` [Bug python/16113] " cvs-commit at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2013-11-01 18:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16113

            Bug ID: 16113
           Summary: gdb.Value needs a way to reference a superclass
                    sub-object
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at redhat dot com

Right now if you have a gdb.Value whose type is some class,
and the class has a superclass, then there is no good way
to refer to the phony "field" that gdb creates to represent
the superclass.

That is, for an ordinary field you can use value["fieldname"] --
but the superclass field doesn't have a regular name.

We should extend valpy_getitem to also accept a gdb.Field
as an index.  This way a program could use the Type API to
find the superclass field, and then pass this to the [] operation
to extract the desired sub-object.

-- 
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-11-01 18:26 [Bug python/16113] New: gdb.Value needs a way to reference a superclass sub-object tromey at redhat dot com
2013-12-12 23:26 ` [Bug python/16113] " cvs-commit at gcc dot gnu.org
2013-12-13 19:25 ` tromey at redhat dot com
2013-12-27  6:38 ` tromey at redhat dot com
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).