Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Convert py-frame.c to Python safety API
@ 2026-08-19 23:54 Tom Tromey
  2026-08-19 23:54 ` [PATCH 1/4] Basic safety conversion of py-frame.c Tom Tromey
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tom Tromey @ 2026-08-19 23:54 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

This series converts py-frame.c to the Python safety API.

I've split it into multiple parts to make it perhaps a bit easier to
review.  Often I find these patches pretty hard to read, since they
involve converting a bunch of functions into methods, making them
fairly messy.

A few FIXME comments are added; as with other cases, these can all be
removed once the conversion is complete.  At the current rate this may
be a while.

Tested on x86-64 Fedora 40.

Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (4):
      Basic safety conversion of py-frame.c
      Convert gdbpy_newest_frame and gdbpy_selected_frame to safety API
      Convert gdbpy_frame_stop_reason_string to the safety API
      Convert frapy_richcompare to safety API

 gdb/python/py-frame.c                 | 852 +++++++++++++---------------------
 gdb/python/py-inferior.c              |  24 +-
 gdb/python/py-safety.h                |  53 +++
 gdb/python/python-internal.h          |   7 +-
 gdb/python/python.c                   |  12 +-
 gdb/testsuite/gdb.python/py-frame.exp |   3 +
 6 files changed, 408 insertions(+), 543 deletions(-)
---
base-commit: 07ee9e316ab6d53b5ed1aae8fe7448a559abe4be
change-id: 20260819-python-safety-frame-c795afcc47df

Best regards,
-- 
Tom Tromey <tom@tromey.com>


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

end of thread, other threads:[~2026-08-19 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-19 23:54 [PATCH 0/4] Convert py-frame.c to Python safety API Tom Tromey
2026-08-19 23:54 ` [PATCH 1/4] Basic safety conversion of py-frame.c Tom Tromey
2026-08-19 23:54 ` [PATCH 2/4] Convert gdbpy_newest_frame and gdbpy_selected_frame to safety API Tom Tromey
2026-08-19 23:54 ` [PATCH 3/4] Convert gdbpy_frame_stop_reason_string to the " Tom Tromey
2026-08-19 23:54 ` [PATCH 4/4] Convert frapy_richcompare to " Tom Tromey

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