OSDN Git Service

Revert "gdbstub: Do not kill target in system emulation mode"
authorFabien Chouteau <chouteau@adacore.com>
Sat, 7 Feb 2015 08:38:45 +0000 (09:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 28 May 2015 15:57:35 +0000 (16:57 +0100)
The requirements described in this patch are implemented by "Add GDB
qAttached support".

This reverts commit 00e94dbc7fd0110b0555d59592b004333adfb4b8.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
gdbstub.c

index 0e51280..75563db 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -888,11 +888,9 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
             goto unknown_command;
         }
     case 'k':
-#ifdef CONFIG_USER_ONLY
         /* Kill the target */
         fprintf(stderr, "\nQEMU: Terminated via GDBstub\n");
         exit(0);
-#endif
     case 'D':
         /* Detach packet */
         gdb_breakpoint_remove_all();