public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: add some additional debug in mark_async_event_handler
@ 2022-10-06 9:37 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-10-06 9:37 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=07443de62b709f91ab9ffe745e53203b7dc02031
commit 07443de62b709f91ab9ffe745e53203b7dc02031
Author: Andrew Burgess <aburgess@redhat.com>
Date: Tue Oct 4 11:59:26 2022 +0100
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:
---
gdb/async-event.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-06 9:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06 9:37 [binutils-gdb] gdb: add some additional debug in mark_async_event_handler Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).