Add an objfile getter to gdb.Type
authorChristian Biesinger via gdb-patches <gdb-patches@sourceware.org>
Thu, 23 May 2019 21:37:29 +0000 (16:37 -0500)
committerTom Tromey <tromey@adacore.com>
Tue, 4 Jun 2019 15:46:06 +0000 (09:46 -0600)
commite1f2e1a2dadbaeffe0a8a6da7aab7effc6b046d2
treec9b8498d0f320163e8edef62c5e2c5619028b27d
parenta9d96ab97edabea31bed089bfd4caca80838e31c
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.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-type.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-type.exp