kernel/m68k: Apply same fix to arch_debug_get_stack_trace as in x86.

All the other arches don't even have an implementation of this function.
This commit is contained in:
Augustin Cavalier
2024-07-16 21:44:46 -04:00
parent 7eb6aafc30
commit acd752e158
+3 -4
View File
@@ -325,11 +325,10 @@ arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount,
break;
}
if (skipFrames <= 0
&& ((flags & STACK_TRACE_KERNEL) != 0 || onKernelStack)) {
returnAddresses[count++] = ip;
} else
if (skipFrames > 0)
skipFrames--;
else
returnAddresses[count++] = ip;
framePointer = nextFrame;
}