diff options
author | Christian Biesinger via gdb-patches <gdb-patches@sourceware.org> | 2019-05-23 16:37:29 -0500 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-06-04 09:46:06 -0600 |
commit | e1f2e1a2dadbaeffe0a8a6da7aab7effc6b046d2 (patch) | |
tree | c9b8498d0f320163e8edef62c5e2c5619028b27d /gdb/doc | |
parent | a9d96ab97edabea31bed089bfd4caca80838e31c (diff) | |
download | gdb-e1f2e1a2dadbaeffe0a8a6da7aab7effc6b046d2.zip gdb-e1f2e1a2dadbaeffe0a8a6da7aab7effc6b046d2.tar.gz gdb-e1f2e1a2dadbaeffe0a8a6da7aab7effc6b046d2.tar.bz2 |
Add an objfile getter to gdb.Type
This allows users of the Python API to find the objfile where a type
was defined.
gdb/ChangeLog:
gdb/ChangeLog
2019-06-04 Christian Biesinger <cbiesinger@google.com>
Add objfile property to gdb.Type.
* gdb/NEWS: Mention Python API addition.
* gdb/python/py-type.c (typy_get_objfile): New method.
gdb/doc/ChangeLog
2019-06-04 Christian Biesinger <cbiesinger@google.com>
* gdb/doc/python.texi: Document new gdb.Type.objfile property.
gdb/testsuite/ChangeLog
2019-06-04 Christian Biesinger <cbiesinger@google.com>
* gdb/testsuite/gdb.python/py-type.exp: Test for new
gdb.Type.objfile property.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/python.texi | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 59de4e6..ea98096 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2019-06-04 Christian Biesinger <cbiesinger@google.com> + + * gdb/doc/python.texi: Document new gdb.Type.objfile property. + 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> * gdb.texinfo (Help): Document the new -v apropos flag. diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 98e52bb..f769ad0 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -1087,6 +1087,11 @@ languages have this concept. If this type has no tag name, then @code{None} is returned. @end defvar +@defvar Type.objfile +The @code{gdb.Objfile} that this type was defined in, or @code{None} if +there is no associated objfile. +@end defvar + The following methods are provided: @defun Type.fields () |