diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 20:26:34 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:30 -0700 |
commit | f09e210795cb9e182feb2d02d97a6c9b22a46f53 (patch) | |
tree | ce4a5e2e0eb0e4d5072f88cfa128f8e65964b5c0 /gdb/target.c | |
parent | 07366925095c7d091360b92bd686b4dc58ecd4f3 (diff) | |
download | gdb-f09e210795cb9e182feb2d02d97a6c9b22a46f53.zip gdb-f09e210795cb9e182feb2d02d97a6c9b22a46f53.tar.gz gdb-f09e210795cb9e182feb2d02d97a6c9b22a46f53.tar.bz2 |
convert to_save_record
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_save_record): Unconditionally delegate.
* target.h (struct target_ops) <to_save_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 5b8c591..17077aa 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3899,16 +3899,7 @@ target_info_record (void) void target_save_record (const char *filename) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_save_record != NULL) - { - t->to_save_record (t, filename); - return; - } - - tcomplain (); + current_target.to_save_record (¤t_target, filename); } /* See target.h. */ |