public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdb: add some additional debug in mark_async_event_handler
Date: Thu,  6 Oct 2022 09:37:41 +0000 (GMT)	[thread overview]
Message-ID: <20221006093741.DA6FC384D16E@sourceware.org> (raw)

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;
 }

                 reply	other threads:[~2022-10-06  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221006093741.DA6FC384D16E@sourceware.org \
    --to=aburgess@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).