]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbsupport/ChangeLog
gdbsupport: add observer_debug_printf, OBSERVER_SCOPED_DEBUG_ENTER_EXIT
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Apr 2021 23:26:05 +0000 (19:26 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Apr 2021 23:26:41 +0000 (19:26 -0400)
commita8536c466a2705e17691970fbeb980121ac4a9f4
tree32b346af7d60bb7ca410e1bf7576681675af5bb2
parent0df0cce7c63c064e086deda7384a7dd82fefe228
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
gdbsupport/ChangeLog
gdbsupport/observable.h