diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 20:25:47 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:29 -0700 |
commit | 07366925095c7d091360b92bd686b4dc58ecd4f3 (patch) | |
tree | 65abf5733e470021cd88272a58d206b2aa170531 /gdb/target.c | |
parent | dd2e9d25a1c72cc7695ca8c8060d426c212630a7 (diff) | |
download | gdb-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.c | 11 |
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 (¤t_target); } /* See target.h. */ |