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
22 * __declspec(naked) yet
26 __declspec(naked) VOID STDCALL DbgBreakPoint(VOID)
27 { __asm__(ASM_BREAKPOINT_STR); }
32 VOID STDCALL DbgUserBreakPoint(VOID)
33 { __asm__(ASM_BREAKPOINT_STR); }
35 #define DBG_BP_FUNC(__NAME__) \
39 ".global _" #__NAME__ "@0\n" \
40 "_" #__NAME__ "@0:\n" \
45 DBG_BP_FUNC(DbgBreakPoint);
46 DBG_BP_FUNC(DbgUserBreakPoint);