mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
* python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
always released.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user