| Submitter | riku.voipio@linaro.org |
|---|---|
| Date | Sept. 9, 2011, 9:32 a.m. |
| Message ID | <ff7a981affbbc4f19f6f92143a3ddff90a1363fe.1315560307.git.riku.voipio@linaro.org> |
| Download | mbox | patch |
| Permalink | /patch/114032/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/linux-user/main.c b/linux-user/main.c index 25cb4dd..8910d2c 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);