forked from Imagelibrary/binutils-gdb
convert to_disable_btrace
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_disable_btrace): Unconditionally delegate. * target.h (struct target_ops) <to_disable_btrace>: Use TARGET_DEFAULT_NORETURN.
This commit is contained in:
11
gdb/target.c
11
gdb/target.c
@@ -3799,16 +3799,7 @@ target_enable_btrace (ptid_t ptid)
|
||||
void
|
||||
target_disable_btrace (struct btrace_target_info *btinfo)
|
||||
{
|
||||
struct target_ops *t;
|
||||
|
||||
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
||||
if (t->to_disable_btrace != NULL)
|
||||
{
|
||||
t->to_disable_btrace (t, btinfo);
|
||||
return;
|
||||
}
|
||||
|
||||
tcomplain ();
|
||||
current_target.to_disable_btrace (¤t_target, btinfo);
|
||||
}
|
||||
|
||||
/* See target.h. */
|
||||
|
||||
Reference in New Issue
Block a user