diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:21:20 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:39 -0700 |
commit | ee97f592f2d9edf4ae720a68893af5cbaedd1be9 (patch) | |
tree | 4600d1e3b5b372e45fbfc7b6ddfc2b0a798c8471 /gdb/target.c | |
parent | 6dc7fcf4c1e9cbea86ebd067ce226ffdffa16c08 (diff) | |
download | fsf-binutils-gdb-ee97f592f2d9edf4ae720a68893af5cbaedd1be9.zip fsf-binutils-gdb-ee97f592f2d9edf4ae720a68893af5cbaedd1be9.tar.gz fsf-binutils-gdb-ee97f592f2d9edf4ae720a68893af5cbaedd1be9.tar.bz2 |
convert to_stop_recording
2014-02-19 Tom Tromey <tromey@redhat.com>
* record.c (record_stop): Unconditionally delegate.
* target-delegates.c: Rebuild.
* target.c (target_stop_recording): Unconditionally delegate.
* target.h (struct target_ops) <to_stop_recording>: Use
TARGET_DEFAULT_IGNORE.
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 547afcc..ef7374e 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3818,16 +3818,7 @@ target_read_btrace (VEC (btrace_block_s) **btrace, void target_stop_recording (void) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_stop_recording != NULL) - { - t->to_stop_recording (t); - return; - } - - /* This is optional. */ + current_target.to_stop_recording (¤t_target); } /* See target.h. */ |