2007-05-16 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 16 May 2007 15:26:35 +0000 (15:26 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 16 May 2007 15:26:35 +0000 (15:26 +0000)
* server.c (handle_query): Add reply for qC packet.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 4ccec232a4e89a11e68e47e47f6af21de179cc81..d1d2e4853ddaf4358e233e37087fbb8938c62248 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-16  Markus Deuling  <deuling@de.ibm.com>
+
+       * server.c (handle_query): Add reply for qC packet. 
+
 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
            Leo Zayas  <lerele@champenstudios@com>
 
index ca18a1d6c448abb94613319a4a73a7803db679b8..52b1e8d1ef8fba9e50d571e73080dacfea123fb9 100644 (file)
@@ -259,6 +259,15 @@ handle_query (char *own_buf, int *new_packet_len_p)
 {
   static struct inferior_list_entry *thread_ptr;
 
+  /* Reply the current thread id.  */
+  if (strcmp ("qC", own_buf) == 0)
+    {
+      thread_ptr = all_threads.head;
+      sprintf (own_buf, "QC%x",
+       thread_to_gdb_id ((struct thread_info *)thread_ptr));
+      return;
+    }
+
   if (strcmp ("qSymbol::", own_buf) == 0)
     {
       if (the_target->look_up_symbols != NULL)