Hi, This patch teaches GDBServer how to stop threads from a TID that is also the TGID, without having to rely on GDB to list and stop them upon connection. In case the PID being attached to is not the TGID, GDBServer attaches to such a PID in the usual way, without stopping any other threads. Tested without regressions. Ok? Luis