LibDebug: Add support for StandardOpcodes::FixAdvancePc

This commit is contained in:
Gunnar Beutner 2021-04-16 11:39:56 +02:00 committed by Andreas Kling
parent 4f6914a0c0
commit b731db6691

View file

@ -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();