mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Allow gdbstub to connect over any serial device.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2448 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7bcc17dc02
commit
cfc3475a8d
4 changed files with 32 additions and 30 deletions
12
monitor.c
12
monitor.c
|
@ -423,14 +423,14 @@ static void do_cont(void)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_GDBSTUB
|
||||
static void do_gdbserver(int has_port, int port)
|
||||
static void do_gdbserver(const char *port)
|
||||
{
|
||||
if (!has_port)
|
||||
if (!port)
|
||||
port = DEFAULT_GDBSTUB_PORT;
|
||||
if (gdbserver_start_port(port) < 0) {
|
||||
qemu_printf("Could not open gdbserver socket on port %d\n", port);
|
||||
if (gdbserver_start(port) < 0) {
|
||||
qemu_printf("Could not open gdbserver socket on port '%s'\n", port);
|
||||
} else {
|
||||
qemu_printf("Waiting gdb connection on port %d\n", port);
|
||||
qemu_printf("Waiting gdb connection on port '%s'\n", port);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -1216,7 +1216,7 @@ static term_cmd_t term_cmds[] = {
|
|||
{ "c|cont", "", do_cont,
|
||||
"", "resume emulation", },
|
||||
#ifdef CONFIG_GDBSTUB
|
||||
{ "gdbserver", "i?", do_gdbserver,
|
||||
{ "gdbserver", "s?", do_gdbserver,
|
||||
"[port]", "start gdbserver session (default port=1234)", },
|
||||
#endif
|
||||
{ "x", "/l", do_memory_dump,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue