# HG changeset patch # User Eli Zaretskii # Date 1143309517 0 # Node ID 551e94bacb60768a88c9e4fd9f7e4abcbda67cb0 # Parent cc26b4c9f86e2abf5e2e3b83700dee9cd0d22a82 (print_output_debug_flag): New global variable. (Fexternal_debugging_output) [WINDOWSNT]: Don't call OutputDebugString if print_output_debug_flag is zero. diff -r cc26b4c9f86e -r 551e94bacb60 src/print.c --- a/src/print.c Sat Mar 25 11:34:47 2006 +0000 +++ b/src/print.c Sat Mar 25 17:58:37 2006 +0000 @@ -182,6 +182,9 @@ void print_interval (); +/* GDB resets this to zero on W32 to disable OutputDebugString calls. */ +int print_output_debug_flag = 1; + /* Low level output routines for characters and strings */ @@ -909,10 +912,11 @@ #ifdef WINDOWSNT /* Send the output to a debugger (nothing happens if there isn't one). */ - { - char buf[2] = {(char) XINT (character), '\0'}; - OutputDebugString (buf); - } + if (print_output_debug_flag) + { + char buf[2] = {(char) XINT (character), '\0'}; + OutputDebugString (buf); + } #endif return character;