Kernel: Demangle userspace ELF symbols in backtraces

Turns out we can use abi::__cxa_demangle() for this, and all we need to
provide is sprintf(), realloc() and free(), so this patch exposes them.

We now have fully demangled C++ backtraces :^)
This commit is contained in:
Andreas Kling 2019-11-27 14:06:24 +01:00
commit 0adbacf59e
Notes: sideshowbarker 2024-07-19 11:03:05 +09:00
10 changed files with 44 additions and 9 deletions

View file

@ -174,4 +174,13 @@ char* strstr(const char* haystack, const char* needle)
ASSERT_NOT_REACHED();
}
void* realloc(void* p, size_t s)
{
return krealloc(p, s);
}
void free(void* p)
{
return kfree(p);
}
}