Re: Fix foll-fork.exp foll-vfork.exp fork-child-threads.exp

Pedro Alves
2008-11-20T19:15:40Z

On Thursday 20 November 2008 18:24:27, Ulrich Weigand wrote:

> However, even given that we need to do it in "resume" -- why so late
> in resume, after e.g. displaced stepping or software single-step
> was already set up? For example, isn't singlestep_ptid set to the
> wrong value if we later decide to follow the child?
>
> It seems to me it would make more sense to have that decision come
> *first* -- and then we could use the correct thread_info and regcache
> etc. pointers throughout. I guess there may have been a good reason
> to place the call where it is, but I don't see it off-hand ...

Hmmm, right, good point. I agree.

--
Pedro Alves