Index: cygtls.h =================================================================== RCS file: /cvs/src/src/winsup/cygwin/cygtls.h,v retrieving revision 1.42 diff -u -p -r1.42 cygtls.h --- cygtls.h 23 Dec 2005 22:50:20 -0000 1.42 +++ cygtls.h 2 Feb 2006 11:43:23 -0000 @@ -1,6 +1,6 @@ /* cygtls.h - Copyright 2003, 2004, 2005 Red Hat, Inc. + Copyright 2003, 2004, 2005, 2006 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for @@ -22,6 +22,7 @@ details. */ #include typedef unsigned int SOCKET; #endif +#include #define CYGTLS_INITIALIZED 0x43227 #define CYGTLSMAGIC "D0Ub313v31nm&G1c?"; @@ -242,9 +243,16 @@ class myfault jmp_buf buf; san sebastian; public: - ~myfault () __attribute__ ((always_inline)) { _my_tls.reset_fault (sebastian); } + ~myfault () __attribute__ ((always_inline)) + { + _my_tls.reset_fault (sebastian); + if (being_debugged ()) + OutputDebugString (_CYGWIN_FAULT_NOIGNORE_STRING); + } inline int faulted (int myerrno = 0) __attribute__ ((always_inline)) { + if (being_debugged ()) + OutputDebugString (_CYGWIN_FAULT_IGNORE_STRING); return _my_tls.setup_fault (buf, sebastian, myerrno); } }; Index: include/sys/cygwin.h =================================================================== RCS file: /cvs/src/src/winsup/cygwin/include/sys/cygwin.h,v retrieving revision 1.61 diff -u -p -r1.61 cygwin.h --- include/sys/cygwin.h 1 Nov 2005 05:55:30 -0000 1.61 +++ include/sys/cygwin.h 2 Feb 2006 11:43:23 -0000 @@ -1,6 +1,6 @@ /* sys/cygwin.h - Copyright 1997, 1998, 2000, 2001, 2002 Red Hat, Inc. + Copyright 1997, 1998, 2000, 2001, 2002, 2006 Red Hat, Inc. This file is part of Cygwin. @@ -18,6 +18,8 @@ extern "C" { #endif #define _CYGWIN_SIGNAL_STRING "cYgSiGw00f" +#define _CYGWIN_FAULT_IGNORE_STRING "cYgfAuLtIg" +#define _CYGWIN_FAULT_NOIGNORE_STRING "cYgNofAuLtIg" extern pid_t cygwin32_winpid_to_pid (int); extern void cygwin32_win32_to_posix_path_list (const char *, char *);