Alexandre Julliard : kernel32: Implement DebugBreak directly in assembly.

Alexandre Julliard julliard at winehq.org
Thu Jun 16 14:28:49 CDT 2011


Module: wine
Branch: master
Commit: 5f06809ab3339e2001de57f18be988146915bb7b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5f06809ab3339e2001de57f18be988146915bb7b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jun 15 20:04:27 2011 +0200

kernel32: Implement DebugBreak directly in assembly.

---

 dlls/kernel32/debugger.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/kernel32/debugger.c b/dlls/kernel32/debugger.c
index 3abffdf..4ac0a72 100644
--- a/dlls/kernel32/debugger.c
+++ b/dlls/kernel32/debugger.c
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
 
@@ -363,15 +364,15 @@ void WINAPI OutputDebugStringW( LPCWSTR str )
  *
  *  Raises an exception so that a debugger (if attached)
  *  can take some action.
- *
- * PARAMS
- *
- * RETURNS
  */
+#if defined(__i386__) || defined(__x86_64__)
+__ASM_STDCALL_FUNC( DebugBreak, 0, "int $3; ret" )
+#else
 void WINAPI DebugBreak(void)
 {
     DbgBreakPoint();
 }
+#endif
 
 /***********************************************************************
  *           DebugBreakProcess   (KERNEL32.@)




More information about the wine-cvs mailing list