2012-01-13 Pedro Alves <palves@redhat.com>

* server.c (attach_inferior): Clear `cont_thread'.
This commit is contained in:
Pedro Alves 2012-01-13 20:06:40 +00:00
parent f128d5e9da
commit 7d5d4e982d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -338,6 +338,10 @@ attach_inferior (int pid)
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);