aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-stopevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-stopevent.c')
-rw-r--r--gdb/python/py-stopevent.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gdb/python/py-stopevent.c b/gdb/python/py-stopevent.c
index 98c8b20..e83d85f 100644
--- a/gdb/python/py-stopevent.c
+++ b/gdb/python/py-stopevent.c
@@ -49,24 +49,24 @@ emit_stop_event (struct bpstats *bs, enum gdb_signal stop_signal)
for (current_bs = bs; current_bs != NULL; current_bs = current_bs->next)
{
if (current_bs->breakpoint_at
- && current_bs->breakpoint_at->py_bp_object)
- {
- PyObject *current_py_bp =
- (PyObject *) current_bs->breakpoint_at->py_bp_object;
-
- if (list == NULL)
- {
- list.reset (PyList_New (0));
- if (list == NULL)
+ && current_bs->breakpoint_at->py_bp_object)
+ {
+ PyObject *current_py_bp =
+ (PyObject *) current_bs->breakpoint_at->py_bp_object;
+
+ if (list == NULL)
+ {
+ list.reset (PyList_New (0));
+ if (list == NULL)
return -1;
- }
+ }
- if (PyList_Append (list.get (), current_py_bp))
+ if (PyList_Append (list.get (), current_py_bp))
return -1;
- if (first_bp == NULL)
- first_bp = current_py_bp;
- }
+ if (first_bp == NULL)
+ first_bp = current_py_bp;
+ }
}
if (list != NULL)