Re: [PATCH 2/3] skip_prolgoue (amd64)

Pedro Alves
2013-12-09T13:13:52Z

On 12/09/2013 01:01 PM, Yao Qi wrote:
> On 12/09/2013 07:53 PM, Pedro Alves wrote:
>> The concern is that target_wait implementations may read memory.
>>
>
> We've flushed cache in target_resume. We don't have to worry about
> this, do we?

We can have more stops than resumes.

#1 - resume everything (1000 threads)
#2 - event in one thread triggers, we call target_wait
#3 - gdb decides to leave thread stopped.
#4 - one hour passes, while threads poke at memory.
#5 - another event triggers, and we call target_wait again

No resume happened between #2 and #5.

--
Pedro Alves