mirror of https://github.com/mgba-emu/mgba.git
Stack trace: fix release build failure
This commit is contained in:
parent
fb267a32ff
commit
bb1fd9e575
|
@ -142,18 +142,6 @@ static void _handleDeath(int sig) {
|
||||||
printf("No debugger attached!\n");
|
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) {
|
static void _breakInto(struct CLIDebugger* debugger, struct CLIDebugVector* dv) {
|
||||||
UNUSED(debugger);
|
UNUSED(debugger);
|
||||||
UNUSED(dv);
|
UNUSED(dv);
|
||||||
|
@ -172,6 +160,18 @@ static void _breakInto(struct CLIDebugger* debugger, struct CLIDebugVector* dv)
|
||||||
}
|
}
|
||||||
#endif
|
#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) {
|
static void _continue(struct CLIDebugger* debugger, struct CLIDebugVector* dv) {
|
||||||
UNUSED(dv);
|
UNUSED(dv);
|
||||||
debugger->d.state = debugger->traceRemaining != 0 ? DEBUGGER_CALLBACK : DEBUGGER_RUNNING;
|
debugger->d.state = debugger->traceRemaining != 0 ? DEBUGGER_CALLBACK : DEBUGGER_RUNNING;
|
||||||
|
|
Loading…
Reference in New Issue