aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 20:25:47 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:29 -0700
commit07366925095c7d091360b92bd686b4dc58ecd4f3 (patch)
tree65abf5733e470021cd88272a58d206b2aa170531 /gdb/target.c
parentdd2e9d25a1c72cc7695ca8c8060d426c212630a7 (diff)
downloadgdb-07366925095c7d091360b92bd686b4dc58ecd4f3.zip
gdb-07366925095c7d091360b92bd686b4dc58ecd4f3.tar.gz
gdb-07366925095c7d091360b92bd686b4dc58ecd4f3.tar.bz2
convert to_delete_record
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_delete_record): Unconditionally delegate. * target.h (struct target_ops) <to_delete_record>: 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 c60c85c..5b8c591 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3930,16 +3930,7 @@ target_supports_delete_record (void)
void
target_delete_record (void)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_delete_record != NULL)
- {
- t->to_delete_record (t);
- return;
- }
-
- tcomplain ();
+ current_target.to_delete_record (&current_target);
}
/* See target.h. */