diff options
Diffstat (limited to 'gdb/python/py-breakpoint.c')
-rw-r--r-- | gdb/python/py-breakpoint.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 3dc0fca..87265e2 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -841,15 +841,15 @@ gdbpy_breakpoint_deleted (struct breakpoint *b) state = PyGILState_Ensure (); bp = get_breakpoint (num); - if (! bp) - return; - - bp_obj = bp->py_bp_object; - if (bp_obj) + if (bp) { - bp_obj->bp = NULL; - --bppy_live; - Py_DECREF (bp_obj); + bp_obj = bp->py_bp_object; + if (bp_obj) + { + bp_obj->bp = NULL; + --bppy_live; + Py_DECREF (bp_obj); + } } PyGILState_Release (state); } |