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:
parent
dc66d70369
commit
0f63d8c9b4
3 changed files with 31 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue