[PATCH 0/4] Convert py-frame.c to Python safety API

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
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 <[email protected]>
---
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 <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.