]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/target.c
convert to_goto_record_begin
[thirdparty/binutils-gdb.git] / gdb / target.c
index 7e422f8705d38adf68a72b4e575ded82da0f97a9..1c7b534106fadd7dc9a66ea2a7b136042267c1d6 100644 (file)
@@ -3961,16 +3961,7 @@ target_record_is_replaying (void)
 void
 target_goto_record_begin (void)
 {
-  struct target_ops *t;
-
-  for (t = current_target.beneath; t != NULL; t = t->beneath)
-    if (t->to_goto_record_begin != NULL)
-      {
-       t->to_goto_record_begin (t);
-       return;
-      }
-
-  tcomplain ();
+  current_target.to_goto_record_begin (&current_target);
 }
 
 /* See target.h.  */