Subject: winex/dlls/ntdll signal_i386.c,1.43,1.44Update of /var/lib/cvsd/cvsroot/winex/dlls/ntdll
In directory agravaine:/tmp/cvs-serv31256/dlls/ntdll
Modified Files:
signal_i386.c
Log Message:
- add #define ENABLE_MAC_DEBUGGING which needs to be enabled for gdb to
get exceptions (particularily breakpoint exceptions) on MacOS X
Index: signal_i386.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/ntdll/signal_i386.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- signal_i386.c 30 Mar 2007 15:55:31 -0000 1.43
+++ signal_i386.c 30 Mar 2007 15:55:45 -0000 1.44
@@ -265,6 +265,10 @@
typedef ucontext_t SIGCONTEXT;
+/* if enabled, allows gdb to get exceptions & breakpoints; however, it
+ breaks copy protection */
+/* #define ENABLE_MAC_DEBUGGING */
+
/* NOTE - if you add or change any of these, check build_fake_signal_context()
and friend to make sure it's implemented in our mach exceptions */
@@ -1714,7 +1718,7 @@
{
int have_sigaltstack = SIGNAL_SetupSignalStack();
-#ifdef __APPLE__
+#if defined(__APPLE__) && !defined(ENABLE_MAC_DEBUGGING)
kern_return_t res;
if (!gExceptionPort)
@@ -1763,7 +1767,7 @@
/* automatic child reaping to avoid zombies */
signal( SIGCHLD, SIG_IGN );
-#ifndef __APPLE__
+#if !defined(__APPLE__) || defined(ENABLE_MAC_DEBUGGING)
if (set_handler( SIGFPE, have_sigaltstack, (void (*)())fpe_handler ) == -1) goto error;
if (set_handler( SIGSEGV, have_sigaltstack, (void (*)())segv_handler ) == -1) goto error;
#if defined(SIGTRAP)
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.