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

LibDebug+Everywhere: Avoid void* -> FlatPtr -> void* dance

And limit the `void*` to the functions that interface the system (i.e.
ptrace wrappers).
This generally makes the code less riddled with casts.
This commit is contained in:
Ali Mohammad Pur 2022-01-27 04:46:27 +03:30 committed by Linus Groh
parent b27b22a68c
commit 6d64b13a1b
15 changed files with 97 additions and 96 deletions

View file

@ -51,11 +51,11 @@ void Inspector::parse_loaded_libraries(Function<void(float)> on_progress)
});
}
bool Inspector::poke(void*, FlatPtr) { return false; }
bool Inspector::poke(FlatPtr, FlatPtr) { return false; }
Optional<FlatPtr> Inspector::peek(void* address) const
Optional<FlatPtr> Inspector::peek(FlatPtr address) const
{
return m_reader->peek_memory((FlatPtr)address);
return m_reader->peek_memory(address);
}
PtraceRegisters Inspector::get_registers() const