diff options
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 25cb4ddf36..8910d2c494 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -3655,7 +3655,11 @@ int main(int argc, char **argv, char **envp) #endif if (gdbstub_port) { - gdbserver_start (gdbstub_port); + if (gdbserver_start(gdbstub_port) < 0) { + fprintf(stderr, "qemu: could not open gdbserver on port %d\n", + gdbstub_port); + exit(1); + } gdb_handlesig(env, 0); } cpu_loop(env); |