diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:19:02 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:37 -0700 |
commit | eb5b20d4902e973cad84b9ba8eef2e404a6804d5 (patch) | |
tree | 17d9771fba2526b88dc0e1b3116eeddcc946a671 /gdb/target.c | |
parent | 9ace480d62cd71d27f3a6701a413de0c7e46655a (diff) | |
download | gdb-eb5b20d4902e973cad84b9ba8eef2e404a6804d5.zip gdb-eb5b20d4902e973cad84b9ba8eef2e404a6804d5.tar.gz gdb-eb5b20d4902e973cad84b9ba8eef2e404a6804d5.tar.bz2 |
convert to_read_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_read_btrace): Unconditionally delegate.
* target.h (struct target_ops) <to_read_btrace>: Use
TARGET_DEFAULT_NORETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/target.c b/gdb/target.c index 85ee331..75d961b 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3817,14 +3817,7 @@ target_read_btrace (VEC (btrace_block_s) **btrace, struct btrace_target_info *btinfo, enum btrace_read_type type) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_read_btrace != NULL) - return t->to_read_btrace (t, btrace, btinfo, type); - - tcomplain (); - return BTRACE_ERR_NOT_SUPPORTED; + return current_target.to_read_btrace (¤t_target, btrace, btinfo, type); } /* See target.h. */ |