mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
HackStudio: Enable building HackStudio on x86_64
This implements bits and pieces to get the debugging functionality to build. No testing has been done to check whether it actually works because GCC doesn't currently work.
This commit is contained in:
parent
fb099ad38b
commit
b81926d933
14 changed files with 110 additions and 29 deletions
|
@ -18,10 +18,10 @@ namespace HackStudio {
|
|||
|
||||
DisassemblyModel::DisassemblyModel(const Debug::DebugSession& debug_session, const PtraceRegisters& regs)
|
||||
{
|
||||
auto lib = debug_session.library_at(regs.eip);
|
||||
auto lib = debug_session.library_at(regs.ip());
|
||||
if (!lib)
|
||||
return;
|
||||
auto containing_function = lib->debug_info->get_containing_function(regs.eip - lib->base_address);
|
||||
auto containing_function = lib->debug_info->get_containing_function(regs.ip() - lib->base_address);
|
||||
if (!containing_function.has_value()) {
|
||||
dbgln("Cannot disassemble as the containing function was not found.");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue