X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftracepoint.c;h=76d05dfc13bc6c3b1a49b21408cf85e6042f3e4b;hb=935676c92feb5f35e4634ef58c20ffdfd0979b07;hp=59a7b64ae88811e710057d67ee2c454e01a7633a;hpb=88108bf28c4a726af84dfec2f85b8404cc2ac0bd;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 59a7b64ae8..76d05dfc13 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1654,11 +1654,9 @@ start_tracing (const char *notes) t->number_on_target = b->number; for (loc = b->loc; loc; loc = loc->next) - if (loc->probe.probe != NULL - && loc->probe.probe->pops->set_semaphore != NULL) - loc->probe.probe->pops->set_semaphore (loc->probe.probe, - loc->probe.objfile, - loc->gdbarch); + if (loc->probe.prob != NULL) + loc->probe.prob->set_semaphore (loc->probe.objfile, + loc->gdbarch); if (bp_location_downloaded) observer_notify_breakpoint_modified (b); @@ -1754,11 +1752,9 @@ stop_tracing (const 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.probe != NULL - && loc->probe.probe->pops->clear_semaphore != NULL) - loc->probe.probe->pops->clear_semaphore (loc->probe.probe, - loc->probe.objfile, - loc->gdbarch); + if (loc->probe.prob != NULL) + loc->probe.prob->clear_semaphore (loc->probe.objfile, + loc->gdbarch); } }