1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:37:34 +00:00

UserspaceEmulator: Symbolicate disassembly output :^)

Since we have the ELF executable handy, we can actually symbolicate the
disassembly trace output really easily. Very cool! :^)
This commit is contained in:
Andreas Kling 2020-07-11 17:18:07 +02:00
parent dc66d70369
commit 0f63d8c9b4
3 changed files with 31 additions and 10 deletions

View file

@ -47,8 +47,8 @@ int main(int argc, char** argv)
auto elf = ELF::Loader::create((const u8*)mapped_file.data(), mapped_file.size());
UserspaceEmulator::Emulator emulator;
if (!emulator.load_elf(*elf))
UserspaceEmulator::Emulator emulator(move(elf));
if (!emulator.load_elf())
return 1;
return emulator.exec();