diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-05-08 16:28:41 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-05-09 16:50:15 +0100 |
commit | 1ef40c1362fc2411ee45ad7251c4e9cc4c906435 (patch) | |
tree | b97de7cac4f4e58272101a92897538188c7066d6 /gdb/python/py-breakpoint.c | |
parent | 927c4e355e307698d58e6cad17f866bf5515f16e (diff) | |
download | fsf-binutils-gdb-1ef40c1362fc2411ee45ad7251c4e9cc4c906435.zip fsf-binutils-gdb-1ef40c1362fc2411ee45ad7251c4e9cc4c906435.tar.gz fsf-binutils-gdb-1ef40c1362fc2411ee45ad7251c4e9cc4c906435.tar.bz2 |
gdb/py: convert debug logging in py-unwind to use new scheme
Converts the debug print out in python/py-unwind.c to use the new
debug printing scheme. I have also modified what is printed in a few
places, for example, rather than printing frame pointers, I now print
the frame level, this matches what we do in the general 'set debug
frame' tracing, and is usually more helpful (I think).
I also added a couple of ENTER/EXIT scope printers.
gdb/ChangeLog:
* python/py-unwind.c (pyuw_debug): Convert to bool.
(show_pyuw_debug): New function.
(pyuw_debug_printf): Define.
(PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
(pyuw_this_id): Convert to new debug print macros.
(pyuw_prev_register): Likewise.
(pyuw_sniffer): Likewise.
(pyuw_dealloc_cache): Likewise.
(_initialize_py_unwind): Update now pyuw_debug is a bool, and add
show function when registering.
Diffstat (limited to 'gdb/python/py-breakpoint.c')
0 files changed, 0 insertions, 0 deletions