summaryrefslogtreecommitdiff
path: root/lldb/unittests
diff options
context:
space:
mode:
authorAlexander Yermolovich <ayermolo@fb.com>2023-02-16 17:20:27 -0800
committerAlexander Yermolovich <ayermolo@fb.com>2023-02-16 17:20:27 -0800
commit8116fc592c5eef88584033ec4f3539f405dee0e0 (patch)
tree5266229852db3439e95dc07c5418f547ed61f335 /lldb/unittests
parentf253bb640d97756d2808bb7c7b2bb31b1090a654 (diff)
downloadllvm-8116fc592c5eef88584033ec4f3539f405dee0e0.tar.gz
Revert "[LLDB] Enable 64 bit debug/type offset"
This reverts commit 2062e90aa531e8445e5dc0e16222c0f246af1bf4.
Diffstat (limited to 'lldb/unittests')
-rw-r--r--lldb/unittests/Expression/DWARFExpressionTest.cpp4
-rw-r--r--lldb/unittests/SymbolFile/DWARF/DWARFIndexCachingTest.cpp20
2 files changed, 2 insertions, 22 deletions
diff --git a/lldb/unittests/Expression/DWARFExpressionTest.cpp b/lldb/unittests/Expression/DWARFExpressionTest.cpp
index 7d153d7fbed8..942426e4345e 100644
--- a/lldb/unittests/Expression/DWARFExpressionTest.cpp
+++ b/lldb/unittests/Expression/DWARFExpressionTest.cpp
@@ -713,7 +713,7 @@ DWARF:
// Entries:
// - AbbrCode: 0x1
// Values:
- // - Value: 0x0120304
+ // - Value: 0x01020304
// - AbbrCode: 0x0
const char *dwo_yamldata = R"(
--- !ELF
@@ -750,7 +750,7 @@ Sections:
auto dwo_module_sp = std::make_shared<Module>(dwo_file->moduleSpec());
SymbolFileDWARFDwo dwo_symfile(
skeleton_symfile, dwo_module_sp->GetObjectFile()->shared_from_this(),
- 0x0120304);
+ 0x01020304);
auto *dwo_dwarf_unit = dwo_symfile.DebugInfo().GetUnitAtIndex(0);
testExpressionVendorExtensions(dwo_module_sp, *dwo_dwarf_unit);
diff --git a/lldb/unittests/SymbolFile/DWARF/DWARFIndexCachingTest.cpp b/lldb/unittests/SymbolFile/DWARF/DWARFIndexCachingTest.cpp
index e5d2b8eda0e7..4f7d57a5eec1 100644
--- a/lldb/unittests/SymbolFile/DWARF/DWARFIndexCachingTest.cpp
+++ b/lldb/unittests/SymbolFile/DWARF/DWARFIndexCachingTest.cpp
@@ -45,26 +45,6 @@ TEST(DWARFIndexCachingTest, DIERefEncodeDecode) {
EncodeDecode(DIERef(200, DIERef::Section::DebugTypes, 0x11223344));
}
-TEST(DWARFIndexCachingTest, DIERefEncodeDecodeMax) {
- // Tests DIERef::Encode(...) and DIERef::Decode(...)
- EncodeDecode(DIERef(std::nullopt, DIERef::Section::DebugInfo,
- DIERef::k_die_offset_mask - 1));
- EncodeDecode(DIERef(std::nullopt, DIERef::Section::DebugTypes,
- DIERef::k_die_offset_mask - 1));
- EncodeDecode(
- DIERef(100, DIERef::Section::DebugInfo, DIERef::k_die_offset_mask - 1));
- EncodeDecode(
- DIERef(200, DIERef::Section::DebugTypes, DIERef::k_die_offset_mask - 1));
- EncodeDecode(DIERef(DIERef::k_file_index_mask, DIERef::Section::DebugInfo,
- DIERef::k_file_index_mask));
- EncodeDecode(DIERef(DIERef::k_file_index_mask, DIERef::Section::DebugTypes,
- DIERef::k_file_index_mask));
- EncodeDecode(DIERef(DIERef::k_file_index_mask, DIERef::Section::DebugInfo,
- 0x11223344));
- EncodeDecode(DIERef(DIERef::k_file_index_mask, DIERef::Section::DebugTypes,
- 0x11223344));
-}
-
static void EncodeDecode(const NameToDIE &object, ByteOrder byte_order) {
const uint8_t addr_size = 8;
DataEncoder encoder(byte_order, addr_size);