This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Resubmit process record and replay, 7/10
On Thursday 20 November 2008 02:40:46, Pedro Alves wrote:
> Can you please try moving all this blob...
[...]
> ... to the record target? It seems to be interested in getting
> *all* events, instead of letting linux_nat_wait filter some.
Sorry, reading back, I don't think I explained myself that well. I meant
something like:
ptid_t
record_wait (ptid_t ptid, target_waitstatus *status)
{
while (1)
{
eptid = beneath->to_wait (ptid, &status);
if (status.kind == TARGET_WAITKIND_TRAP)
{
if breakpoint_here (pc - pc_adjustement)
{
got breakpoint;
break;
}
record_message ();
beneath->resume (step);
}
else
break probably.
}
if (got breakpoint)
adjust_pc;
return eptid;
}
--
Pedro Alves