diff gdb_remote.c @ 1792:52a47611a273

Avoid printing a bunch of junk to stdout when GDB remote debugging is enabled as this can confuse GDB
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 Mar 2019 22:05:27 -0700
parents d6d4c006a7b3
children 49f65d240299 ba7231d2411c
line wrap: on
line diff
--- a/gdb_remote.c	Wed Mar 20 21:36:32 2019 -0700
+++ b/gdb_remote.c	Wed Mar 20 22:05:27 2019 -0700
@@ -596,5 +596,7 @@
 		fatal_error("accept returned an error while listening on GDB remote debugging socket");
 	}
 	closesocket(listen_sock);
+#else
+	disable_stdout_messages();
 #endif
 }