diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-27 14:06:24 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-27 14:06:24 +0100 |
commit | 0adbacf59eca87b113ac731be7c136f6b0340a19 (patch) | |
tree | 34a1ea4b23123226057de456d5b2a9b8d6118eed /Kernel/StdLib.cpp | |
parent | 2d1bcce34af870228165a894d9e0200255ec1ba5 (diff) | |
download | serenity-0adbacf59eca87b113ac731be7c136f6b0340a19.zip |
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 :^)
Diffstat (limited to 'Kernel/StdLib.cpp')
-rw-r--r-- | Kernel/StdLib.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Kernel/StdLib.cpp b/Kernel/StdLib.cpp index 6e9e4dbc33..a0b033cd71 100644 --- a/Kernel/StdLib.cpp +++ b/Kernel/StdLib.cpp @@ -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); +} } |