convert to_delete_record

2014-02-19  Tom Tromey  <tromey@redhat.com>

	* target-delegates.c: Rebuild.
	* target.c (target_delete_record): Unconditionally delegate.
	* target.h (struct target_ops) <to_delete_record>: Use
	TARGET_DEFAULT_NORETURN.
This commit is contained in:
Tom Tromey 2013-12-18 20:25:47 -07:00
parent dd2e9d25a1
commit 0736692509
4 changed files with 26 additions and 11 deletions

View file

@ -3930,16 +3930,7 @@ target_supports_delete_record (void)
void
target_delete_record (void)
{
struct target_ops *t;
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_delete_record != NULL)
{
t->to_delete_record (t);
return;
}
tcomplain ();
current_target.to_delete_record (&current_target);
}
/* See target.h. */