diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-05-05 13:46:36 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-05-09 16:50:16 +0100 |
commit | 75140e3b75db0820598f25bfa11ec9de2759d5ca (patch) | |
tree | 85da6b3e9973c479d472b05f99daee81fe06db79 /gdb/doc | |
parent | 1ef40c1362fc2411ee45ad7251c4e9cc4c906435 (diff) | |
download | gdb-75140e3b75db0820598f25bfa11ec9de2759d5ca.zip gdb-75140e3b75db0820598f25bfa11ec9de2759d5ca.tar.gz gdb-75140e3b75db0820598f25bfa11ec9de2759d5ca.tar.bz2 |
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'.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/python.texi | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index a567358..f50e32b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com> + + * python.texinfo (Python Commands): Document 'set debug + py-breakpoint' and 'show debug py-breakpoint'. + 2021-05-07 Tom de Vries <tdevries@suse.de> PR symtab/26327 diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 482d328..18e578a 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -153,6 +153,17 @@ to recognize the script language based on filename extension using the @code{script-extension} setting. @xref{Extending GDB, ,Extending GDB}. @end table +The following commands are intended to help debug @value{GDBN} itself: + +@table @code +@kindex set debug py-breakpoint +@kindex show debug py-breakpoint +@item set debug py-breakpoint on@r{|}off +@itemx show debug py-breakpoint +When @samp{on}, @value{GDBN} prints debug messages related to the +Python breakpoint API. This is @samp{off} by default. +@end table + @node Python API @subsection Python API @cindex python api |