[0/6] Python __repr__() methods and new __dict__ attributes

Message ID cover.1704455158.git.aburgess@redhat.com
Headers
Series Python __repr__() methods and new __dict__ attributes |

Message

Andrew Burgess Jan. 5, 2024, 11:48 a.m. UTC
  This series is a bit of a mixed bag of Python API related changes.
Patches #2 and #3 do depend on #1, but #4, #5, and #6 are really quite
separate.  However, they're all pretty small, and are all just
extending existing functionality to cover more cases, so I've thrown
them all in together for now.

---

Andrew Burgess (6):
  gdb/python: hoist common invalid object repr code into py-utils.c
  gdb/python: add gdb.InferiorThread.__repr__() method
  gdb/python: add gdb.Frame.__repr__() method
  gdb/python: remove users ability to create gdb.Progspace objects
  gdb/python: Add gdb.Inferior.__dict__ attribute
  gdb/python: Add gdb.InferiorThread.__dict__ attribute

 gdb/NEWS                                  | 13 +++++
 gdb/doc/python.texi                       | 63 +++++++++++++++++++++++
 gdb/python/py-arch.c                      |  2 +-
 gdb/python/py-block.c                     |  2 +-
 gdb/python/py-breakpoint.c                |  4 +-
 gdb/python/py-connection.c                |  2 +-
 gdb/python/py-frame.c                     | 19 ++++++-
 gdb/python/py-inferior.c                  | 15 +++++-
 gdb/python/py-infthread.c                 | 36 +++++++++++--
 gdb/python/py-objfile.c                   |  2 +-
 gdb/python/py-progspace.c                 | 16 +-----
 gdb/python/py-symbol.c                    |  2 +-
 gdb/python/py-type.c                      |  3 +-
 gdb/python/py-unwind.c                    |  2 +-
 gdb/python/py-utils.c                     |  8 +++
 gdb/python/python-internal.h              | 13 +++++
 gdb/testsuite/gdb.python/py-frame.exp     |  8 +++
 gdb/testsuite/gdb.python/py-inferior.exp  | 52 ++++++++++++++++++-
 gdb/testsuite/gdb.python/py-infthread.exp |  3 +-
 gdb/testsuite/gdb.python/py-progspace.exp |  6 +++
 20 files changed, 238 insertions(+), 33 deletions(-)


base-commit: b7a5722ebdd24a0d15d56e96d30a649ea1d7b0ee