diff mbox series

[PULL,13/37] gdbstub: add support for extended mode packet

Message ID 20190107163117.16269-14-peter.maydell@linaro.org
State Accepted
Commit 53fd65541511386564fb53a91b594459e7f06d7e
Headers show
Series target-arm queue | expand

Commit Message

Peter Maydell Jan. 7, 2019, 4:30 p.m. UTC
From: Luc Michel <luc.michel@greensocs.com>


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

Signed-off-by: Luc Michel <luc.michel@greensocs.com>

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>

Acked-by: Alistair Francis <alistair.francis@wdc.com>

Message-id: 20181207090135.7651-12-luc.michel@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

---
 gdbstub.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.19.2
diff mbox series

Patch

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,