This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/5] Improve Python Inferior reference handling + fix a bug
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Mon, 23 Jan 2017 17:39:59 -0500
- Subject: [PATCH 0/5] Improve Python Inferior reference handling + fix a bug
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon dot marchi at ericsson dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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