]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb: fix field names of GDB's type main_type structure
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 21:24:52 +0000 (21:24 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 9 Mar 2021 11:03:26 +0000 (11:03 +0000)
commitfbb1aacebac7d1fd556cf9c46e9af89aaaa62398
tree044e79d9b46d403295673509fd6a6d4a4fba88a1
parent611aa09d994fc5a8a9444075e65f0d6d4ebf4922
gdb: fix field names of GDB's type main_type structure

In commit:

  commit 5b7d941b90d1a232dc144dc14850dd2fb63c35da
  Date:   Fri Jan 22 12:21:09 2021 -0500

      gdb: add owner-related methods to struct type

two fields of struct maint_type were renamed.  'flag_objfile_owned'
became 'm_flag_objfile_owned' and 'owner' became 'm_owner'.  Update
our python helper script to take this into account.

I've added a basic test that uses the self-test framework to load the
pretty printers, and print a type.

The test relies on stopping in GDB's `value_print` function.

gdb/ChangeLog:

* gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
Updated fields names flag_objfile_owned to m_flag_objfile_owned,
and owner to m_owner.

gdb/testsuite/ChangeLog:

* gdb.gdb/python-helper.exp: New file.
gdb/ChangeLog
gdb/gdb-gdb.py.in
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/python-helper.exp [new file with mode: 0644]