diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:17:16 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:35 -0700 |
commit | 8dc292d3217b0cb85ada1b531f9e7e3249b5075e (patch) | |
tree | 956a0c3eeb8be629ce0c4f4a195080871639b9de /gdb/target.c | |
parent | 58a5184e2aa7a9fcc2a796b44bae124d173cec1a (diff) | |
download | gdb-8dc292d3217b0cb85ada1b531f9e7e3249b5075e.zip gdb-8dc292d3217b0cb85ada1b531f9e7e3249b5075e.tar.gz gdb-8dc292d3217b0cb85ada1b531f9e7e3249b5075e.tar.bz2 |
convert to_disable_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_disable_btrace): Unconditionally delegate.
* target.h (struct target_ops) <to_disable_btrace>: 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 92be667..2914a2a 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3799,16 +3799,7 @@ target_enable_btrace (ptid_t ptid) void target_disable_btrace (struct btrace_target_info *btinfo) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_disable_btrace != NULL) - { - t->to_disable_btrace (t, btinfo); - return; - } - - tcomplain (); + current_target.to_disable_btrace (¤t_target, btinfo); } /* See target.h. */ |