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:
Tom Tromey 2013-12-19 08:18:04 -07:00
parent 8dc292d321
commit 9ace480d62
4 changed files with 26 additions and 11 deletions

View file

@ -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 (&current_target, btinfo);
}
/* See target.h. */