Revision 59030a8c monitor.c
b/monitor.c | ||
---|---|---|
570 | 570 |
} |
571 | 571 |
|
572 | 572 |
#ifdef CONFIG_GDBSTUB |
573 |
static void do_gdbserver(Monitor *mon, const char *port)
|
|
574 |
{ |
|
575 |
if (!port)
|
|
576 |
port = DEFAULT_GDBSTUB_PORT;
|
|
577 |
if (gdbserver_start(port) < 0) {
|
|
578 |
monitor_printf(mon, "Could not open gdbserver socket on port '%s'\n",
|
|
579 |
port);
|
|
580 |
} else if (strcmp(port, "none") == 0) {
|
|
573 |
static void do_gdbserver(Monitor *mon, const char *device)
|
|
574 |
{ |
|
575 |
if (!device)
|
|
576 |
device = "tcp::" DEFAULT_GDBSTUB_PORT;
|
|
577 |
if (gdbserver_start(device) < 0) {
|
|
578 |
monitor_printf(mon, "Could not open gdbserver on device '%s'\n",
|
|
579 |
device);
|
|
580 |
} else if (strcmp(device, "none") == 0) {
|
|
581 | 581 |
monitor_printf(mon, "Disabled gdbserver\n"); |
582 | 582 |
} else { |
583 |
monitor_printf(mon, "Waiting gdb connection on port '%s'\n", port); |
|
583 |
monitor_printf(mon, "Waiting for gdb connection on device '%s'\n", |
|
584 |
device); |
|
584 | 585 |
} |
585 | 586 |
} |
586 | 587 |
#endif |
Also available in: Unified diff