* server.c (attach_inferior): Clear `cont_thread'.
+2012-01-13 Pedro Alves <palves@redhat.com>
+
+ * server.c (attach_inferior): Clear `cont_thread'.
+
2012-01-13 Pedro Alves <palves@redhat.com>
* server.c (main): Avoid infinite loop while detaching/killing
whichever we were told to attach to. */
signal_pid = pid;
+ /* Clear this so the backend doesn't get confused, thinking
+ CONT_THREAD died, and it needs to resume all threads. */
+ cont_thread = null_ptid;
+
if (!non_stop)
{
last_ptid = mywait (pid_to_ptid (pid), &last_status, 0, 0);