mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 20:43:45 +08:00
2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
* tracepoint.c (start_tracing, stop_tracing): Checking for NULL probes.
This commit is contained in:
parent
5977971a97
commit
311fe7e108
@ -1,3 +1,8 @@
|
||||
2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* tracepoint.c (start_tracing, stop_tracing): Checking for NULL
|
||||
probes.
|
||||
|
||||
2012-04-29 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* gdb-code-style.el: New hook gdb-markup-hook
|
||||
|
@ -1783,6 +1783,7 @@ start_tracing (char *notes)
|
||||
t->number_on_target = b->number;
|
||||
|
||||
for (loc = b->loc; loc; loc = loc->next)
|
||||
if (loc->probe != NULL)
|
||||
loc->probe->pops->set_semaphore (loc->probe, loc->gdbarch);
|
||||
}
|
||||
VEC_free (breakpoint_p, tp_vec);
|
||||
@ -1878,6 +1879,7 @@ stop_tracing (char *note)
|
||||
but we don't really care if this semaphore goes out of sync.
|
||||
That's why we are decrementing it here, but not taking care
|
||||
in other places. */
|
||||
if (loc->probe != NULL)
|
||||
loc->probe->pops->clear_semaphore (loc->probe, loc->gdbarch);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user