/system/core/libunwindstack/tests/ |
D | DwarfEhFrameTest.cpp | 74 const DwarfCie* cie = fde->cie; in TYPED_TEST_P() local 75 ASSERT_TRUE(cie != nullptr); in TYPED_TEST_P() 76 EXPECT_EQ(1U, cie->version); in TYPED_TEST_P() 77 EXPECT_EQ(DW_EH_PE_sdata4, cie->fde_address_encoding); in TYPED_TEST_P() 78 EXPECT_EQ(DW_EH_PE_omit, cie->lsda_encoding); in TYPED_TEST_P() 79 EXPECT_EQ(0U, cie->segment_size); in TYPED_TEST_P() 80 EXPECT_EQ('\0', cie->augmentation_string[0]); in TYPED_TEST_P() 81 EXPECT_EQ(0U, cie->personality_handler); in TYPED_TEST_P() 82 EXPECT_EQ(0x500dU, cie->cfa_instructions_offset); in TYPED_TEST_P() 83 EXPECT_EQ(0x5100U, cie->cfa_instructions_end); in TYPED_TEST_P() [all …]
|
D | DwarfDebugFrameTest.cpp | 137 EXPECT_TRUE(fdes[0]->cie != nullptr); in TYPED_TEST_P() 145 EXPECT_TRUE(fdes[1]->cie != nullptr); in TYPED_TEST_P() 153 EXPECT_TRUE(fdes[2]->cie != nullptr); in TYPED_TEST_P() 161 EXPECT_TRUE(fdes[3]->cie != nullptr); in TYPED_TEST_P() 285 EXPECT_TRUE(fdes[0]->cie != nullptr); in TYPED_TEST_P() 293 EXPECT_TRUE(fdes[1]->cie != nullptr); in TYPED_TEST_P() 301 EXPECT_TRUE(fdes[2]->cie != nullptr); in TYPED_TEST_P() 309 EXPECT_TRUE(fdes[3]->cie != nullptr); in TYPED_TEST_P() 415 ASSERT_TRUE(fde->cie != nullptr); in TYPED_TEST_P() 416 EXPECT_EQ(1U, fde->cie->version); in TYPED_TEST_P() [all …]
|
D | DwarfSectionImplTest.cpp | 98 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local 108 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, ®s, &finished)); in TYPED_TEST_P() 114 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local 125 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, ®s, &finished)); in TYPED_TEST_P() 130 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local 143 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, ®s, &finished)); in TYPED_TEST_P() 148 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local 159 ASSERT_TRUE(this->section_->Eval(&cie, &this->memory_, loc_regs, ®s, &finished)); in TYPED_TEST_P() 166 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local 177 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, ®s, &finished)); in TYPED_TEST_P() [all …]
|
D | DwarfSectionTest.cpp | 70 fde.cie = nullptr; in TEST_F() 79 DwarfCie cie{}; in TEST_F() local 82 fde.cie = &cie; in TEST_F() 93 DwarfCie cie{}; in TEST_F() local 96 fde.cie = &cie; in TEST_F() 103 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, nullptr, ::testing::_)) in TEST_F() 118 DwarfCie cie{}; in TEST_F() local 122 fde.cie = &cie; in TEST_F() 129 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, nullptr, ::testing::_)) in TEST_F() 139 DwarfCie cie{}; in TEST_F() local [all …]
|
D | DwarfEhFrameWithHdrTest.cpp | 384 ASSERT_TRUE(fde->cie != nullptr); in TYPED_TEST_P() 385 EXPECT_EQ(1U, fde->cie->version); in TYPED_TEST_P() 386 EXPECT_EQ(DW_EH_PE_sdata4, fde->cie->fde_address_encoding); in TYPED_TEST_P() 387 EXPECT_EQ(DW_EH_PE_omit, fde->cie->lsda_encoding); in TYPED_TEST_P() 388 EXPECT_EQ(0U, fde->cie->segment_size); in TYPED_TEST_P() 389 EXPECT_EQ(1U, fde->cie->augmentation_string.size()); in TYPED_TEST_P() 390 EXPECT_EQ('\0', fde->cie->augmentation_string[0]); in TYPED_TEST_P() 391 EXPECT_EQ(0U, fde->cie->personality_handler); in TYPED_TEST_P() 392 EXPECT_EQ(0xf00dU, fde->cie->cfa_instructions_offset); in TYPED_TEST_P() 393 EXPECT_EQ(0xf104U, fde->cie->cfa_instructions_end); in TYPED_TEST_P() [all …]
|
D | DwarfCfaLogTest.cpp | 59 fde_.cie = &cie_; in SetUp()
|
D | DwarfCfaTest.cpp | 56 fde_.cie = &cie_; in SetUp()
|
/system/core/libunwindstack/ |
D | DwarfSection.cpp | 45 if (fde == nullptr || fde->cie == nullptr) { in Step() 55 loc_regs.cie = fde->cie; in Step() 62 return Eval(it->second.cie, process_memory, it->second, regs, finished); in Step() 71 DwarfCie* cie = &cie_entries_[offset]; in GetCieFromOffset() local 73 if (!FillInCieHeader(cie) || !FillInCie(cie)) { in GetCieFromOffset() 78 return cie; in GetCieFromOffset() 82 bool DwarfSectionImpl<AddressType>::FillInCieHeader(DwarfCie* cie) { in FillInCieHeader() argument 83 cie->lsda_encoding = DW_EH_PE_omit; in FillInCieHeader() 99 cie->cfa_instructions_end = memory_.cur_offset() + length64; in FillInCieHeader() 100 cie->fde_address_encoding = DW_EH_PE_sdata8; in FillInCieHeader() [all …]
|
D | DwarfCfa.cpp | 77 cur_pc_ += cfa_low * fde_->cie->code_alignment_factor; in GetLocationInfo() 87 static_cast<SignedType>(offset) * fde_->cie->data_alignment_factor; in GetLocationInfo() 294 cur_pc += cfa_low * fde_->cie->code_alignment_factor; in Log() 338 cur_pc_ += operands_[0] * fde_->cie->code_alignment_factor; in cfa_advance_loc() 458 SignedType value = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_offset_extended_sf() 465 SignedType offset = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_def_cfa_sf() 480 SignedType offset = static_cast<SignedType>(operands_[0]) * fde_->cie->data_alignment_factor; in cfa_def_cfa_offset_sf() 488 SignedType offset = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_val_offset() 496 SignedType offset = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_val_offset_sf()
|
/system/core/libunwindstack/include/unwindstack/ |
D | DwarfLocation.h | 44 const DwarfCie* cie; member
|
D | DwarfStructs.h | 47 const DwarfCie* cie = nullptr; member
|
D | DwarfSection.h | 134 bool Eval(const DwarfCie* cie, Memory* regular_memory, const dwarf_loc_regs_t& loc_regs, 142 bool FillInCieHeader(DwarfCie* cie); 144 bool FillInCie(DwarfCie* cie);
|