From: Yao Qi Date: Tue, 3 Jan 2012 02:26:52 +0000 (+0000) Subject: gdb/gdbserver/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f72429c5cc268535be510b223a732c31816a79f9;p=binutils-gdb.git gdb/gdbserver/ * tracepoint.c (tracepoint_was_hit): Don't collect for static tracepoint. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 207c7154cd6..9a69fa2ef34 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-01-03 Yao Qi + + * tracepoint.c (tracepoint_was_hit): Don't collect for + static tracepoint. + 2012-01-02 Joel Brobecker * terminal.h: Reformat copyright header. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index fa4c317ccc7..524fa775fea 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -4268,8 +4268,12 @@ tracepoint_was_hit (struct thread_info *tinfo, CORE_ADDR stop_pc) { /* Note that we collect fast tracepoints here as well. We'll step over the fast tracepoint jump later, which avoids the - double collect. */ - if (tpoint->enabled && stop_pc == tpoint->address) + double collect. However, we don't collect for static + tracepoints here, because UST markers are compiled in program, + and probes will be executed in program. So static tracepoints + are collected there. */ + if (tpoint->enabled && stop_pc == tpoint->address + && tpoint->type != static_tracepoint) { trace_debug ("Thread %s at address of tracepoint %d at 0x%s", target_pid_to_str (tinfo->entry.id),