Home
last modified time | relevance | path

Searched refs:cie (Results 1 – 13 of 13) sorted by relevance

/system/core/libunwindstack/tests/
DDwarfEhFrameTest.cpp74 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 …]
DDwarfDebugFrameTest.cpp137 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 …]
DDwarfSectionImplTest.cpp99 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local
109 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, &regs, &finished)); in TYPED_TEST_P()
115 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local
126 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, &regs, &finished)); in TYPED_TEST_P()
131 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local
144 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, &regs, &finished)); in TYPED_TEST_P()
149 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local
160 ASSERT_TRUE(this->section_->Eval(&cie, &this->memory_, loc_regs, &regs, &finished)); in TYPED_TEST_P()
167 DwarfCie cie{.version = 3, .return_address_register = 5}; in TYPED_TEST_P() local
178 ASSERT_FALSE(this->section_->Eval(&cie, &this->memory_, loc_regs, &regs, &finished)); in TYPED_TEST_P()
[all …]
DDwarfSectionTest.cpp77 fde.cie = nullptr; in TEST_F()
86 DwarfCie cie{}; in TEST_F() local
89 fde.cie = &cie; in TEST_F()
100 DwarfCie cie{}; in TEST_F() local
103 fde.cie = &cie; in TEST_F()
110 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, &regs_, ::testing::_)) in TEST_F()
125 DwarfCie cie{}; in TEST_F() local
129 fde.cie = &cie; in TEST_F()
136 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, &regs_, ::testing::_)) in TEST_F()
146 DwarfCie cie{}; in TEST_F() local
[all …]
DDwarfEhFrameWithHdrTest.cpp480 ASSERT_TRUE(fde->cie != nullptr); in TYPED_TEST_P()
481 EXPECT_EQ(1U, fde->cie->version); in TYPED_TEST_P()
482 EXPECT_EQ(DW_EH_PE_sdata4, fde->cie->fde_address_encoding); in TYPED_TEST_P()
483 EXPECT_EQ(DW_EH_PE_omit, fde->cie->lsda_encoding); in TYPED_TEST_P()
484 EXPECT_EQ(0U, fde->cie->segment_size); in TYPED_TEST_P()
485 EXPECT_EQ(1U, fde->cie->augmentation_string.size()); in TYPED_TEST_P()
486 EXPECT_EQ('\0', fde->cie->augmentation_string[0]); in TYPED_TEST_P()
487 EXPECT_EQ(0U, fde->cie->personality_handler); in TYPED_TEST_P()
488 EXPECT_EQ(0xf00dU, fde->cie->cfa_instructions_offset); in TYPED_TEST_P()
489 EXPECT_EQ(0xf104U, fde->cie->cfa_instructions_end); in TYPED_TEST_P()
[all …]
DVerifyBionicTerminationTest.cpp54 if (fde == nullptr || fde->cie == nullptr) { in GetReturnAddressLocation()
62 auto reg_entry = regs.find(fde->cie->return_address_register); in GetReturnAddressLocation()
DDwarfCfaLogTest.cpp60 fde_.cie = &cie_; in SetUp()
DDwarfCfaTest.cpp58 fde_.cie = &cie_; in SetUp()
/system/core/libunwindstack/
DDwarfSection.cpp46 if (fde == nullptr || fde->cie == nullptr) { in Step()
56 loc_regs.cie = fde->cie; in Step()
63 return Eval(it->second.cie, process_memory, it->second, regs, finished); in Step()
72 DwarfCie* cie = &cie_entries_[offset]; in GetCieFromOffset() local
75 if (!FillInCieHeader(cie) || !FillInCie(cie)) { in GetCieFromOffset()
80 return cie; in GetCieFromOffset()
84 bool DwarfSectionImpl<AddressType>::FillInCieHeader(DwarfCie* cie) { in FillInCieHeader() argument
85 cie->lsda_encoding = DW_EH_PE_omit; in FillInCieHeader()
101 cie->cfa_instructions_end = memory_.cur_offset() + length64; in FillInCieHeader()
102 cie->fde_address_encoding = DW_EH_PE_sdata8; in FillInCieHeader()
[all …]
DDwarfCfa.cpp79 cur_pc_ += cfa_low * fde_->cie->code_alignment_factor; in GetLocationInfo()
89 static_cast<SignedType>(offset) * fde_->cie->data_alignment_factor; in GetLocationInfo()
300 cur_pc += cfa_low * fde_->cie->code_alignment_factor; in Log()
344 cur_pc_ += operands_[0] * fde_->cie->code_alignment_factor; in cfa_advance_loc()
464 SignedType value = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_offset_extended_sf()
471 SignedType offset = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_def_cfa_sf()
486 SignedType offset = static_cast<SignedType>(operands_[0]) * fde_->cie->data_alignment_factor; in cfa_def_cfa_offset_sf()
494 SignedType offset = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_val_offset()
502 SignedType offset = static_cast<SignedType>(operands_[1]) * fde_->cie->data_alignment_factor; in cfa_val_offset_sf()
/system/core/libunwindstack/include/unwindstack/
DDwarfSection.h142 bool Eval(const DwarfCie* cie, Memory* regular_memory, const dwarf_loc_regs_t& loc_regs,
153 bool FillInCieHeader(DwarfCie* cie);
155 bool FillInCie(DwarfCie* cie);
DDwarfLocation.h45 const DwarfCie* cie; member
DDwarfStructs.h47 const DwarfCie* cie = nullptr; member