[PATCH 0/2] Allow gdb.RegisterDescriptors to be used in read_register calls

Andrew Burgess andrew.burgess@embecosm.com
Fri Jul 24 09:57:50 GMT 2020


Now that we have Python RegisterDescriptor objects available we can
improve an ugly dependency on GDBs internal register numbering that is
currently exposed in the Python API.  See patch #2 for more details.

Thanks,
Andrew

---

Andrew Burgess (2):
  gdb: Add a find method for RegisterDescriptorIterator
  gdb/python: make more use of RegisterDescriptors

 gdb/ChangeLog                                 | 24 +++++
 gdb/doc/ChangeLog                             | 11 +++
 gdb/doc/python.texi                           | 50 +++++++---
 gdb/python/py-frame.c                         | 22 +++--
 gdb/python/py-registers.c                     | 92 ++++++++++++++++++-
 gdb/python/py-unwind.c                        | 36 +-------
 gdb/python/python-internal.h                  | 19 ++++
 gdb/testsuite/ChangeLog                       |  9 ++
 .../gdb.python/py-arch-reg-names.exp          | 15 +++
 gdb/testsuite/gdb.python/py-unwind.py         | 11 ++-
 10 files changed, 231 insertions(+), 58 deletions(-)

-- 
2.25.4



More information about the Gdb-patches mailing list