qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] gdbstub: print message on startup as gdbserver
@ 2019-06-19 14:56 lukas.durfina
  2019-06-19 17:01 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: lukas.durfina @ 2019-06-19 14:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: philmd, alex.bennee

From: Lukas Durfina <ldurfina@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 <ldurfina@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-19 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19 14:56 [Qemu-devel] [PATCH] gdbstub: print message on startup as gdbserver lukas.durfina
2019-06-19 17:01 ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).