diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-10-04 11:59:26 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-06 10:01:14 +0100 |
commit | 07443de62b709f91ab9ffe745e53203b7dc02031 (patch) | |
tree | ce9a46dc96a9ac78074190a9450621d7ecfec0b8 /gdb | |
parent | a13886e2198beb78b81c59839043b021ce6df78a (diff) | |
download | gdb-07443de62b709f91ab9ffe745e53203b7dc02031.zip gdb-07443de62b709f91ab9ffe745e53203b7dc02031.tar.gz gdb-07443de62b709f91ab9ffe745e53203b7dc02031.tar.bz2 |
gdb: add some additional debug in mark_async_event_handler
Extend the existing debug printf call to include the previous state of
the async_event_handler object.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/async-event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/async-event.c b/gdb/async-event.c index 12ce62c..8c6ba09 100644 --- a/gdb/async-event.c +++ b/gdb/async-event.c @@ -293,8 +293,10 @@ create_async_event_handler (async_event_handler_func *proc, void mark_async_event_handler (async_event_handler *async_handler_ptr) { - event_loop_debug_printf ("marking async event handler `%s`", - async_handler_ptr->name); + event_loop_debug_printf ("marking async event handler `%s` " + "(previous state was %d)", + async_handler_ptr->name, + async_handler_ptr->ready); async_handler_ptr->ready = 1; } |