public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/infrun: add logging statement to do_target_resume
@ 2022-04-05  2:12 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-04-05  2:12 UTC (permalink / raw)
  To: gdb-cvs

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

commit 05d65a7a6c888a0b80a7591a72059fec520c6a2e
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Thu Jan 13 14:32:27 2022 -0500

    gdb/infrun: add logging statement to do_target_resume
    
    This helped me, it shows which ptid we actually call target_resume with.
    
    Change-Id: I2dfd771e83df8c25f39371a13e3e91dc7882b73d

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

diff --git a/gdb/infrun.c b/gdb/infrun.c
index ad2b267384f..5c7192eef30 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2189,6 +2189,10 @@ do_target_resume (ptid_t resume_ptid, bool step, enum gdb_signal sig)
   else
     target_pass_signals (signal_pass);
 
+  infrun_debug_printf ("resume_ptid=%s, step=%d, sig=%s",
+		       resume_ptid.to_string ().c_str (),
+		       step, gdb_signal_to_symbol_string (sig));
+
   target_resume (resume_ptid, step, sig);
 }


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

only message in thread, other threads:[~2022-04-05  2:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05  2:12 [binutils-gdb] gdb/infrun: add logging statement to do_target_resume Simon Marchi

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).