mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +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
Notes:
sideshowbarker
2024-07-19 04:57:08 +09:00
Author: https://github.com/awesomekling
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