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:
parent
dd2e9d25a1
commit
0736692509
4 changed files with 26 additions and 11 deletions
11
gdb/target.c
11
gdb/target.c
|
@ -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 (¤t_target);
|
||||
}
|
||||
|
||||
/* See target.h. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue