Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC/Patch] PR 16113: Allow gdb.Field objects as subscripts on gdb.Value objects
@ 2013-12-09  1:02 Siva Chandra
  2013-12-09  1:04 ` Siva Chandra
  0 siblings, 1 reply; 4+ messages in thread
From: Siva Chandra @ 2013-12-09  1:02 UTC (permalink / raw)
  To: gdb-patches

Hi,

The attached patch addresses the marked PR. The doc and NEWS changes
are incomplete as it depends on whether the route I have taken in this
patch is acceptable. I will fill them after I get (dis/)approval.
Other changes to the doc and NEWS are present.

2013-12-08  Siva Chandra Reddy  <sivachandra@google.com>

        PR 16113: Allow gdb.Field objects with the subscript operator on
        gdb.Value objects of struct/class values.
        * NEWS (Python Scripting): Add entry for the new feature.
        * python/py-type.c (gdbpy_is_field): New function
        * python/py-value.c (valpy_getitem): Allow subscript value to be
        a gdb.Field object.
        (value_has_field): New function
        (get_field_flag): New function
        * python/python-internal.h (gdbpy_is_field): Add declaration.

        testsuite/
        * gdb.python/py-value-cc.cc: Improve test case.
        * gdb.python/py-value-cc.exp: Add new tests.

        doc/
        * gdb.texinfo (Values From Inferior): Add a note about using
        gdb.Field objects as subscripts on gdb.Value objects.


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

end of thread, other threads:[~2013-12-09 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-09  1:02 [RFC/Patch] PR 16113: Allow gdb.Field objects as subscripts on gdb.Value objects Siva Chandra
2013-12-09  1:04 ` Siva Chandra
2013-12-09  3:50   ` Eli Zaretskii
2013-12-09 10:30   ` Phil Muldoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox