Alexandre Julliard : kernel32: Avoid using a breakpoint instruction in DebugBreak().
Module: wine Branch: master Commit: 71ae4774938ee6a5d7988abedc7ec3630b0ab488 URL: http://source.winehq.org/git/wine.git/?a=commit;h=71ae4774938ee6a5d7988abedc... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jun 21 10:39:06 2011 +0200 kernel32: Avoid using a breakpoint instruction in DebugBreak(). --- dlls/kernel32/debugger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/debugger.c b/dlls/kernel32/debugger.c index 4ac0a72..9122876 100644 --- a/dlls/kernel32/debugger.c +++ b/dlls/kernel32/debugger.c @@ -366,7 +366,7 @@ void WINAPI OutputDebugStringW( LPCWSTR str ) * can take some action. */ #if defined(__i386__) || defined(__x86_64__) -__ASM_STDCALL_FUNC( DebugBreak, 0, "int $3; ret" ) +__ASM_STDCALL_FUNC( DebugBreak, 0, "jmp " __ASM_NAME("DbgBreakPoint") ) #else void WINAPI DebugBreak(void) {
participants (1)
-
Alexandre Julliard