1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

Debugger: Add source-level operations

- Print current source location, if available
- Add a breakpoint at a source location
- "sl" command - step to the next line in source
This commit is contained in:
Itamar 2020-04-19 23:33:06 +03:00 committed by Andreas Kling
parent 8a886e0e96
commit e35219b5ce
4 changed files with 72 additions and 14 deletions

View file

@ -31,7 +31,8 @@
DebugSession::DebugSession(int pid)
: m_debugee_pid(pid)
, m_executable(String::format("/proc/%d/exe", pid))
, m_elf(reinterpret_cast<u8*>(m_executable.data()), m_executable.size())
, m_elf(ELF::Loader::create(reinterpret_cast<u8*>(m_executable.data()), m_executable.size()))
, m_debug_info(m_elf)
{
}