[ros-diffs] [ion] 16007: Oops. Thanks w3seek
ion at svn.reactos.com
ion at svn.reactos.com
Fri Jun 17 19:59:15 CEST 2005
Oops. Thanks w3seek
Modified: trunk/reactos/include/ntdll/ntdll.h
_____
Modified: trunk/reactos/include/ntdll/ntdll.h
--- trunk/reactos/include/ntdll/ntdll.h 2005-06-17 17:44:39 UTC (rev
16006)
+++ trunk/reactos/include/ntdll/ntdll.h 2005-06-17 17:59:11 UTC (rev
16007)
@@ -41,6 +41,17 @@
#define CHECKPOINT1(args...)
#endif
+/* Macros expanding to the appropriate inline assembly to raise a
breakpoint */
+#if defined(_M_IX86)
+#define ASM_BREAKPOINT "\nint $3\n"
+#elif defined(_M_ALPHA)
+#define ASM_BREAKPOINT "\ncall_pal bpt\n"
+#elif defined(_M_MIPS)
+#define ASM_BREAKPOINT "\nbreak\n"
+#else
+#error Unsupported architecture.
+#endif
+
#define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
#define ROUNDDOWN(a,b) (((a)/(b))*(b))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050617/cfada59c/attachment.html
More information about the Ros-diffs
mailing list