aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 20:16:56 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:24 -0700
commit8444ab58be111620c35932b1639a7b6b17845309 (patch)
treee50673706502a50cea45db6222073277a6eaa1fe /gdb/target.c
parentc29302cc8aef5856ae6ed63cef46c17dcc1b790a (diff)
downloadgdb-8444ab58be111620c35932b1639a7b6b17845309.zip
gdb-8444ab58be111620c35932b1639a7b6b17845309.tar.gz
gdb-8444ab58be111620c35932b1639a7b6b17845309.tar.bz2
convert to_insn_history_from
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_insn_history_from): Unconditionally delegate. * target.h (struct target_ops) <to_insn_history_from>: Use TARGET_DEFAULT_NORETURN.
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 b20c150..453d7ad 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4029,16 +4029,7 @@ target_insn_history (int size, int flags)
void
target_insn_history_from (ULONGEST from, int size, int flags)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_insn_history_from != NULL)
- {
- t->to_insn_history_from (t, from, size, flags);
- return;
- }
-
- tcomplain ();
+ current_target.to_insn_history_from (&current_target, from, size, flags);
}
/* See target.h. */