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.
This commit is contained in:
parent
8dc292d321
commit
9ace480d62
4 changed files with 26 additions and 11 deletions
11
gdb/target.c
11
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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue