mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:48:11 +00:00
LibDebug: Handle AttributeDataForm::SData (DW_FORM_sdata)
This is a LEB128-encoded signed constant.
This commit is contained in:
parent
013c7ccd73
commit
0f84e246b2
1 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,13 @@ DIE::AttributeValue DIE::get_attribute_value(AttributeDataForm form,
|
||||||
value.data.as_u32 = address;
|
value.data.as_u32 = address;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case AttributeDataForm::SData: {
|
||||||
|
ssize_t data;
|
||||||
|
debug_info_stream.read_LEB128_signed(data);
|
||||||
|
value.type = AttributeValue::Type::SignedNumber;
|
||||||
|
value.data.as_i32 = data;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case AttributeDataForm::SecOffset: {
|
case AttributeDataForm::SecOffset: {
|
||||||
u32 data;
|
u32 data;
|
||||||
debug_info_stream >> data;
|
debug_info_stream >> data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue