aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-19 08:17:16 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:35 -0700
commit8dc292d3217b0cb85ada1b531f9e7e3249b5075e (patch)
tree956a0c3eeb8be629ce0c4f4a195080871639b9de /gdb/target.c
parent58a5184e2aa7a9fcc2a796b44bae124d173cec1a (diff)
downloadgdb-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.c11
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 (&current_target, btinfo);
}
/* See target.h. */