mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
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:
@@ -41,7 +41,7 @@ VirtualConsole::VirtualConsole(unsigned index, InitialContents initial_contents)
|
||||
: TTY(4, index)
|
||||
, m_index(index)
|
||||
{
|
||||
ksprintf(m_tty_name, "/dev/tty%u", m_index);
|
||||
sprintf(m_tty_name, "/dev/tty%u", m_index);
|
||||
set_size(80, 25);
|
||||
m_horizontal_tabs = static_cast<u8*>(kmalloc_eternal(columns()));
|
||||
for (unsigned i = 0; i < columns(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user