convert to_insn_history
[deliverable/binutils-gdb.git] / gdb / target.c
index 453d7adff3bf5692932eccdd8344bddb9bee3ec7..ae57793760aac2c4fe18923ab1e5ee3734256afe 100644 (file)
@@ -4012,16 +4012,7 @@ target_goto_record (ULONGEST insn)
 void
 target_insn_history (int size, int flags)
 {
-  struct target_ops *t;
-
-  for (t = current_target.beneath; t != NULL; t = t->beneath)
-    if (t->to_insn_history != NULL)
-      {
-       t->to_insn_history (t, size, flags);
-       return;
-      }
-
-  tcomplain ();
+  current_target.to_insn_history (&current_target, size, flags);
 }
 
 /* See target.h.  */
This page took 0.023661 seconds and 4 git commands to generate.