diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 20:18:49 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:25 -0700 |
commit | 3679abfabcafc0bd855c30b264d9260d7b77da53 (patch) | |
tree | 522e1af3c9cb82b6d3231bdd0df18c52027d7451 /gdb/target.c | |
parent | 8444ab58be111620c35932b1639a7b6b17845309 (diff) | |
download | gdb-3679abfabcafc0bd855c30b264d9260d7b77da53.zip gdb-3679abfabcafc0bd855c30b264d9260d7b77da53.tar.gz gdb-3679abfabcafc0bd855c30b264d9260d7b77da53.tar.bz2 |
convert to_insn_history
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_insn_history): Unconditionally delegate.
* target.h (struct target_ops) <to_insn_history>: 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 453d7ad..ae57793 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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 (¤t_target, size, flags); } /* See target.h. */ |