Mac OS X: Add support for darwin's PTrace

Pierre d'Herbemont stegefin at free.fr
Sun May 11 14:38:15 CDT 2003


Hi,

Darwin has PT_READ_D and PT_WRITE_D instead of PTRACE_PEEKUSER and 
PTRACE_POKEUSER. So if no PTRACE_* are defined and PT_* are defined we 
make a link to join them together.

ChangeLog:
Add Support for Darwin's PTrace.

-------------- next part --------------
Index: server/context_powerpc.c
===================================================================
RCS file: /home/wine/wine/server/context_powerpc.c,v
retrieving revision 1.6
diff -u -r1.6 context_powerpc.c
--- server/context_powerpc.c	22 Mar 2003 21:00:09 -0000	1.6
+++ server/context_powerpc.c	11 May 2003 19:35:03 -0000
@@ -33,6 +33,18 @@
 # include <sys/ptrace.h>
 #endif
 
+#ifndef PTRACE_PEEKUSER
+# ifdef PT_READ_D
+#  define PTRACE_PEEKUSER PT_READ_D
+# endif
+#endif /* PTRACE_PEEKUSER */
+
+#ifndef PTRACE_POKEUSER
+# ifdef PT_WRITE_D
+#  define PTRACE_POKEUSER PT_WRITE_D
+# endif
+#endif /* PTRACE_POKEUSER */
+
 #include "winbase.h"
 
 #include "file.h"
-------------- next part --------------



More information about the wine-patches mailing list