diff options
author | Tom Tromey <tromey@redhat.com> | 2014-06-25 10:23:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-07 09:06:15 -0600 |
commit | 38e229b2b3b5cc28c40ae114146bcdb45f60fc46 (patch) | |
tree | 552ac61f70c37c6b228236796254b66bceb5a58b /gdb/target.c | |
parent | f0f9ff9530992cb86c7022310af223b2721117d1 (diff) | |
download | gdb-38e229b2b3b5cc28c40ae114146bcdb45f60fc46.zip gdb-38e229b2b3b5cc28c40ae114146bcdb45f60fc46.tar.gz gdb-38e229b2b3b5cc28c40ae114146bcdb45f60fc46.tar.bz2 |
change to_info_record to use target delegation
This changes to_info_record to use target delegation.
Also, target_info_record was unused, so this patch removes it.
2014-07-07 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_info_record): Remove.
* record.c (info_record_command): Unconditionally call
to_info_record.
* target.h (struct target_ops) <to_info_record>: Use
TARGET_DEFAULT_IGNORE.
(target_info_record): Remove.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/target.c b/gdb/target.c index 91756c8..c9c5e4b 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3443,23 +3443,6 @@ target_stop_recording (void) /* See target.h. */ void -target_info_record (void) -{ - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_info_record != NULL) - { - t->to_info_record (t); - return; - } - - tcomplain (); -} - -/* See target.h. */ - -void target_save_record (const char *filename) { current_target.to_save_record (¤t_target, filename); |