gdb/py: convert debug logging in py-unwind to use new scheme
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 8 May 2021 15:28:41 +0000 (16:28 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 9 May 2021 15:50:15 +0000 (16:50 +0100)
commit1ef40c1362fc2411ee45ad7251c4e9cc4c906435
treeb97de7cac4f4e58272101a92897538188c7066d6
parent927c4e355e307698d58e6cad17f866bf5515f16e
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.
gdb/ChangeLog
gdb/python/py-unwind.c
This page took 0.028095 seconds and 4 git commands to generate.