aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-12 23:15:48 -0600
committerTom Tromey <tom@tromey.com>2018-09-16 07:25:57 -0600
commitdb1337cc8300bb44f8ccf9dced3e122b6e50b4c9 (patch)
tree648d2e5f1f1f2fcccc723761ae7bbbe028e109e7 /gdb/python/python-internal.h
parent0a9db5ad8a6c49cec7adb7e3ef29c558fcfbf11b (diff)
downloadgdb-db1337cc8300bb44f8ccf9dced3e122b6e50b4c9.zip
gdb-db1337cc8300bb44f8ccf9dced3e122b6e50b4c9.tar.gz
gdb-db1337cc8300bb44f8ccf9dced3e122b6e50b4c9.tar.bz2
Change thread_to_thread_object to return a new reference
This changes thread_to_thread_object to return a new reference and fixes up all the callers. gdb/ChangeLog 2018-09-16 Tom Tromey <tom@tromey.com> * python/python-internal.h (thread_to_thread_object): Change return type. * python/py-inferior.c (thread_to_thread_object): Return a new reference. (infpy_thread_from_thread_handle): Update. * python/py-infthread.c (gdbpy_selected_thread): Update. * python/py-stopevent.c (create_stop_event_object): Update. * python/py-threadevent.c (py_get_event_thread): Return a new reference. (py_get_event_thread): Update. * python/py-event.h (py_get_event_thread): Change return type. * python/py-continueevent.c (create_continue_event_object): Update.
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r--gdb/python/python-internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index ad8d333..0b42603 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -532,8 +532,7 @@ PyObject *gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw);
PyObject *gdbarch_to_arch_object (struct gdbarch *gdbarch);
thread_object *create_thread_object (struct thread_info *tp);
-thread_object *thread_to_thread_object (thread_info *thr)
- CPYCHECKER_RETURNS_BORROWED_REF;
+gdbpy_ref<> thread_to_thread_object (thread_info *thr);;
inferior_object *inferior_to_inferior_object (inferior *inf);
const struct block *block_object_to_block (PyObject *obj);