diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 20:22:36 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:26 -0700 |
commit | 05969c841a349cbc9d628650b37d684526368445 (patch) | |
tree | b6c2756a70f230e9dc8e41413b9b994317003792 /gdb/target.c | |
parent | 3679abfabcafc0bd855c30b264d9260d7b77da53 (diff) | |
download | fsf-binutils-gdb-05969c841a349cbc9d628650b37d684526368445.zip fsf-binutils-gdb-05969c841a349cbc9d628650b37d684526368445.tar.gz fsf-binutils-gdb-05969c841a349cbc9d628650b37d684526368445.tar.bz2 |
convert to_goto_record
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_goto_record): Unconditionally delegate.
* target.h (struct target_ops) <to_goto_record>: Use
TARGET_DEFAULT_NORETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 11 |
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 (¤t_target, insn); } /* See target.h. */ |