mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 03:19:18 +00:00
QoL
This commit is contained in:
@ -25,14 +25,13 @@ namespace CrashHandler
|
||||
|
||||
SafeFunction void TraceFrames(CHArchTrapFrame *Frame, int Count, SymbolResolver::Symbols *SymHandle, bool Kernel)
|
||||
{
|
||||
|
||||
#if defined(__amd64__)
|
||||
struct StackFrame *frames = (struct StackFrame *)Frame->rbp; // (struct StackFrame *)__builtin_frame_address(0);
|
||||
#elif defined(__i386__)
|
||||
struct StackFrame *frames = (struct StackFrame *)Frame->ebp; // (struct StackFrame *)__builtin_frame_address(0);
|
||||
#elif defined(__aarch64__)
|
||||
#endif
|
||||
debug("Stack tracing...");
|
||||
debug("\nStack tracing... %p %d %p %d", Frame, Count, frames, Kernel);
|
||||
EHPrint("\e7981FC\nStack Trace:\n");
|
||||
if (!frames || !frames->rip || !frames->rbp)
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ namespace CrashHandler
|
||||
SymbolResolver::Symbols *sh = data.Process->ELFSymbolTable;
|
||||
if (!sh)
|
||||
{
|
||||
EHPrint("\eFF0000< No symbol table available. >\n");
|
||||
EHPrint("\n\eFF0000< No symbol table available. >\n");
|
||||
return;
|
||||
}
|
||||
TraceFrames(data.Frame, 40, sh, false);
|
||||
|
Reference in New Issue
Block a user