diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-28 18:05:53 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-28 18:05:53 +0000 |
commit | 36556b20c5c9a02f5e238435cd41bf67740359ee (patch) | |
tree | 3ccf74cf2f1ca52d9d905c51915e8f4243470869 /monitor.c | |
parent | 819f56b7fb1f4910ac826202fcf42d8093da3c4f (diff) |
gdbstub: Allow re-instantiation (Jan Kiszka)
[ Note: depends on char closing fixes ]
Properly clean up the gdbstub when the user tries to re-open it
(possibly under a different address). Moreover, allow to shut it down
from the monitor via 'gdbserver none'.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6913 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -577,6 +577,8 @@ static void do_gdbserver(Monitor *mon, const char *port) if (gdbserver_start(port) < 0) { monitor_printf(mon, "Could not open gdbserver socket on port '%s'\n", port); + } else if (strcmp(port, "none") == 0) { + monitor_printf(mon, "Disabled gdbserver\n"); } else { monitor_printf(mon, "Waiting gdb connection on port '%s'\n", port); } |