[PATCH] Add Python support for hardware breakpoints
Eli Zaretskii
eliz@gnu.org
Sat Jan 2 13:32:57 GMT 2021
> Date: Sat, 2 Jan 2021 14:13:45 +0100
> From: Hannes Domani via Gdb-patches <gdb-patches@sourceware.org>
>
> 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-02 Hannes Domani <ssbssa@yahoo.de>
>
> * python/py-breakpoint.c (bppy_get_location): Handle
> bp_hardware_breakpoint.
> (bppy_init): Likewise.
> (gdbpy_breakpoint_created): Likewise.
>
> gdb/doc/ChangeLog:
>
> 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
>
> * python.texi (Breakpoints In Python): Document
> gdb.BP_HARDWARE_BREAKPOINT.
>
> gdb/testsuite/ChangeLog:
>
> 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
>
> * gdb.python/py-breakpoint.exp: Add tests for hardware breakpoints.
Thanks, the documentation part is OK.
More information about the Gdb-patches
mailing list