mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibDebug: Use Core::Stream
to read opcodes for expression evaluation
This commit is contained in:
parent
91505d8cf3
commit
a9eea2e0c4
3 changed files with 7 additions and 8 deletions
|
@ -231,7 +231,7 @@ static ErrorOr<void> parse_variable_location(Dwarf::DIE const& variable_die, Deb
|
|||
break;
|
||||
case Dwarf::AttributeValue::Type::DwarfExpression: {
|
||||
auto expression_bytes = location_info.value().as_raw_bytes();
|
||||
auto value = Dwarf::Expression::evaluate(expression_bytes, regs);
|
||||
auto value = TRY(Dwarf::Expression::evaluate(expression_bytes, regs));
|
||||
|
||||
if (value.type != Dwarf::Expression::Type::None) {
|
||||
VERIFY(value.type == Dwarf::Expression::Type::UnsignedInteger);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue