Add GDB qAttached support
commita3919386eab91b56e40fb4faead980f57a664b2e
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 7 Feb 2015 08:38:44 +0000 (7 09:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 28 May 2015 15:57:35 +0000 (28 16:57 +0100)
treeecf51174f87bb0e18eedef407d6cca3747850477
parent4dabe747af0a6bd66a86c2c7879f1882bec43c33
Add GDB qAttached support

With this patch QEMU handles qAttached request from gdb. When QEMU
replies 1, GDB sends a "detach" command at the end of a debugging
session otherwise GDB sends "kill".

The default value for qAttached is 1 on system emulation and 0 on user
emulation.

Based on original version by Fabien Chouteau.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
gdbstub.c