Revision c636bb66 gdbstub.c
b/gdbstub.c | ||
---|---|---|
1234 | 1234 |
qemu_add_vm_stop_handler(gdb_vm_stopped, s); |
1235 | 1235 |
return 0; |
1236 | 1236 |
} |
1237 |
|
|
1238 |
int gdbserver_start_port(int port) |
|
1239 |
{ |
|
1240 |
CharDriverState *chr; |
|
1241 |
char gdbstub_port_name[128]; |
|
1242 |
|
|
1243 |
snprintf(gdbstub_port_name, sizeof(gdbstub_port_name), |
|
1244 |
"tcp::%d,nowait,nodelay,server", port); |
|
1245 |
chr = qemu_chr_open(gdbstub_port_name); |
|
1246 |
if (!chr) |
|
1247 |
return -EIO; |
|
1248 |
return gdbserver_start(chr); |
|
1249 |
} |
|
1250 |
|
|
1237 | 1251 |
#endif |
Also available in: Unified diff