From: Luc Michel <luc.mic...@greensocs.com>

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

Signed-off-by: Luc Michel <luc.mic...@greensocs.com>
Reviewed-by: Edgar E. Iglesias <edgar.igles...@xilinx.com>
Acked-by: Alistair Francis <alistair.fran...@wdc.com>
Message-id: 20181207090135.7651-12-luc.mic...@greensocs.com
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
 gdbstub.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdbstub.c b/gdbstub.c
index 2c7032f53ab..9b6b4d20a02 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1302,6 +1302,9 @@ static int gdb_handle_packet(GDBState *s, const char 
*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,
-- 
2.19.2


Reply via email to