summaryrefslogtreecommitdiff
path: root/Applications/Debugger/DebugSession.cpp
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-04-13 19:23:19 +0300
committerAndreas Kling <kling@serenityos.org>2020-04-13 23:20:59 +0200
commite207de84492a4a12bde4714f64263e2ed3a9db43 (patch)
tree6a6d9e1dcc538f230e6fc1bac2c9ab4da52f070c /Applications/Debugger/DebugSession.cpp
parent34f0d98e67d4994c1c712b61d73384189c78b00a (diff)
downloadserenity-e207de84492a4a12bde4714f64263e2ed3a9db43.zip
LibELF: Add find_demangled_function
Also, added AK::String::index_of and fixed a bug in ELF::Loader::symbol_ptr
Diffstat (limited to 'Applications/Debugger/DebugSession.cpp')
-rw-r--r--Applications/Debugger/DebugSession.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Applications/Debugger/DebugSession.cpp b/Applications/Debugger/DebugSession.cpp
index 86c59e8196..14e673cc5e 100644
--- a/Applications/Debugger/DebugSession.cpp
+++ b/Applications/Debugger/DebugSession.cpp
@@ -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();
-}