Stack trace: fix release build failure
Adam Higerd chighland@gmail.com
Mon, 27 Jul 2020 22:38:15 -0500
1 files changed,
12 insertions(+),
12 deletions(-)
jump to
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -142,18 +142,6 @@ UNUSED(sig);
printf("No debugger attached!\n"); } -static bool CLIDebuggerCheckTraceMode(struct CLIDebugger* debugger, bool requireEnabled) { - struct mDebuggerPlatform* platform = debugger->d.platform; - if (!platform->getStackTraceMode) { - debugger->backend->printf(debugger->backend, "Stack tracing is not supported by this platform.\n"); - return false; - } else if (requireEnabled && platform->getStackTraceMode(platform) == STACK_TRACE_DISABLED) { - debugger->backend->printf(debugger->backend, "Stack tracing is not enabled.\n"); - return false; - } - return true; -} - static void _breakInto(struct CLIDebugger* debugger, struct CLIDebugVector* dv) { UNUSED(debugger); UNUSED(dv);@@ -171,6 +159,18 @@ #endif
sigaction(SIGTRAP, &osa, 0); } #endif + +static bool CLIDebuggerCheckTraceMode(struct CLIDebugger* debugger, bool requireEnabled) { + struct mDebuggerPlatform* platform = debugger->d.platform; + if (!platform->getStackTraceMode) { + debugger->backend->printf(debugger->backend, "Stack tracing is not supported by this platform.\n"); + return false; + } else if (requireEnabled && platform->getStackTraceMode(platform) == STACK_TRACE_DISABLED) { + debugger->backend->printf(debugger->backend, "Stack tracing is not enabled.\n"); + return false; + } + return true; +} static void _continue(struct CLIDebugger* debugger, struct CLIDebugVector* dv) { UNUSED(dv);