aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/target.c b/gdb/target.c
index ae57793..1b87c74 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3995,16 +3995,7 @@ target_goto_record_end (void)
void
target_goto_record (ULONGEST insn)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_goto_record != NULL)
- {
- t->to_goto_record (t, insn);
- return;
- }
-
- tcomplain ();
+ current_target.to_goto_record (&current_target, insn);
}
/* See target.h. */