diff options
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. */ |