* remote-utils.c (prepare_resume_reply): Always supply "thread:".
authorDaniel Jacobowitz <drow@false.org>
Sun, 29 Feb 2004 16:48:29 +0000 (16:48 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 29 Feb 2004 16:48:29 +0000 (16:48 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c

index 5066aafdd9233b150d27caa10d2ff99fef0a04d6..3f94cbbe59002fabc44cd670d1e0c5471a9476cc 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
+
+       * remote-utils.c (prepare_resume_reply): Always supply "thread:".
+
 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
 
        * linux-low.c (linux_wait): Unblock async I/O.
index cd8c3c56cbdce03bce7c615b5502a31a1fca84a3..26b267a3aaf108a6f4dde02ba057494b581ba10e 100644 (file)
@@ -630,7 +630,11 @@ prepare_resume_reply (char *buf, char status, unsigned char signo)
          thread_from_wait = ((struct inferior_list_entry *)current_inferior)->id;
          if (debug_threads)
            fprintf (stderr, "Writing resume reply for %d\n\n", thread_from_wait);
-         if (old_thread_from_wait != thread_from_wait)
+         /* This if (1) ought to be unnecessary.  But remote_wait in GDB
+            will claim this event belongs to inferior_ptid if we do not
+            specify a thread, and there's no way for gdbserver to know
+            what inferior_ptid is.  */
+         if (1 || old_thread_from_wait != thread_from_wait)
            {
              general_thread = thread_from_wait;
              sprintf (buf, "thread:%x;", thread_from_wait);