all repos — mgba @ bb1fd9e575c35204bfba80b1031a66932ac6f44f

mGBA Game Boy Advance Emulator

Stack trace: fix release build failure
Adam Higerd chighland@gmail.com
Mon, 27 Jul 2020 22:38:15 -0500
commit

bb1fd9e575c35204bfba80b1031a66932ac6f44f

parent

fb267a32ff4b9ff6dc8688610b936cb8450edd8e

1 files changed, 12 insertions(+), 12 deletions(-)

jump to
M src/debugger/cli-debugger.csrc/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);