This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RDI code busy-waiting on running target?
>>>>> "Andrew" == Andrew Cagney <ac131313@ges.redhat.com> writes:
>> + struct timeval timeout;
>> + timeout.tv_sec = 0;
>> + timeout.tv_usec = 10000;
>> +
>> + select(0,0,0,0,&timeout);
>> +
Andrew> Doing a select on nothing strikes me as wrong. How is this code
Andrew> detecting that something is ``ready''?
Timeout. AFAIK, the only option for high-resolution sleep in systems
lacking ``nanosleep''.
~velco