3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: lib/ntdll/dbg/brkpoint.c
6 * PURPOSE: Handles breakpoints
7 * PROGRAMMER: Eric Kohl
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
17 /* FUNCTIONS *****************************************************************/
21 FIXME: DbgBreakPoint must not have a stack frame, but GCC doesn't support
24 __declspec(naked) VOID STDCALL DbgBreakPoint(VOID)
25 { __asm__(ASM_BREAKPOINT_STR); }
27 VOID STDCALL DbgUserBreakPoint(VOID)
28 { __asm__(ASM_BREAKPOINT_STR); }
30 #define DBG_BP_FUNC(__NAME__) \
34 ".global _" #__NAME__ "@0\n" \
35 "_" #__NAME__ "@0:\n" \
40 DBG_BP_FUNC(DbgBreakPoint);
41 DBG_BP_FUNC(DbgUserBreakPoint);