On Saturday 09 August 2008 15:51:16, Pedro Alves wrote: > Also, when we detect a TTEVT_LWP_CREATE, TTEVT_LWP_EXIT or > TTEVT_LWP_TERMINATE, The ttrace docs indicate that only one lwp is > stopped.  There's no reason to stop all lwps, and return > TARGET_WAITKING_SPURIOUS, only to resume all lwps again. > This just adds overhead and messes more with the > scheduling of the inferior than needed.  We could just resume > the stopped lwp, and return TARGET_WAITKIND_IGNORE. Here's a patch to do this. It applies on top of the other I just sent, which itself applied on top of my other patch to always register the main thread. -- Pedro Alves