|
@@ -300,11 +300,11 @@ namespace ImStb
|
|
#elif defined(__clang__)
|
|
#elif defined(__clang__)
|
|
#define IM_DEBUG_BREAK() __builtin_debugtrap()
|
|
#define IM_DEBUG_BREAK() __builtin_debugtrap()
|
|
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
|
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
|
-#define IM_DEBUG_BREAK() __asm__ volatile("int $0x03")
|
|
|
|
|
|
+#define IM_DEBUG_BREAK() __asm__ volatile("int3;nop")
|
|
#elif defined(__GNUC__) && defined(__thumb__)
|
|
#elif defined(__GNUC__) && defined(__thumb__)
|
|
#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01")
|
|
#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01")
|
|
#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__)
|
|
#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__)
|
|
-#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0");
|
|
|
|
|
|
+#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0")
|
|
#else
|
|
#else
|
|
#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger!
|
|
#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger!
|
|
#endif
|
|
#endif
|