Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Cleanup in Python frame_object
@ 2026-06-02  9:54 Andrew Burgess
  2026-06-02  9:54 ` [PATCH 1/2] gdb/testsuite: don't overwrite test executable in py-frame.exp Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Burgess @ 2026-06-02  9:54 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

While working on another patch I ran into an issue with Python's frame
handling, this got me looking at how Python holds a frame's id.

GDB's frame-id handling has evolved since the Python frame related
code was added, and I think we can now clean up the Python code, and
fix a small bug in the process.

Patch #1 is a small testsuite cleanup.

Patch #2 is the actual change to the Python code, updates to the
expected output for a couple of tests, and a new test that exposes the
bug.

Thanks,
Andrew

---

Andrew Burgess (2):
  gdb/testsuite: don't overwrite test executable in py-frame.exp
  gdb/python: remove frame_object::frame_id_is_next as unnecessary

 gdb/python/py-frame.c                         |  33 +---
 gdb/testsuite/gdb.python/py-frame.exp         |  36 +++-
 gdb/testsuite/gdb.python/py-frame.py          | 187 ++++++++++++++++++
 .../gdb.python/py-pending-frame-level.exp     |   2 +-
 gdb/testsuite/gdb.python/py-unwind.exp        |   4 +-
 5 files changed, 227 insertions(+), 35 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/py-frame.py


base-commit: f577746edb4ca2678f69feb5e5848a646d5cd856
-- 
2.25.4


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

end of thread, other threads:[~2026-07-08 12:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02  9:54 [PATCH 0/2] Cleanup in Python frame_object Andrew Burgess
2026-06-02  9:54 ` [PATCH 1/2] gdb/testsuite: don't overwrite test executable in py-frame.exp Andrew Burgess
2026-06-02  9:54 ` [PATCH 2/2] gdb/python: remove frame_object::frame_id_is_next as unnecessary Andrew Burgess
2026-07-08 12:51 ` [PATCH 0/2] Cleanup in Python frame_object Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox