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.
This commit is contained in:
parent
7cb6d92a3f
commit
325d39e4e0
6 changed files with 53 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue