aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-12-10 15:16:35 +0000
committerYao Qi <yao@codesourcery.com>2011-12-10 15:16:35 +0000
commit4511b1ba87abd6e84846dcfd38087653a7ddbd89 (patch)
treec347535e5341cfa22fa32926374d6df85d7e710e /gdb/tracepoint.c
parentdf5a4bd3a546613628d251202271ea2d10ba8608 (diff)
downloadgdb-4511b1ba87abd6e84846dcfd38087653a7ddbd89.zip
gdb-4511b1ba87abd6e84846dcfd38087653a7ddbd89.tar.gz
gdb-4511b1ba87abd6e84846dcfd38087653a7ddbd89.tar.bz2
2011-12-10 Hui Zhu <teawater@gmail.com>
Yao Qi <yao@codesourcery.com> * tracepoint.c (start_tracing): Clear `inserted' flag. 2011-12-10 Yao Qi <yao@codesourcery.com> * gdb.trace/status-stop.exp: New. * gdb.trace/status-stop.c: New.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index fa79d53..79a64a3 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -1756,6 +1756,10 @@ start_tracing (char *notes)
struct tracepoint *t = (struct tracepoint *) b;
struct bp_location *loc;
+ /* Clear `inserted' flag. */
+ for (loc = b->loc; loc; loc = loc->next)
+ loc->inserted = 0;
+
if ((b->type == bp_fast_tracepoint
? !may_insert_fast_tracepoints
: !may_insert_tracepoints))