mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 01:58:12 +00:00
LibELF: Add find_demangled_function
Also, added AK::String::index_of and fixed a bug in ELF::Loader::symbol_ptr
This commit is contained in:
parent
34f0d98e67
commit
e207de8449
7 changed files with 71 additions and 24 deletions
|
@ -30,8 +30,8 @@
|
|||
|
||||
DebugSession::DebugSession(int pid)
|
||||
: m_debugee_pid(pid)
|
||||
, m_executable(make<MappedFile>(String::format("/proc/%d/exe", pid)))
|
||||
, m_elf_image(make<ELF::Image>(reinterpret_cast<u8*>(m_executable->data()), m_executable->size()))
|
||||
, m_executable(String::format("/proc/%d/exe", pid))
|
||||
, m_elf(reinterpret_cast<u8*>(m_executable.data()), m_executable.size())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -176,8 +176,3 @@ void DebugSession::continue_debugee()
|
|||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
VirtualAddress DebugSession::get_entry_point() const
|
||||
{
|
||||
return m_elf_image->entry();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue