diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2021-01-02 13:51:27 +0100 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2021-01-21 18:55:45 +0100 |
commit | 325d39e4e09f0b7c8eec7e33ca93d0a9c82632ec (patch) | |
tree | 4f977273e946326896d6961751d7eebd26199d00 /gdb/doc | |
parent | 7cb6d92a3f723f26830ca23b39ec94c2920936c4 (diff) | |
download | fsf-binutils-gdb-325d39e4e09f0b7c8eec7e33ca93d0a9c82632ec.zip fsf-binutils-gdb-325d39e4e09f0b7c8eec7e33ca93d0a9c82632ec.tar.gz fsf-binutils-gdb-325d39e4e09f0b7c8eec7e33ca93d0a9c82632ec.tar.bz2 |
Add Python support for hardware breakpoints
This allows the creation of hardware breakpoints in Python with
gdb.Breakpoint(type=gdb.BP_HARDWARE_BREAKPOINT)
And they are included in the sequence returned by gdb.breakpoints().
gdb/ChangeLog:
2021-01-21 Hannes Domani <ssbssa@yahoo.de>
PR python/19151
* python/py-breakpoint.c (bppy_get_location): Handle
bp_hardware_breakpoint.
(bppy_init): Likewise.
(gdbpy_breakpoint_created): Likewise.
gdb/doc/ChangeLog:
2021-01-21 Hannes Domani <ssbssa@yahoo.de>
PR python/19151
* python.texi (Breakpoints In Python): Document
gdb.BP_HARDWARE_BREAKPOINT.
gdb/testsuite/ChangeLog:
2021-01-21 Hannes Domani <ssbssa@yahoo.de>
PR python/19151
* gdb.python/py-breakpoint.exp: Add tests for hardware breakpoints.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/python.texi | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index d718fdd..64eb52b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2021-01-21 Hannes Domani <ssbssa@yahoo.de> + + PR python/19151 + * python.texi (Breakpoints In Python): Document + gdb.BP_HARDWARE_BREAKPOINT. + 2021-01-01 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo, refcard.tex: Update copyright year range. diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 0f776f5..3556859 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -5402,6 +5402,10 @@ module: @item gdb.BP_BREAKPOINT Normal code breakpoint. +@vindex BP_HARDWARE_BREAKPOINT +@item gdb.BP_HARDWARE_BREAKPOINT +Hardware assisted code breakpoint. + @vindex BP_WATCHPOINT @item gdb.BP_WATCHPOINT Watchpoint breakpoint. |