1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

Debugger: Add DebugSession

The DebugSession class wraps the usage of Ptrace.
It is intended to be used by cli & gui debugger programs.

Also, call objdump for disassemly
This commit is contained in:
Itamar 2020-04-10 17:35:49 +03:00 committed by Andreas Kling
parent 50fd2cabff
commit 3e9a7175d1
10 changed files with 473 additions and 166 deletions

View file

@ -46,6 +46,7 @@ public:
void set_trace_syscalls(bool val) { m_trace_syscalls = val; }
void set_regs(const RegisterState& regs);
void set_regs(const PtraceRegisters& regs) { m_regs = regs; }
bool has_regs() const { return m_regs.has_value(); }
const PtraceRegisters& regs() const
{