forked from qt-creator/qt-creator
Debugger: Use DebugBreak() to interrupt in simple test
Change-Id: Ia15fc8c780b53f1b84af16a172af79b3145e9c39 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -276,8 +276,7 @@ void dummyStatement(...) {}
|
|||||||
|
|
||||||
#if USE_AUTOBREAK
|
#if USE_AUTOBREAK
|
||||||
# ifdef Q_CC_MSVC
|
# ifdef Q_CC_MSVC
|
||||||
# include <crtdbg.h>
|
# define BREAK_HERE DebugBreak();
|
||||||
# define BREAK_HERE _CrtDbgReport(_CRT_WARN, NULL, NULL, "simple_test_app", NULL)
|
|
||||||
# else
|
# else
|
||||||
# define BREAK_HERE asm("int $3; mov %eax, %eax")
|
# define BREAK_HERE asm("int $3; mov %eax, %eax")
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user