aboutsummaryrefslogtreecommitdiff
path: root/src/common/dwarf/dwarf2reader_test_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dwarf/dwarf2reader_test_common.h')
-rw-r--r--src/common/dwarf/dwarf2reader_test_common.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/common/dwarf/dwarf2reader_test_common.h b/src/common/dwarf/dwarf2reader_test_common.h
index e91de906..545bc455 100644
--- a/src/common/dwarf/dwarf2reader_test_common.h
+++ b/src/common/dwarf/dwarf2reader_test_common.h
@@ -80,8 +80,14 @@ class TestCompilationUnit: public google_breakpad::test_assembler::Section {
}
post_length_offset_ = Size();
D16(version);
- SectionOffset(abbrev_offset);
- D8(address_size);
+ if (version <= 4) {
+ SectionOffset(abbrev_offset);
+ D8(address_size);
+ } else {
+ D8(0x01); // DW_UT_compile
+ D8(address_size);
+ SectionOffset(abbrev_offset);
+ }
return *this;
}