diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/python/py-inferior.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49ccba76f14..b5585b4085a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-07-11 Tom Tromey <tromey@adacore.com> + + * python/py-inferior.c (add_thread_object): Don't use thread_obj + after it has been moved. + 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca> * valops.c (value_must_coerce_to_target): Change return type to diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index bf43012352b..28882221a90 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -344,7 +344,7 @@ add_thread_object (struct thread_info *tp) return; gdbpy_ref<> event = create_thread_event_object (&new_thread_event_object_type, - (PyObject *) thread_obj.get ()); + (PyObject *) inf_obj); if (event == NULL || evpy_emit_event (event.get (), gdb_py_events.new_thread) < 0) gdbpy_print_stack (); |