From: Lukas Durfina <ldurf...@tachyum.com> It helps to test gdb running qemu instead of a gdbserver. It prints the same message as the gdbserver on startup.
Signed-off-by: Lukas Durfina <ldurf...@tachyum.com> --- gdbstub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdbstub.c b/gdbstub.c index 8618e34311..9ad9929968 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -3109,6 +3109,7 @@ int gdbserver_start(int port) gdbserver_fd = gdbserver_open(port); if (gdbserver_fd < 0) return -1; + printf("Listening on port %d\n", port); /* accept connections */ if (!gdb_accept()) { close(gdbserver_fd); -- 2.17.1