diff options
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 9 |
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) |