diff options
author | Siva Chandra <sivachandra@chromium.org> | 2013-12-12 15:18:27 -0800 |
---|---|---|
committer | Siva Chandra <sivachandra@chromium.org> | 2013-12-12 15:21:53 -0800 |
commit | a16b0e220dfc49ed814e779d45faab84e31a4e42 (patch) | |
tree | 67f4c4a03309af6cd25582dd435d97781a24ca53 /gdb/python/python-internal.h | |
parent | ec0d6081a0144a61dfc79a10aaf2b96e29286180 (diff) | |
download | fsf-binutils-gdb-a16b0e220dfc49ed814e779d45faab84e31a4e42.zip fsf-binutils-gdb-a16b0e220dfc49ed814e779d45faab84e31a4e42.tar.gz fsf-binutils-gdb-a16b0e220dfc49ed814e779d45faab84e31a4e42.tar.bz2 |
2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
PR python/16113
* NEWS (Python Scripting): Add entry for the new feature and the
new attribute of gdb.Field objects.
* python/py-type.c (gdbpy_is_field): New function
(convert_field): Add 'parent_type' attribute to gdb.Field
objects.
* 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 to test usage of
gdb.Field objects as subscripts on gdb.Value objects.
doc/
* gdb.texinfo (Values From Inferior): Add a note about using
gdb.Field objects as subscripts on gdb.Value objects.
(Types In Python): Add description about the new attribute
"parent_type" of gdb.Field objects.
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r-- | gdb/python/python-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 125670e..dade7c7 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -290,6 +290,7 @@ PyObject *gdbpy_newest_frame (PyObject *self, PyObject *args); PyObject *gdbpy_selected_frame (PyObject *self, PyObject *args); PyObject *gdbpy_block_for_pc (PyObject *self, PyObject *args); PyObject *gdbpy_lookup_type (PyObject *self, PyObject *args, PyObject *kw); +int gdbpy_is_field (PyObject *obj); PyObject *gdbpy_create_lazy_string_object (CORE_ADDR address, long length, const char *encoding, struct type *type); |