public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/infrun: add debug print in print_signal_received_reason
@ 2023-01-13 16:38 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2023-01-13 16:38 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bb0797528bf532848ed96b439b363df543a15477

commit bb0797528bf532848ed96b439b363df543a15477
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Thu Oct 20 11:59:55 2022 +0100

    gdb/infrun: add debug print in print_signal_received_reason
    
    It would have helped me to see an infrun debug line being printed from
    print_signal_received_reason, so I'm adding one.

Diff:
---
 gdb/infrun.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/infrun.c b/gdb/infrun.c
index 1a2ef2d078b..edfb5ab0a91 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -8358,6 +8358,8 @@ print_signal_received_reason (struct ui_out *uiout, enum gdb_signal siggnal)
 {
   struct thread_info *thr = inferior_thread ();
 
+  infrun_debug_printf ("signal = %s", gdb_signal_to_string (siggnal));
+
   annotate_signal ();
 
   if (uiout->is_mi_like_p ())

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-13 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 16:38 [binutils-gdb] gdb/infrun: add debug print in print_signal_received_reason 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).