aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-stopevent.h
diff options
context:
space:
mode:
authorKevin Pouget <kpouget@sourceware.org>2011-09-15 12:27:20 +0000
committerKevin Pouget <kpouget@sourceware.org>2011-09-15 12:27:20 +0000
commit6839b47f2b1cd56c90dc38da7bb612df7e052d90 (patch)
treeacffae36122d018201e9bf74f07ccc2671fa6951 /gdb/python/py-stopevent.h
parent672f9b600994c1a377477b6d88b7f63aaf9c7ffe (diff)
downloadbinutils-6839b47f2b1cd56c90dc38da7bb612df7e052d90.zip
binutils-6839b47f2b1cd56c90dc38da7bb612df7e052d90.tar.gz
binutils-6839b47f2b1cd56c90dc38da7bb612df7e052d90.tar.bz2
2011-09-15 Kevin Pouget <kevin.pouget@st.com>
Handle multiple breakpoint hits in Python interface: * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python variable to breakpoints. * python/py-stopevent.c (emit_stop_event): Return a Python tuple of bps instead of single breakpoint. Fix some space typos. * python/py-stopevent.c (create_breakpoint_event_object): Rename variable to breakpoints. testsuite: * gdb.python/py-events.exp: Set a duplicate breakpoint and check its presence. * gdb.python/py-events.py (breakpoint_stop_handler): Browse all the breakpoint hits. doc: * gdb.texinfo (Events In Python): New function documentation: gdb.BreakpointEvent.breakpoints. Indicate that gdb.BreakpointEvent.breakpoint is now deprecated.
Diffstat (limited to 'gdb/python/py-stopevent.h')
-rw-r--r--gdb/python/py-stopevent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-stopevent.h b/gdb/python/py-stopevent.h
index 52f3511..85ac4d3 100644
--- a/gdb/python/py-stopevent.h
+++ b/gdb/python/py-stopevent.h
@@ -28,7 +28,8 @@ extern void stop_evpy_dealloc (PyObject *self);
extern int emit_stop_event (struct bpstats *bs,
enum target_signal stop_signal);
-extern PyObject *create_breakpoint_event_object (PyObject *breakpoint);
+extern PyObject *create_breakpoint_event_object (PyObject *breakpoint_list,
+ PyObject *first_bp);
extern PyObject *create_signal_event_object (enum target_signal stop_signal);