aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-19 08:21:20 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:39 -0700
commitee97f592f2d9edf4ae720a68893af5cbaedd1be9 (patch)
tree4600d1e3b5b372e45fbfc7b6ddfc2b0a798c8471 /gdb/target.c
parent6dc7fcf4c1e9cbea86ebd067ce226ffdffa16c08 (diff)
downloadfsf-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.c11
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 (&current_target);
}
/* See target.h. */