From bb63802a4f72c2aa632a3118d307a1b8ec934c9a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 16 May 2007 15:26:35 +0000 Subject: [PATCH] 2007-05-16 Markus Deuling * server.c (handle_query): Add reply for qC packet. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/server.c | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 4ccec232a4e..d1d2e4853dd 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2007-05-16 Markus Deuling + + * server.c (handle_query): Add reply for qC packet. + 2007-05-10 Pedro Alves Leo Zayas diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index ca18a1d6c44..52b1e8d1ef8 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) -- 2.30.2