This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/5] Improve Python Inferior reference handling + fix a bug


As I was investigating a crash related to Python Inferior objects, I saw some
opportunities to make the code a bit nicer/robust.  This series is the result.

Simon Marchi (5):
  Introduce specialized versions of gdbpy_ref
  Add Python Inferior object debug traces
  Make Python inferior-related internal functions return
    inferior_object*
  Make Python inferior-related internal functions return a gdbpy_inf_ref
  Add missing incref when creating Inferior Python object

 gdb/python/py-exitedevent.c  |  4 +--
 gdb/python/py-inferior.c     | 73 ++++++++++++++++++++++++++------------------
 gdb/python/py-infthread.c    |  8 +++--
 gdb/python/py-ref.h          | 40 +++++++++++++++++++++---
 gdb/python/python-internal.h | 13 ++++++--
 gdb/python/python.c          | 12 ++++++++
 6 files changed, 110 insertions(+), 40 deletions(-)

-- 
2.11.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]