From 8278039105cdfff08470f71038a5f57191b4f88f Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 9 Oct 2021 17:44:35 +0200 Subject: LibDebug: Support `DW_FORM_data16` Clang emits this form at all debug levels. --- Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Userland') 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; -- cgit v1.2.3