* win32-low.c (handle_output_debug_string): Ignore event if not
authorPedro Alves <palves@redhat.com>
Sun, 8 Jul 2007 19:37:46 +0000 (19:37 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 8 Jul 2007 19:37:46 +0000 (19:37 +0000)
waiting.

gdb/gdbserver/ChangeLog
gdb/gdbserver/win32-low.c

index b447e9f0bb130423de46d8aa8340ce3ab0dcdb28..76561ffa4130141c6c903baaf74859b810cce2e6 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * win32-low.c (handle_output_debug_string): Ignore event if not
+       waiting.
+
 2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
 
        * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
index 736d85e05b0aad0cfc855bbb48bb96ade50dd6e5..161cadf69044110bd7385939fd3d9c46b9f743a7 100644 (file)
@@ -567,7 +567,15 @@ handle_output_debug_string (struct target_waitstatus *ourstatus)
     }
 
   if (strncmp (s, "cYg", 3) != 0)
-    monitor_output (s);
+    {
+      if (!server_waiting)
+       {
+         OUTMSG2(("%s", s));
+         return;
+       }
+
+      monitor_output (s);
+    }
 #undef READ_BUFFER_LEN
 }
 
This page took 0.037663 seconds and 4 git commands to generate.