convert to_teardown_btrace
[deliverable/binutils-gdb.git] / gdb / target.c
index 2914a2aa681b943448fe1612a1abc1b467660cfd..85ee3312c9c20fd67148286643013fa1949b4d1f 100644 (file)
@@ -3807,16 +3807,7 @@ target_disable_btrace (struct btrace_target_info *btinfo)
 void
 target_teardown_btrace (struct btrace_target_info *btinfo)
 {
-  struct target_ops *t;
-
-  for (t = current_target.beneath; t != NULL; t = t->beneath)
-    if (t->to_teardown_btrace != NULL)
-      {
-       t->to_teardown_btrace (t, btinfo);
-       return;
-      }
-
-  tcomplain ();
+  current_target.to_teardown_btrace (&current_target, btinfo);
 }
 
 /* See target.h.  */
This page took 0.027028 seconds and 4 git commands to generate.