equal
deleted
inserted
replaced
2289 |
2289 |
2290 port_num = strtol(port, &p, 10); |
2290 port_num = strtol(port, &p, 10); |
2291 if (*p == 0) { |
2291 if (*p == 0) { |
2292 /* A numeric value is interpreted as a port number. */ |
2292 /* A numeric value is interpreted as a port number. */ |
2293 snprintf(gdbstub_port_name, sizeof(gdbstub_port_name), |
2293 snprintf(gdbstub_port_name, sizeof(gdbstub_port_name), |
2294 "tcp::%d,nowait,nodelay,server", port_num); |
2294 "tcp:127.0.0.1:%d,nowait,nodelay,server", port_num); |
2295 port = gdbstub_port_name; |
2295 port = gdbstub_port_name; |
2296 } |
2296 } |
2297 |
2297 |
2298 chr = qemu_chr_open("gdb", port); |
2298 chr = qemu_chr_open("gdb", port); |
2299 if (!chr) |
2299 if (!chr) |