[PATCH 0/4] Add logging for event loop events
Simon Marchi
simon.marchi@polymtl.ca
Fri Sep 25 15:48:27 GMT 2020
I currently have both hands in event loop / infrun stuff, and I found
it useful to add debug prints to know when the event loop invoked an
event handler. I would like to propose this for upstream, so that I
don't need to maintain my own patch on the side :).
Simon Marchi (4):
gdb: give names to event loop file handlers
gdb: give names to async event/signal handlers
gdb: move debug_prefixed_vprintf to gdbsupport
gdb: add debug prints in event loop
gdb/async-event.c | 49 +++++++++++++++++++++++-----
gdb/async-event.h | 15 ++++++---
gdb/debug.c | 13 +-------
gdb/debug.h | 32 ------------------
gdb/event-top.c | 67 +++++++++++++++++++++++++++++++++-----
gdb/infrun.c | 5 +--
gdb/linux-nat.c | 5 +--
gdb/record-btrace.c | 2 +-
gdb/record-full.c | 2 +-
gdb/remote-notif.c | 2 +-
gdb/remote.c | 3 +-
gdb/run-on-main-thread.c | 3 +-
gdb/ser-base.c | 6 ++--
gdb/top.c | 4 +++
gdb/top.h | 3 ++
gdb/tui/tui-io.c | 2 +-
gdb/tui/tui-win.c | 3 +-
gdbserver/linux-low.cc | 3 +-
gdbserver/remote-utils.cc | 10 +++---
gdbserver/server.cc | 15 +++++++++
gdbsupport/common-debug.cc | 11 +++++++
gdbsupport/common-debug.h | 6 ++++
gdbsupport/event-loop.cc | 60 +++++++++++++++++++++++++---------
gdbsupport/event-loop.h | 54 ++++++++++++++++++++++++++++--
24 files changed, 274 insertions(+), 101 deletions(-)
delete mode 100644 gdb/debug.h
--
2.28.0
More information about the Gdb-patches
mailing list