From: Andrew Burgess Date: Tue, 4 Oct 2022 10:59:26 +0000 (+0100) Subject: gdb: add some additional debug in mark_async_event_handler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07443de62b709f91ab9ffe745e53203b7dc02031;p=binutils-gdb.git 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. --- diff --git a/gdb/async-event.c b/gdb/async-event.c index 12ce62cfa5f..8c6ba099f59 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; }