* python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
always released.
This commit is contained in:
parent
a7fc3f37d4
commit
d930d06e3f
@ -1,3 +1,8 @@
|
|||||||
|
2011-10-13 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
|
||||||
|
always released.
|
||||||
|
|
||||||
2011-10-13 Tom Tromey <tromey@redhat.com>
|
2011-10-13 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* python/py-type.c (typy_has_key): Make 'field' const.
|
* python/py-type.c (typy_has_key): Make 'field' const.
|
||||||
|
@ -841,9 +841,8 @@ gdbpy_breakpoint_deleted (struct breakpoint *b)
|
|||||||
|
|
||||||
state = PyGILState_Ensure ();
|
state = PyGILState_Ensure ();
|
||||||
bp = get_breakpoint (num);
|
bp = get_breakpoint (num);
|
||||||
if (! bp)
|
if (bp)
|
||||||
return;
|
{
|
||||||
|
|
||||||
bp_obj = bp->py_bp_object;
|
bp_obj = bp->py_bp_object;
|
||||||
if (bp_obj)
|
if (bp_obj)
|
||||||
{
|
{
|
||||||
@ -851,6 +850,7 @@ gdbpy_breakpoint_deleted (struct breakpoint *b)
|
|||||||
--bppy_live;
|
--bppy_live;
|
||||||
Py_DECREF (bp_obj);
|
Py_DECREF (bp_obj);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
PyGILState_Release (state);
|
PyGILState_Release (state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user