From 4b08e9770afc6c8e1bb8ae90767adc8e2d6c7199 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Fri, 17 Jun 2005 17:59:11 +0000 Subject: [PATCH] Oops. Thanks w3seek svn path=/trunk/; revision=16007 --- reactos/include/ntdll/ntdll.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reactos/include/ntdll/ntdll.h b/reactos/include/ntdll/ntdll.h index bd7aeac7ff6..5340e505555 100644 --- a/reactos/include/ntdll/ntdll.h +++ b/reactos/include/ntdll/ntdll.h @@ -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))