* mi/mi-interp.c (mi_new_thread): Quote the thread id.
authorVladimir Prus <vladimir@codesourcery.com>
Sat, 26 Apr 2008 17:58:48 +0000 (17:58 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sat, 26 Apr 2008 17:58:48 +0000 (17:58 +0000)
gdb/ChangeLog
gdb/mi/mi-interp.c

index e6107b65d5fe566f9773de58f93ab75adefeac3e..e58d0c27340ba6e5ed5eff302f572edfa9cbad95 100644 (file)
@@ -1,3 +1,7 @@
+2008-04-26  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-interp.c (mi_new_thread): Quote the thread id.
+
 2008-04-26  Joel Brobecker  <brobecker@adacore.com>
 
        * breakpoint.c (condition_command, commands_from_control_command)
index 8dfd3ee123c4f0be610de9e6948b5b35795c1b36..146d87540840992e0eb6ba5087cf503f80916ad4 100644 (file)
@@ -313,7 +313,7 @@ mi_new_thread (struct thread_info *t)
 {
   struct mi_interp *mi = top_level_interpreter_data ();
 
-  fprintf_unfiltered (mi->event_channel, "thread-created,id=%d", t->num);
+  fprintf_unfiltered (mi->event_channel, "thread-created,id=\"%d\"", t->num);
   gdb_flush (mi->event_channel);
 }