static void record_btrace_close (void) { /* Make sure automatic recording gets disabled even if we did not stop recording before closing the record-btrace target. */ record_btrace_auto_disable (); /* We already stopped recording. */ }
static void record_btrace_stop_recording (void) { struct thread_info *tp; DEBUG ("stop recording"); record_btrace_auto_disable (); ALL_THREADS (tp) if (tp->btrace.target != NULL) btrace_disable (tp); }
static void record_btrace_close (struct target_ops *self) { struct thread_info *tp; /* Make sure automatic recording gets disabled even if we did not stop recording before closing the record-btrace target. */ record_btrace_auto_disable (); /* We should have already stopped recording. Tear down btrace in case we have not. */ ALL_THREADS (tp) btrace_teardown (tp); }