From 05969c841a349cbc9d628650b37d684526368445 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 20:22:36 -0700 Subject: convert to_goto_record 2014-02-19 Tom Tromey * target-delegates.c: Rebuild. * target.c (target_goto_record): Unconditionally delegate. * target.h (struct target_ops) : Use TARGET_DEFAULT_NORETURN. --- gdb/target.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'gdb/target.c') 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 (¤t_target, insn); } /* See target.h. */ -- cgit v1.1