public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 00/10] Improvements & Cleanup For Python Unwinder API
@ 2023-03-10 14:55 Andrew Burgess
  2023-03-10 14:55 ` [PATCH 01/10] gdb/doc: spring clean the Python unwinders documentation Andrew Burgess
                   ` (10 more replies)
  0 siblings, 11 replies; 37+ messages in thread
From: Andrew Burgess @ 2023-03-10 14:55 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

For <reasons> I ended up writing a small project using GDB's Unwinder
Python API.  Though I could do everything I wanted, GDB's
documentation in this area seemed a little lacking.

So I started out just planning to cleanup the docs.

But based on my experiences using the API, and after reading the docs
through a couple of times, it felt like there were some small
improvements that could be made to the API to make the lives of users
easier.

This series doesn't make any real changes to the API, but after this
series the docs should be more complete, and the API a little more
robust and easier to use.

Oh, and tests.  Lots more tests.

---

Andrew Burgess (10):
  gdb/doc: spring clean the Python unwinders documentation
  gdb/python: make the gdb.unwinder.Unwinder class more robust
  gdb/python: remove unneeded nullptr check in frapy_block
  gdb/python: add PENDING_FRAMEPY_REQUIRE_VALID macro in py-unwind.c
  gdb/python: add some additional methods to gdb.PendingFrame
  gdb/python: add __repr__ for PendingFrame and UnwindInfo
  gdb/python: remove Py_TPFLAGS_BASETYPE from gdb.UnwindInfo
  gdb: have value_as_address call unpack_pointer
  gdb/python: Allow gdb.UnwindInfo to be created with non gdb.Value args
  gdb/python: Add new gdb.unwinder.FrameId class

 gdb/NEWS                               |  43 +++
 gdb/doc/python.texi                    | 212 +++++++++---
 gdb/python/lib/gdb/unwinder.py         |  49 ++-
 gdb/python/py-frame.c                  |   8 +-
 gdb/python/py-unwind.c                 | 456 ++++++++++++++++++++-----
 gdb/testsuite/gdb.python/py-unwind.exp | 216 +++++++++++-
 gdb/testsuite/gdb.python/py-unwind.py  | 156 ++++++++-
 gdb/value.c                            |   9 +-
 8 files changed, 996 insertions(+), 153 deletions(-)


base-commit: 6a208145d24c47912c8beb4f1f4b9abeb8d51134
-- 
2.25.4


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2023-04-03 10:02 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 14:55 [PATCH 00/10] Improvements & Cleanup For Python Unwinder API Andrew Burgess
2023-03-10 14:55 ` [PATCH 01/10] gdb/doc: spring clean the Python unwinders documentation Andrew Burgess
2023-03-10 15:24   ` Eli Zaretskii
2023-03-14  9:27     ` Andrew Burgess
2023-03-14 12:56       ` Eli Zaretskii
2023-03-16 14:30         ` Andrew Burgess
2023-03-10 14:55 ` [PATCH 02/10] gdb/python: make the gdb.unwinder.Unwinder class more robust Andrew Burgess
2023-03-10 15:32   ` Eli Zaretskii
2023-03-14 10:06     ` Andrew Burgess
2023-03-14 12:57       ` Eli Zaretskii
2023-03-31  2:15   ` Simon Marchi
2023-04-03 10:02     ` Andrew Burgess
2023-03-10 14:55 ` [PATCH 03/10] gdb/python: remove unneeded nullptr check in frapy_block Andrew Burgess
2023-03-10 14:55 ` [PATCH 04/10] gdb/python: add PENDING_FRAMEPY_REQUIRE_VALID macro in py-unwind.c Andrew Burgess
2023-03-10 14:55 ` [PATCH 05/10] gdb/python: add some additional methods to gdb.PendingFrame Andrew Burgess
2023-03-10 15:42   ` Eli Zaretskii
2023-03-14 10:18     ` Andrew Burgess
2023-03-14 12:59       ` Eli Zaretskii
2023-03-16 14:28         ` Andrew Burgess
2023-03-16 14:46           ` Eli Zaretskii
2023-03-16 17:26             ` Andrew Burgess
2023-03-16 19:54               ` Eli Zaretskii
2023-03-10 14:55 ` [PATCH 06/10] gdb/python: add __repr__ for PendingFrame and UnwindInfo Andrew Burgess
2023-03-10 14:55 ` [PATCH 07/10] gdb/python: remove Py_TPFLAGS_BASETYPE from gdb.UnwindInfo Andrew Burgess
2023-03-10 14:55 ` [PATCH 08/10] gdb: have value_as_address call unpack_pointer Andrew Burgess
2023-03-10 15:28   ` Tom Tromey
2023-03-10 22:08     ` Andrew Burgess
2023-03-10 14:55 ` [PATCH 09/10] gdb/python: Allow gdb.UnwindInfo to be created with non gdb.Value args Andrew Burgess
2023-03-10 15:34   ` Tom Tromey
2023-03-10 22:16     ` Andrew Burgess
2023-03-11 14:47       ` Tom Tromey
2023-03-10 15:38   ` Eli Zaretskii
2023-03-10 14:55 ` [PATCH 10/10] gdb/python: Add new gdb.unwinder.FrameId class Andrew Burgess
2023-03-10 15:36   ` Eli Zaretskii
2023-03-14 10:58     ` Andrew Burgess
2023-03-14 13:00       ` Eli Zaretskii
2023-03-29 16:27 ` [PATCH 00/10] Improvements & Cleanup For Python Unwinder API Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).