diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-10-09 17:44:35 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-17 17:09:58 +0100 |
commit | 8278039105cdfff08470f71038a5f57191b4f88f (patch) | |
tree | 71ee0ce316a4c74e8eed015b24b0dc6154c0bed8 /Userland | |
parent | ac53569bd11d1425d5ff77bd0b8a22d26222a7ca (diff) | |
download | serenity-8278039105cdfff08470f71038a5f57191b4f88f.zip |
LibDebug: Support `DW_FORM_data16`
Clang emits this form at all debug levels.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp b/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp index fbda566720..8cbc633c04 100644 --- a/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp +++ b/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp @@ -153,6 +153,12 @@ AttributeValue DwarfInfo::get_attribute_value(AttributeDataForm form, ssize_t im value.m_data.as_unsigned = data; break; } + case AttributeDataForm::Data16: { + value.m_type = AttributeValue::Type::RawBytes; + assign_raw_bytes_value(16); + VERIFY(!debug_info_stream.has_any_error()); + break; + } case AttributeDataForm::Ref4: { u32 data; debug_info_stream >> data; |