mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 19:56:30 +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
Notes:
sideshowbarker
2024-07-19 01:31:20 +09:00
Author: https://github.com/awesomekling
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;
|
||||
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: {
|
||||
u32 data;
|
||||
debug_info_stream >> data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue