gdb/py: add some debugging to py-breakpoint.c
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 5 May 2021 12:46:36 +0000 (13:46 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 9 May 2021 15:50:16 +0000 (16:50 +0100)
commit75140e3b75db0820598f25bfa11ec9de2759d5ca
tree85da6b3e9973c479d472b05f99daee81fe06db79
parent1ef40c1362fc2411ee45ad7251c4e9cc4c906435
gdb/py: add some debugging to py-breakpoint.c

Adds some new debugging to python/py-breakpoint.c.

gdb/ChangeLog:

* python/py-breakpoint.c (pybp_debug): New static global.
(show_pybp_debug): New function.
(pybp_debug_printf): Define.
(PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
(gdbpy_breakpoint_created): Add some debugging.
(gdbpy_breakpoint_deleted): Likewise.
(gdbpy_breakpoint_modified): Likewise.
(_initialize_py_breakpoint): New function.

gdb/doc/ChangeLog:

* python.texinfo (Python Commands): Document 'set debug
py-breakpoint' and 'show debug py-breakpoint'.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-breakpoint.c