gdb: add some additional debug in mark_async_event_handler
authorAndrew Burgess <aburgess@redhat.com>
Tue, 4 Oct 2022 10:59:26 +0000 (11:59 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 6 Oct 2022 09:01:14 +0000 (10:01 +0100)
Extend the existing debug printf call to include the previous state of
the async_event_handler object.

gdb/async-event.c

index 12ce62cfa5f88b7b9c16840153e4b7445d16b6ff..8c6ba099f599f25d268238fda63bd35c527bc415 100644 (file)
@@ -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;
 }