This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch/gdbserver] tracepoint log tweaks
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 1 Mar 2012 23:37:36 +0800
- Subject: [patch/gdbserver] tracepoint log tweaks
Hi,
When I read the comment here, I think we should write `stop_pc' in
stead of `tpoint->address' into log. This patch is quite simple. OK to
apply?
--
Yao (éå)
gdb/gdbserver:
* tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
debug log.
---
gdb/gdbserver/tracepoint.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index baa9d94..7167876 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -4473,7 +4473,7 @@ do_action_at_tracepoint (struct tracepoint_hit_ctx *ctx,
preemptively), since the PC had already been adjusted to
contain the tracepoint's address by the jump pad. */
trace_debug ("Storing stop pc (0x%s) in regblock",
- paddress (tpoint->address));
+ paddress (stop_pc));
/* This changes the regblock, not the thread's
regcache. */
--
1.7.0.4