mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 06:12:04 +00:00
[common] debug: print backtraces on assertions
This commit is contained in:
@@ -154,7 +154,9 @@ void debug_trace(const char * file, unsigned int line, const char * function,
|
||||
if (!(__VA_ARGS__)) \
|
||||
{ \
|
||||
DEBUG_ASSERT_PRINT(__VA_ARGS__); \
|
||||
DEBUG_PRINT_BACKTRACE(); \
|
||||
abort(); \
|
||||
DEBUG_UNREACHABLE_MARKER(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
@@ -156,6 +156,10 @@ bool installCrashHandler(const char * exe, char * argv0)
|
||||
return true;
|
||||
}
|
||||
|
||||
void printBacktrace(void)
|
||||
{
|
||||
}
|
||||
|
||||
void printAllThreadBacktraces(void)
|
||||
{
|
||||
}
|
||||
@@ -168,6 +172,10 @@ bool installCrashHandler(const char * exe, char * argv0)
|
||||
return true;
|
||||
}
|
||||
|
||||
void printBacktrace(void)
|
||||
{
|
||||
}
|
||||
|
||||
void printAllThreadBacktraces(void)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user