This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] print debug message for static tracepoint
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 4 Jan 2012 12:00:58 +0800
- Subject: [patch] print debug message for static tracepoint
Hi,
Looks we don't consider static tracepoint type when printing debug
message in cmd_qtdp. With this patch, we can print tracepoint types for
fast/regular/static tracepoint.
It is sort of obvious, but review is welcome.
--
Yao (éå)
2012-01-04 Yao Qi <yao@codesourcery.com>
* tracepoint.c (cmd_qtdp): Print debug message
for static tracepoint.
---
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 103a17d..9534105 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -2441,7 +2441,7 @@ cmd_qtdp (char *own_buf)
trace_debug ("Defined %stracepoint %d at 0x%s, "
"enabled %d step %ld pass %ld",
tpoint->type == fast_tracepoint ? "fast "
- : "",
+ : tpoint->type == static_tracepoint ? "static " : "",
tpoint->number, paddress (tpoint->address), tpoint->enabled,
tpoint->step_count, tpoint->pass_count);
}
--
1.7.0.4