diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-24 19:26:05 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-24 19:26:41 -0400 |
commit | a8536c466a2705e17691970fbeb980121ac4a9f4 (patch) | |
tree | 32b346af7d60bb7ca410e1bf7576681675af5bb2 /gdb/rust-lang.c | |
parent | 0df0cce7c63c064e086deda7384a7dd82fefe228 (diff) | |
download | binutils-a8536c466a2705e17691970fbeb980121ac4a9f4.zip binutils-a8536c466a2705e17691970fbeb980121ac4a9f4.tar.gz binutils-a8536c466a2705e17691970fbeb980121ac4a9f4.tar.bz2 |
gdbsupport: add observer_debug_printf, OBSERVER_SCOPED_DEBUG_ENTER_EXIT
Switch observer to use the "new" debug printf mechanism and sprinkle a
few debug prints. Here's a small example of the output with "infrun"
and "observer" debug output enabled:
[infrun] proceed: enter
[observer] notify: start: observable target_resumed notify() called
[observer] notify: start: calling observer mi-interp of observable target_resumed
[observer] notify: end: calling observer mi-interp of observable target_resumed
[observer] notify: start: calling observer py-inferior of observable target_resumed
[observer] notify: end: calling observer py-inferior of observable target_resumed
[observer] notify: end: observable target_resumed notify() called
...
gdbsupport/ChangeLog:
* observable.h (observer_debug_printf,
OBSERVER_SCOPED_DEBUG_START_END): New.
(class observable) <notify, attach>: Use them.
Change-Id: If3ae4b6b65450ca3b7cae56698a87fc526688b86
Diffstat (limited to 'gdb/rust-lang.c')
0 files changed, 0 insertions, 0 deletions