gdbserver ptrace not doing waitpid after attaching to threads?

Doug Evans dje@google.com
Fri Dec 12 23:22:00 GMT 2008


On Fri, Dec 12, 2008 at 3:16 PM, Daniel Jacobowitz <drow@false.org> wrote:
>> For clarification, your comment:
>>
>> > It shouldn't be
>> > doing any ATTACH; instead it should be trusting SETOPTIONS to deliver
>> > new threads to it via wait.
>>
>> was for the case where gdbserver starts the program, and not for the
>> case where gdbserver attaches to the program, right?
>
> Well, it's for any thread created once the program is running under
> gdbserver control.  Which amounts to the same thing here.

Right, new threads could be created after the SETOPTIONS goes into
affect.  But I'm still unclear whether SETOPTIONS will deliver threads
that have already been created and exist when gdbserver attaches.



More information about the Gdb mailing list