aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-16 15:26:35 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-16 15:26:35 +0000
commitbb63802a4f72c2aa632a3118d307a1b8ec934c9a (patch)
tree20eb27f06f35131fec990b082657da61e4adb69a
parent93f02886fd15eef1d38f073c54031c812e564128 (diff)
downloadgdb-bb63802a4f72c2aa632a3118d307a1b8ec934c9a.zip
gdb-bb63802a4f72c2aa632a3118d307a1b8ec934c9a.tar.gz
gdb-bb63802a4f72c2aa632a3118d307a1b8ec934c9a.tar.bz2
2007-05-16 Markus Deuling <deuling@de.ibm.com>
* server.c (handle_query): Add reply for qC packet.
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/server.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 4ccec23..d1d2e48 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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>
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index ca18a1d..52b1e8d 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -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)