Add Python support for hardware breakpoints
authorHannes Domani <ssbssa@yahoo.de>
Sat, 2 Jan 2021 12:51:27 +0000 (13:51 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Thu, 21 Jan 2021 17:55:45 +0000 (18:55 +0100)
commit325d39e4e09f0b7c8eec7e33ca93d0a9c82632ec
tree4f977273e946326896d6961751d7eebd26199d00
parent7cb6d92a3f723f26830ca23b39ec94c2920936c4
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.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-breakpoint.exp