summaryrefslogtreecommitdiff
path: root/gdb_remote.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-03-20 22:05:27 -0700
committerMichael Pavone <pavone@retrodev.com>2019-03-20 22:05:27 -0700
commita460f11a88ad30ff938327428e53319518cfdce4 (patch)
treea365deab30cc5903587af0f661470b605fa0fb9a /gdb_remote.c
parentf328cd509d79f1b468b32bab0fbfd214705534d7 (diff)
Avoid printing a bunch of junk to stdout when GDB remote debugging is enabled as this can confuse GDB
Diffstat (limited to 'gdb_remote.c')
-rw-r--r--gdb_remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb_remote.c b/gdb_remote.c
index 173e2bc..92fdfcf 100644
--- a/gdb_remote.c
+++ b/gdb_remote.c
@@ -596,5 +596,7 @@ void gdb_remote_init(void)
fatal_error("accept returned an error while listening on GDB remote debugging socket");
}
closesocket(listen_sock);
+#else
+ disable_stdout_messages();
#endif
}