qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v8 11/16] gdbstub: add support for extended mode pac


From: Luc Michel
Subject: [Qemu-devel] [PATCH v8 11/16] gdbstub: add support for extended mode packet
Date: Fri, 7 Dec 2018 10:01:29 +0100

Add support for the '!' extended mode packet. This is required for the
multiprocess extension.

Signed-off-by: Luc Michel <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Acked-by: Alistair Francis <address@hidden>
---
 gdbstub.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdbstub.c b/gdbstub.c
index 48c2571ebe..1cf1bea428 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1301,10 +1301,13 @@ static int gdb_handle_packet(GDBState *s, const char 
*line_buf)
     trace_gdbstub_io_command(line_buf);
 
     p = line_buf;
     ch = *p++;
     switch(ch) {
+    case '!':
+        put_packet(s, "OK");
+        break;
     case '?':
         /* TODO: Make this return the correct value for user-mode.  */
         snprintf(buf, sizeof(buf), "T%02xthread:%s;", GDB_SIGNAL_TRAP,
                  gdb_fmt_thread_id(s, s->c_cpu, thread_id, sizeof(thread_id)));
         put_packet(s, buf);
-- 
2.19.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]