summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-16 11:39:56 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-16 19:00:30 +0200
commitb731db6691f2184fb4fc3ae922b590eca9d41ef6 (patch)
tree551203410357518ce10d48363f3173593e20c649
parent4f6914a0c047442a4e838058c9031c4b23c46db3 (diff)
downloadserenity-b731db6691f2184fb4fc3ae922b590eca9d41ef6.zip
LibDebug: Add support for StandardOpcodes::FixAdvancePc
-rw-r--r--Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp b/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp
index 3cf18fe86b..ff3e28a752 100644
--- a/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp
+++ b/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp
@@ -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();