for (thread_info &tp : inf->non_exited_threads ())
{
- if (tp->ptid.lwp () == ptid.lwp ())
+ if (tp.ptid.lwp () == ptid.lwp ())
request = PT_RESUME;
else
request = PT_SUSPEND;
- if (ptrace (request, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
+ if (ptrace (request, tp.ptid.pid (), NULL, tp.ptid.lwp ()) == -1)
perror_with_name (("ptrace"));
}
}
/* If ptid is a wildcard, resume all matching threads (they won't run
until the process is continued however). */
for (thread_info &tp : all_non_exited_threads (target, ptid))
- if (ptrace (PT_RESUME, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
+ if (ptrace (PT_RESUME, tp.ptid.pid (), NULL, tp.ptid.lwp ()) == -1)
perror_with_name (("ptrace"));
}
if (step)
{
for (thread_info &tp : all_non_exited_threads (target, ptid))
- if (ptrace (PT_SETSTEP, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
+ if (ptrace (PT_SETSTEP, tp.ptid.pid (), NULL, tp.ptid.lwp ()) == -1)
perror_with_name (("ptrace"));
}
else
{
for (thread_info &tp : all_non_exited_threads (target, ptid))
- if (ptrace (PT_CLEARSTEP, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
+ if (ptrace (PT_CLEARSTEP, tp.ptid.pid (), NULL, tp.ptid.lwp ()) == -1)
perror_with_name (("ptrace"));
}