1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

Profiler: Don't stop disassembly on invalid instructions

This commit is contained in:
Simon Wanner 2022-03-27 19:27:57 +02:00 committed by Andreas Kling
parent 6b5e4cdfbc
commit bf768ed215

View file

@ -107,7 +107,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
break;
auto insn = disassembler.next();
if (!insn.has_value() || !insn.value().is_valid())
if (!insn.has_value())
break;
FlatPtr address_in_profiled_program = node.address() + offset_into_symbol;