Home
last modified time | relevance | path

Searched refs:fdes (Results 1 – 7 of 7) sorted by relevance

/system/unwinding/libunwindstack/tests/
DDwarfDebugFrameTest.cpp135 std::vector<const DwarfFde*> fdes; in TYPED_TEST_P() local
136 this->debug_frame_->GetFdes(&fdes); in TYPED_TEST_P()
138 ASSERT_EQ(4U, fdes.size()); in TYPED_TEST_P()
140 EXPECT_EQ(0x5000U, fdes[0]->cie_offset); in TYPED_TEST_P()
141 EXPECT_EQ(0x5110U, fdes[0]->cfa_instructions_offset); in TYPED_TEST_P()
142 EXPECT_EQ(0x5200U, fdes[0]->cfa_instructions_end); in TYPED_TEST_P()
143 EXPECT_EQ(0x1500U, fdes[0]->pc_start); in TYPED_TEST_P()
144 EXPECT_EQ(0x1700U, fdes[0]->pc_end); in TYPED_TEST_P()
145 EXPECT_EQ(0U, fdes[0]->lsda_address); in TYPED_TEST_P()
146 EXPECT_TRUE(fdes[0]->cie != nullptr); in TYPED_TEST_P()
[all …]
DDwarfEhFrameWithHdrTest.cpp294 std::vector<const DwarfFde*> fdes; in TYPED_TEST_P() local
295 this->eh_frame_->GetFdes(&fdes); in TYPED_TEST_P()
296 ASSERT_FALSE(fdes.empty()); in TYPED_TEST_P()
297 ASSERT_EQ(1U, fdes.size()); in TYPED_TEST_P()
298 EXPECT_EQ(0x4500U, fdes[0]->pc_start); in TYPED_TEST_P()
299 EXPECT_EQ(0x4700U, fdes[0]->pc_end); in TYPED_TEST_P()
350 std::vector<const DwarfFde*> fdes; in TYPED_TEST_P() local
351 this->eh_frame_->GetFdes(&fdes); in TYPED_TEST_P()
352 ASSERT_EQ(4U, fdes.size()); in TYPED_TEST_P()
354 EXPECT_EQ(0x4600U, fdes[0]->pc_start); in TYPED_TEST_P()
[all …]
DElfInterfaceTest.cpp2109 std::vector<const DwarfFde*> fdes; in TEST_F() local
2110 section->GetFdes(&fdes); in TEST_F()
2111 EXPECT_EQ(0x9309cU, fdes[0]->cie_offset); in TEST_F()
2112 EXPECT_EQ(0x930c0U, fdes[0]->cfa_instructions_offset); in TEST_F()
2113 EXPECT_EQ(0x930c0U, fdes[0]->cfa_instructions_end); in TEST_F()
2114 EXPECT_EQ(0U, fdes[0]->pc_start); in TEST_F()
2115 EXPECT_EQ(2U, fdes[0]->pc_end); in TEST_F()
2116 EXPECT_EQ(0U, fdes[0]->lsda_address); in TEST_F()
2117 EXPECT_EQ(2320U, fdes.size()); in TEST_F()
/system/unwinding/libunwindstack/
DDwarfSection.cpp734 void DwarfSectionImpl<AddressType>::GetFdes(std::vector<const DwarfFde*>* fdes) { in GetFdes() argument
739 fdes->push_back(GetFdeFromOffset(it.second)); in GetFdes()
772 std::vector<FdeInfo> fdes; in BuildFdeIndex() local
780 fdes.push_back({fde->pc_start, fde->pc_end, initial_offset}); in BuildFdeIndex()
786 std::sort(fdes.begin(), fdes.end(), [](const FdeInfo& a, const FdeInfo& b) { in BuildFdeIndex()
794 if (!fdes.empty()) { in BuildFdeIndex()
795 FdeInfo filling = fdes.back(); // Entry with the minimal pc_start seen so far. in BuildFdeIndex()
796 for (ssize_t i = fdes.size() - 1; i >= 0; i--) { // Iterate backwards. in BuildFdeIndex()
797 uint64_t prev_pc_end = (i > 0) ? fdes[i - 1].pc_end : 0; in BuildFdeIndex()
799 if (prev_pc_end < fdes[i].pc_start && filling.pc_start < fdes[i].pc_start) { in BuildFdeIndex()
[all …]
DDwarfEhFrameWithHdr.cpp202 void DwarfEhFrameWithHdr<AddressType>::GetFdes(std::vector<const DwarfFde*>* fdes) { in GetFdes() argument
222 fdes->push_back(fde); in GetFdes()
DDwarfEhFrameWithHdr.h71 void GetFdes(std::vector<const DwarfFde*>* fdes) override;
/system/unwinding/libunwindstack/include/unwindstack/
DDwarfSection.h107 virtual void GetFdes(std::vector<const DwarfFde*>* fdes) = 0;
149 void GetFdes(std::vector<const DwarfFde*>* fdes) override;
178 static void InsertFde(uint64_t fde_offset, const DwarfFde* fde, /*out*/ DwarfFdeMap& fdes);