diff options
author | Kevin Pouget <kpouget@sourceware.org> | 2011-09-15 12:27:20 +0000 |
---|---|---|
committer | Kevin Pouget <kpouget@sourceware.org> | 2011-09-15 12:27:20 +0000 |
commit | 6839b47f2b1cd56c90dc38da7bb612df7e052d90 (patch) | |
tree | acffae36122d018201e9bf74f07ccc2671fa6951 /gdb/doc | |
parent | 672f9b600994c1a377477b6d88b7f63aaf9c7ffe (diff) | |
download | gdb-6839b47f2b1cd56c90dc38da7bb612df7e052d90.zip gdb-6839b47f2b1cd56c90dc38da7bb612df7e052d90.tar.gz gdb-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/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 13 |
2 files changed, 16 insertions, 4 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index e5d2161..54dd4e8 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2011-09-15 Kevin Pouget <kevin.pouget@st.com> + + Handle multiple breakpoint hits in Python interface: + * gdb.texinfo (Events In Python): New function documentation: + gdb.BreakpointEvent.breakpoints. Indicate that + gdb.BreakpointEvent.breakpoint is now deprecated. + 2011-09-04 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo: Set EDITION to "Tenth" and change ISBN. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index ccef92c..76c804b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -22317,14 +22317,19 @@ the @value{GDBN} command prompt. Also emits @code{gdb.BreakpointEvent} which extends @code{gdb.StopEvent}. -@code{gdb.BreakpointEvent} event indicates that a breakpoint has been hit, and -has the following attributes: +@code{gdb.BreakpointEvent} event indicates that one or more breakpoints have +been hit, and has the following attributes: @table @code -@defivar BreakpointEvent breakpoint -A reference to the breakpoint that was hit of type @code{gdb.Breakpoint}. +@defivar BreakpointEvent breakpoints +A sequence containing references to all the breakpoints (type +@code{gdb.Breakpoint}) that were hit. @xref{Breakpoints In Python}, for details of the @code{gdb.Breakpoint} object. @end defivar +@defivar BreakpointEvent breakpoint +A reference to the first breakpoint that was hit. +This function is maintained for backward compatibility and is now deprecated +in favor of the @code{gdb.BreakpointEvent.breakpoints} function. @end table @end table |