Skip to content

Commit c2bd32c

Browse files
zadewgJavier Martinez
authored and
Javier Martinez
committed
Fix non-standard parsing of DWARF 5 Type Unit Headers (7.5.3)
1 parent 2757d3e commit c2bd32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/dwarf/debug_info.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ void CU::ReadHeader(string_view entire_unit, string_view data,
146146
switch (unit_type_) {
147147
case DW_UT_skeleton:
148148
case DW_UT_split_compile:
149-
case DW_UT_split_type:
150149
dwo_id_ = ReadFixed<uint64_t>(&data);
151150
break;
151+
case DW_UT_split_type:
152152
case DW_UT_type:
153153
unit_type_signature_ = ReadFixed<uint64_t>(&data);
154154
unit_type_offset_ = unit_sizes_.ReadDWARFOffset(&data);

0 commit comments

Comments
 (0)