mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
LibDebug: Support DW_FORM_ref_udata
This is used alongside/instead of the fixed-length DW_FORM_ref4 form when compiling for AArch64.
This commit is contained in:
parent
d205814da6
commit
ed13b7beb6
Notes:
sideshowbarker
2024-07-17 07:20:57 +09:00
Author: https://github.com/BertalanD
Commit: ed13b7beb6
Pull-request: https://github.com/SerenityOS/serenity/pull/18466
Reviewed-by: https://github.com/nico ✅
1 changed files with 7 additions and 0 deletions
|
@ -161,6 +161,13 @@ ErrorOr<AttributeValue> DwarfInfo::get_attribute_value(AttributeDataForm form, s
|
|||
value.m_data.as_unsigned = data + unit->offset();
|
||||
break;
|
||||
}
|
||||
case AttributeDataForm::RefUData: {
|
||||
auto data = TRY(debug_info_stream.read_value<LEB128<size_t>>());
|
||||
value.m_type = AttributeValue::Type::DieReference;
|
||||
VERIFY(unit);
|
||||
value.m_data.as_unsigned = data + unit->offset();
|
||||
break;
|
||||
}
|
||||
case AttributeDataForm::FlagPresent: {
|
||||
value.m_type = AttributeValue::Type::Boolean;
|
||||
value.m_data.as_bool = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue