* win32-low.c (LOG): Delete.

(OUTMSG): Output to stderr.
	(OUTMSG2): Conditionalize on `debug_threads' variable, instead of
	on compile time LOG macro.
	(win32_wait): Fix debug output.
This commit is contained in:
Pedro Alves
2009-11-26 22:16:29 +00:00
parent cf6e347119
commit 103579754b
2 changed files with 19 additions and 8 deletions

View File

@ -1,3 +1,11 @@
2009-11-26 Pedro Alves <pedro@codesourcery.com>
* win32-low.c (LOG): Delete.
(OUTMSG): Output to stderr.
(OUTMSG2): Conditionalize on `debug_threads' variable, instead of
on compile time LOG macro.
(win32_wait): Fix debug output.
2009-11-26 Pedro Alves <pedro@codesourcery.com> 2009-11-26 Pedro Alves <pedro@codesourcery.com>
* win32-low.c (win32_add_one_solib): If the dll name is * win32-low.c (win32_add_one_solib): If the dll name is

View File

@ -38,14 +38,17 @@
#include <sys/cygwin.h> #include <sys/cygwin.h>
#endif #endif
#define LOG 0 #define OUTMSG(X) do { printf X; fflush (stderr); } while (0)
#define OUTMSG(X) do { printf X; fflush (stdout); } while (0) #define OUTMSG2(X) \
#if LOG do \
#define OUTMSG2(X) do { printf X; fflush (stdout); } while (0) { \
#else if (debug_threads) \
#define OUTMSG2(X) do ; while (0) { \
#endif printf X; \
fflush (stderr); \
} \
} while (0)
#ifndef _T #ifndef _T
#define _T(x) TEXT (x) #define _T(x) TEXT (x)
@ -1586,7 +1589,7 @@ win32_wait (ptid_t ptid, struct target_waitstatus *ourstatus, int options)
case TARGET_WAITKIND_STOPPED: case TARGET_WAITKIND_STOPPED:
case TARGET_WAITKIND_LOADED: case TARGET_WAITKIND_LOADED:
OUTMSG2 (("Child Stopped with signal = %d \n", OUTMSG2 (("Child Stopped with signal = %d \n",
our_status.value.sig)); ourstatus->value.sig));
child_fetch_inferior_registers (-1); child_fetch_inferior_registers (-1);