Re: [PATCH 03/18] attach + target always in non-stop mode: stop all threads

Yao Qi
2015-11-27T09:33:16Z

Pedro Alves <palves@redhat.com> writes:

> But this the GDB thread id. If a new thread recycles an old pid/tid, it'll
> still get a new GDB thread id. (And if GDB thread ids wrap around we have
> bigger problems elsewhere, which I think we'd likely sort by simply making
> gdb thread ids 64-bit instead).

Oh, we compare thread->num, which is the thread id in GDB. I thought we
compare process/thread id. Sorry about that. Patch is good to me.

--
Yao (齐尧)