[PATCH v2 5/9] gdb/infrun: add logging statement to do_target_resume
Simon Marchi
simon.marchi@polymtl.ca
Tue Jan 18 04:09:33 GMT 2022
This helped me, it shows which ptid we actually call target_resume with.
Change-Id: I2dfd771e83df8c25f39371a13e3e91dc7882b73d
---
gdb/infrun.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4d12c72f89fd..c976e3efbfb4 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);
if (target_can_async_p ())
--
2.34.1
More information about the Gdb-patches
mailing list