diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f33faaabbe..7db4487b70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-08-13 Pedro Alves + + * python/py-unwind.c (pyuw_sniffer): Install the invalidate + cleanup after the decref cleanup, not before. + 2015-08-13 Pierre-Marie de Rodat * ada-lang.c: Include namespace.h diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index b6e8a7531b..18f8f4d354 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -537,8 +537,8 @@ pyuw_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, goto error; ((pending_frame_object *) pyo_pending_frame)->gdbarch = gdbarch; ((pending_frame_object *) pyo_pending_frame)->frame_info = this_frame; - make_cleanup (pending_frame_invalidate, (void *) pyo_pending_frame); make_cleanup_py_decref (pyo_pending_frame); + make_cleanup (pending_frame_invalidate, (void *) pyo_pending_frame); /* Run unwinders. */ if (gdb_python_module == NULL