Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1791:1843823f1e9b | 1792:52a47611a273 |
---|---|
594 gdb_sock = accept(listen_sock, NULL, NULL); | 594 gdb_sock = accept(listen_sock, NULL, NULL); |
595 if (gdb_sock < 0) { | 595 if (gdb_sock < 0) { |
596 fatal_error("accept returned an error while listening on GDB remote debugging socket"); | 596 fatal_error("accept returned an error while listening on GDB remote debugging socket"); |
597 } | 597 } |
598 closesocket(listen_sock); | 598 closesocket(listen_sock); |
599 #else | |
600 disable_stdout_messages(); | |
599 #endif | 601 #endif |
600 } | 602 } |