mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +00:00
Profiler: Don't try to disassemble empty buffers
This commit is contained in:
parent
6cb42d8a40
commit
134f43ba12
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
|
||||||
dbgln("DisassemblyModel: symbol not found");
|
dbgln("DisassemblyModel: symbol not found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!symbol.value().raw_data().length()) {
|
||||||
|
dbgln("DisassemblyModel: Found symbol without code");
|
||||||
|
return;
|
||||||
|
}
|
||||||
VERIFY(symbol.has_value());
|
VERIFY(symbol.has_value());
|
||||||
|
|
||||||
auto symbol_offset_from_function_start = node.address() - base_address - symbol->value();
|
auto symbol_offset_from_function_start = node.address() - base_address - symbol->value();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue