Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/unittests/Expression/DWARFExpressionTest.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | TEST(DWARFExpression, DW_OP_pick) { | ||||
EXPECT_THAT_EXPECTED(Evaluate({DW_OP_lit1, DW_OP_lit0, DW_OP_pick, 2}), | EXPECT_THAT_EXPECTED(Evaluate({DW_OP_lit1, DW_OP_lit0, DW_OP_pick, 2}), | ||||
llvm::Failed()); | llvm::Failed()); | ||||
} | } | ||||
TEST(DWARFExpression, DW_OP_convert) { | TEST(DWARFExpression, DW_OP_convert) { | ||||
/// Auxiliary debug info. | /// Auxiliary debug info. | ||||
const char *yamldata = | const char *yamldata = | ||||
"debug_abbrev:\n" | "debug_abbrev:\n" | ||||
" - Table:\n" | |||||
" - Code: 0x00000001\n" | " - Code: 0x00000001\n" | ||||
" Tag: DW_TAG_compile_unit\n" | " Tag: DW_TAG_compile_unit\n" | ||||
" Children: DW_CHILDREN_yes\n" | " Children: DW_CHILDREN_yes\n" | ||||
" Attributes:\n" | " Attributes:\n" | ||||
" - Attribute: DW_AT_language\n" | " - Attribute: DW_AT_language\n" | ||||
" Form: DW_FORM_data2\n" | " Form: DW_FORM_data2\n" | ||||
" - Code: 0x00000002\n" | " - Code: 0x00000002\n" | ||||
" Tag: DW_TAG_base_type\n" | " Tag: DW_TAG_base_type\n" | ||||
" Children: DW_CHILDREN_no\n" | " Children: DW_CHILDREN_no\n" | ||||
" Attributes:\n" | " Attributes:\n" | ||||
" - Attribute: DW_AT_encoding\n" | " - Attribute: DW_AT_encoding\n" | ||||
" Form: DW_FORM_data1\n" | " Form: DW_FORM_data1\n" | ||||
" - Attribute: DW_AT_byte_size\n" | " - Attribute: DW_AT_byte_size\n" | ||||
" Form: DW_FORM_data1\n" | " Form: DW_FORM_data1\n" | ||||
"debug_info:\n" | "debug_info:\n" | ||||
" - Version: 4\n" | " - Version: 4\n" | ||||
" AbbrOffset: 0\n" | " AbbrOffset: 0\n" | ||||
" AddrSize: 8\n" | " AddrSize: 8\n" | ||||
" Entries:\n" | " Entries:\n" | ||||
" - AbbrCode: 0x00000001\n" | " - AbbrCode: 0x00000001\n" | ||||
" Values:\n" | " Values:\n" | ||||
" - Value: 0x000000000000000C\n" | " - Value: 0x000000000000000C\n" | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |