mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 01:56:21 +00:00
Kernel: Demangle kernel C++ symbols correctly again
I broke this while implementing module linking. Also move the actual demangling work to AK, in AK::demangle(const char*)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <AK/Demangle.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <Kernel/FileSystem/FileDescription.h>
|
||||
#include <Kernel/Process.h>
|
||||
@@ -682,7 +683,7 @@ String Thread::backtrace_impl() const
|
||||
if (symbol.ksym->address == ksym_highest_address && offset > 4096)
|
||||
builder.appendf("%p\n", symbol.address);
|
||||
else
|
||||
builder.appendf("%p %s +%u\n", symbol.address, symbol.ksym->name, offset);
|
||||
builder.appendf("%p %s +%u\n", symbol.address, demangle(symbol.ksym->name).characters(), offset);
|
||||
}
|
||||
return builder.to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user