diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:19:41 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:38 -0700 |
commit | 6dc7fcf4c1e9cbea86ebd067ce226ffdffa16c08 (patch) | |
tree | 79b9bfc2d0a5ad16d46667625aeec725301350b8 /gdb/target.c | |
parent | eb5b20d4902e973cad84b9ba8eef2e404a6804d5 (diff) | |
download | gdb-6dc7fcf4c1e9cbea86ebd067ce226ffdffa16c08.zip gdb-6dc7fcf4c1e9cbea86ebd067ce226ffdffa16c08.tar.gz gdb-6dc7fcf4c1e9cbea86ebd067ce226ffdffa16c08.tar.bz2 |
convert to_enable_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_enable_btrace): Unconditionally delegate.
* target.h (struct target_ops) <to_enable_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 75d961b..547afcc 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3784,14 +3784,7 @@ target_ranged_break_num_registers (void) struct btrace_target_info * target_enable_btrace (ptid_t ptid) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_enable_btrace != NULL) - return t->to_enable_btrace (t, ptid); - - tcomplain (); - return NULL; + return current_target.to_enable_btrace (¤t_target, ptid); } /* See target.h. */ |