mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibDebug: Add support for StandardOpcodes::FixAdvancePc
This commit is contained in:
committed by
Andreas Kling
parent
4f6914a0c0
commit
b731db6691
Notes:
sideshowbarker
2024-07-18 20:16:31 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/b731db6691f Pull-request: https://github.com/SerenityOS/serenity/pull/6373 Reviewed-by: https://github.com/alimpfard
@@ -224,6 +224,15 @@ void LineProgram::handle_standard_opcode(u8 opcode)
|
||||
dbgln("SetIsa: {}", isa);
|
||||
break;
|
||||
}
|
||||
case StandardOpcodes::FixAdvancePc: {
|
||||
u16 delta = 0;
|
||||
m_stream >> delta;
|
||||
#if DWARF_DEBUG
|
||||
dbgln("FixAdvancePC by: {} to: {:p}", delta, m_address + delta);
|
||||
#endif
|
||||
m_address += delta;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
dbgln("Unhandled LineProgram opcode {}", opcode);
|
||||
VERIFY_NOT_REACHED();
|
||||
|
||||
Reference in New Issue
Block a user