diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:18:04 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:36 -0700 |
commit | 9ace480d62cd71d27f3a6701a413de0c7e46655a (patch) | |
tree | fac2bb2575d8b155f1a942df7bcc293eb112cfbc /gdb/target.c | |
parent | 8dc292d3217b0cb85ada1b531f9e7e3249b5075e (diff) | |
download | gdb-9ace480d62cd71d27f3a6701a413de0c7e46655a.zip gdb-9ace480d62cd71d27f3a6701a413de0c7e46655a.tar.gz gdb-9ace480d62cd71d27f3a6701a413de0c7e46655a.tar.bz2 |
convert to_teardown_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_teardown_btrace): Unconditionally delegate.
* target.h (struct target_ops) <to_teardown_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 2914a2a..85ee331 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3807,16 +3807,7 @@ target_disable_btrace (struct btrace_target_info *btinfo) void target_teardown_btrace (struct btrace_target_info *btinfo) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_teardown_btrace != NULL) - { - t->to_teardown_btrace (t, btinfo); - return; - } - - tcomplain (); + current_target.to_teardown_btrace (¤t_target, btinfo); } /* See target.h. */ |