aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 20:24:04 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:27 -0700
commit671e76cc63ebed981621ee747e18a73320ea426d (patch)
tree7fbf62813251955c969a95f071341d96cdb372cb /gdb/target.c
parente9179bb3de4d8f221223a2cd68c58114204d6100 (diff)
downloadgdb-671e76cc63ebed981621ee747e18a73320ea426d.zip
gdb-671e76cc63ebed981621ee747e18a73320ea426d.tar.gz
gdb-671e76cc63ebed981621ee747e18a73320ea426d.tar.bz2
convert to_goto_record_begin
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_goto_record_begin): Unconditionally delegate. * target.h (struct target_ops) <to_goto_record_begin>: 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 7e422f8..1c7b534 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3961,16 +3961,7 @@ target_record_is_replaying (void)
void
target_goto_record_begin (void)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_goto_record_begin != NULL)
- {
- t->to_goto_record_begin (t);
- return;
- }
-
- tcomplain ();
+ current_target.to_goto_record_begin (&current_target);
}
/* See target.h. */