Lines Matching refs:section

89                           const CFISection &section);
90 #define PERHAPS_WRITE_DEBUG_FRAME_FILE(name, section) \ argument
91 WriteELFFrameSection("cfitest-" name, ".debug_frame", section);
92 #define PERHAPS_WRITE_EH_FRAME_FILE(name, section) \ argument
93 WriteELFFrameSection("cfitest-" name, ".eh_frame", section);
95 #define PERHAPS_WRITE_DEBUG_FRAME_FILE(name, section) argument
96 #define PERHAPS_WRITE_EH_FRAME_FILE(name, section) argument
197 CFISection section(kBigEndian, 8); in TEST_F() local
198 section in TEST_F()
212 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
222 CFISection section(kLittleEndian, 4); in TEST_F() local
223 section in TEST_F()
237 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
247 CFISection section(kBigEndian, 8); in TEST_F() local
248 section in TEST_F()
261 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
271 CFISection section(kBigEndian, 8); in TEST_F() local
272 section in TEST_F()
276 section in TEST_F()
287 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
298 CFISection section(kLittleEndian, 4); in TEST_F() local
299 section.CIEHeader(0xffe799a8, 0x3398dcdd, 0x6e9683de, 3, ""); in TEST_F()
300 section.Append(10, dwarf2reader::DW_CFA_nop); in TEST_F()
301 section.FinishEntry(); in TEST_F()
303 PERHAPS_WRITE_DEBUG_FRAME_FILE("SingleCIE", section); in TEST_F()
309 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
319 CFISection section(kBigEndian, 4); in TEST_F() local
321 section in TEST_F()
328 PERHAPS_WRITE_DEBUG_FRAME_FILE("OneFDE", section); in TEST_F()
339 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
349 CFISection section(kBigEndian, 4); in TEST_F() local
351 section in TEST_F()
364 PERHAPS_WRITE_DEBUG_FRAME_FILE("TwoFDEsOneCIE", section); in TEST_F()
382 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
392 CFISection section(kLittleEndian, 8); in TEST_F() local
394 section in TEST_F()
411 PERHAPS_WRITE_DEBUG_FRAME_FILE("TwoFDEsTwoCIEs", section); in TEST_F()
431 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
441 CFISection section(kBigEndian, 4); in TEST_F() local
443 section in TEST_F()
458 PERHAPS_WRITE_DEBUG_FRAME_FILE("BadVersion", section); in TEST_F()
475 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
485 CFISection section(kBigEndian, 4); in TEST_F() local
487 section in TEST_F()
502 PERHAPS_WRITE_DEBUG_FRAME_FILE("BadAugmentation", section); in TEST_F()
519 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
530 CFISection section(kBigEndian, 4); in TEST_F() local
532 section in TEST_F()
543 PERHAPS_WRITE_DEBUG_FRAME_FILE("CIEVersion1ReturnColumn", section); in TEST_F()
553 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
564 CFISection section(kBigEndian, 4); in TEST_F() local
566 section in TEST_F()
577 PERHAPS_WRITE_DEBUG_FRAME_FILE("CIEVersion3ReturnColumn", section); in TEST_F()
587 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
619 void StockCIEAndFDE(CFISection *section) { in StockCIEAndFDE()
621 if (section->AddressSize() == 4) { in StockCIEAndFDE()
626 assert(section->AddressSize() == 8); in StockCIEAndFDE()
633 (*section) in StockCIEAndFDE()
643 section->FDEHeader(cie_label, fde_start, fde_size); in StockCIEAndFDE()
659 void ParseSection(CFISection *section, bool succeeds = true) { in ParseSection()
661 EXPECT_TRUE(section->GetContents(&contents)); in ParseSection()
663 if (section->endianness() == kBigEndian) in ParseSection()
666 assert(section->endianness() == kLittleEndian); in ParseSection()
670 byte_reader.SetAddressSize(section->AddressSize()); in ParseSection()
693 CFISection section(kBigEndian, 4); in TEST_F() local
694 StockCIEAndFDE(&section); in TEST_F()
695 section in TEST_F()
702 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_set_loc", section); in TEST_F()
710 ParseSection(&section); in TEST_F()
714 CFISection section(kBigEndian, 8); in TEST_F() local
715 StockCIEAndFDE(&section); in TEST_F()
716 section in TEST_F()
723 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_advance_loc", section); in TEST_F()
732 ParseSection(&section); in TEST_F()
736 CFISection section(kLittleEndian, 8); in TEST_F() local
737 StockCIEAndFDE(&section); in TEST_F()
738 section in TEST_F()
743 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_advance_loc1", section); in TEST_F()
752 ParseSection(&section); in TEST_F()
756 CFISection section(kLittleEndian, 4); in TEST_F() local
757 StockCIEAndFDE(&section); in TEST_F()
758 section in TEST_F()
763 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_advance_loc2", section); in TEST_F()
772 ParseSection(&section); in TEST_F()
776 CFISection section(kBigEndian, 8); in TEST_F() local
777 StockCIEAndFDE(&section); in TEST_F()
778 section in TEST_F()
783 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_advance_loc4", section); in TEST_F()
792 ParseSection(&section); in TEST_F()
797 CFISection section(kBigEndian, 8); in TEST_F() local
798 StockCIEAndFDE(&section); in TEST_F()
799 section in TEST_F()
804 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_advance_loc8", section); in TEST_F()
813 ParseSection(&section); in TEST_F()
817 CFISection section(kLittleEndian, 4); in TEST_F() local
818 StockCIEAndFDE(&section); in TEST_F()
819 section in TEST_F()
823 PERHAPS_WRITE_DEBUG_FRAME_FILE("DW_CFA_def_cfa", section); in TEST_F()
830 ParseSection(&section); in TEST_F()
834 CFISection section(kBigEndian, 4); in TEST_F() local
835 StockCIEAndFDE(&section); in TEST_F()
836 section in TEST_F()
851 ParseSection(&section); in TEST_F()
855 CFISection section(kLittleEndian, 8); in TEST_F() local
856 StockCIEAndFDE(&section); in TEST_F()
857 section in TEST_F()
866 ParseSection(&section); in TEST_F()
872 CFISection section(kBigEndian, 4); in TEST_F() local
873 StockCIEAndFDE(&section); in TEST_F()
874 section in TEST_F()
885 ParseSection(&section); in TEST_F()
889 CFISection section(kBigEndian, 4); in TEST_F() local
890 StockCIEAndFDE(&section); in TEST_F()
891 section in TEST_F()
901 ParseSection(&section); in TEST_F()
905 CFISection section(kLittleEndian, 4); in TEST_F() local
906 StockCIEAndFDE(&section); in TEST_F()
907 section in TEST_F()
922 ParseSection(&section); in TEST_F()
928 CFISection section(kBigEndian, 4); in TEST_F() local
929 StockCIEAndFDE(&section); in TEST_F()
930 section in TEST_F()
940 ParseSection(&section); in TEST_F()
944 CFISection section(kLittleEndian, 8); in TEST_F() local
945 StockCIEAndFDE(&section); in TEST_F()
946 section in TEST_F()
955 ParseSection(&section); in TEST_F()
959 CFISection section(kLittleEndian, 4); in TEST_F() local
960 StockCIEAndFDE(&section); in TEST_F()
961 section in TEST_F()
969 ParseSection(&section); in TEST_F()
973 CFISection section(kLittleEndian, 4); in TEST_F() local
974 StockCIEAndFDE(&section); in TEST_F()
975 section in TEST_F()
983 ParseSection(&section); in TEST_F()
987 CFISection section(kBigEndian, 4); in TEST_F() local
988 StockCIEAndFDE(&section); in TEST_F()
989 section in TEST_F()
998 ParseSection(&section); in TEST_F()
1002 CFISection section(kBigEndian, 4); in TEST_F() local
1003 StockCIEAndFDE(&section); in TEST_F()
1004 section in TEST_F()
1013 ParseSection(&section); in TEST_F()
1017 CFISection section(kBigEndian, 8); in TEST_F() local
1018 StockCIEAndFDE(&section); in TEST_F()
1019 section in TEST_F()
1036 ParseSection(&section); in TEST_F()
1040 CFISection section(kBigEndian, 4); in TEST_F() local
1041 StockCIEAndFDE(&section); in TEST_F()
1042 section in TEST_F()
1052 ParseSection(&section); in TEST_F()
1056 CFISection section(kBigEndian, 4); in TEST_F() local
1057 StockCIEAndFDE(&section); in TEST_F()
1058 section in TEST_F()
1073 ParseSection(&section); in TEST_F()
1077 CFISection section(kLittleEndian, 8); in TEST_F() local
1078 StockCIEAndFDE(&section); in TEST_F()
1079 section in TEST_F()
1087 ParseSection(&section); in TEST_F()
1091 CFISection section(kBigEndian, 8); in TEST_F() local
1092 StockCIEAndFDE(&section); in TEST_F()
1093 section in TEST_F()
1104 ParseSection(&section); in TEST_F()
1108 CFISection section(kBigEndian, 4); in TEST_F() local
1109 StockCIEAndFDE(&section); in TEST_F()
1110 section in TEST_F()
1121 ParseSection(&section); in TEST_F()
1125 CFISection section(kLittleEndian, 8); in TEST_F() local
1133 section in TEST_F()
1178 ParseSection(&section); in TEST_F()
1182 CFISection section(kBigEndian, 4); in TEST_F() local
1190 section in TEST_F()
1227 ParseSection(&section); in TEST_F()
1231 CFISection section(kBigEndian, 4); in TEST_F() local
1239 section in TEST_F()
1287 ParseSection(&section); in TEST_F()
1291 CFISection section(kLittleEndian, 8); in TEST_F() local
1292 StockCIEAndFDE(&section); in TEST_F()
1304 section in TEST_F()
1360 ParseSection(&section); in TEST_F()
1365 CFISection section(kBigEndian, 4); in TEST_F() local
1366 StockCIEAndFDE(&section); in TEST_F()
1368 section in TEST_F()
1385 ParseSection(&section); in TEST_F()
1389 CFISection section(kLittleEndian, 4); in TEST_F() local
1390 StockCIEAndFDE(&section); in TEST_F()
1391 section in TEST_F()
1402 ParseSection(&section); in TEST_F()
1406 CFISection section(kBigEndian, 4); in TEST_F() local
1407 StockCIEAndFDE(&section); in TEST_F()
1408 section in TEST_F()
1427 ParseSection(&section); in TEST_F()
1431 CFISection section(kLittleEndian, 8); in TEST_F() local
1432 StockCIEAndFDE(&section); in TEST_F()
1433 section in TEST_F()
1444 ParseSection(&section); in TEST_F()
1448 CFISection section(kLittleEndian, 4); in TEST_F() local
1449 StockCIEAndFDE(&section); in TEST_F()
1450 section in TEST_F()
1461 ParseSection(&section); in TEST_F()
1466 CFISection section(kBigEndian, 4); in TEST_F() local
1468 section in TEST_F()
1517 ParseSection(&section); in TEST_F()
1522 CFISection section(kLittleEndian, 8); in TEST_F() local
1523 StockCIEAndFDE(&section); in TEST_F()
1524 section in TEST_F()
1534 ParseSection(&section, false); in TEST_F()
1540 CFISection section(kLittleEndian, 4); in TEST_F() local
1541 StockCIEAndFDE(&section); in TEST_F()
1542 section in TEST_F()
1553 ParseSection(&section); in TEST_F()
1557 CFISection section(kLittleEndian, 4); in TEST_F() local
1558 StockCIEAndFDE(&section); in TEST_F()
1559 section in TEST_F()
1576 ParseSection(&section); in TEST_F()
1580 CFISection section(kLittleEndian, 4); in TEST_F() local
1581 StockCIEAndFDE(&section); in TEST_F()
1582 section in TEST_F()
1593 ParseSection(&section); in TEST_F()
1597 CFISection section(kLittleEndian, 4); in TEST_F() local
1598 StockCIEAndFDE(&section); in TEST_F()
1599 section in TEST_F()
1616 ParseSection(&section); in TEST_F()
1620 CFISection section(kLittleEndian, 4); in TEST_F() local
1621 StockCIEAndFDE(&section); in TEST_F()
1622 section in TEST_F()
1634 ParseSection(&section); in TEST_F()
1638 CFISection section(kLittleEndian, 4); in TEST_F() local
1639 StockCIEAndFDE(&section); in TEST_F()
1640 section in TEST_F()
1659 ParseSection(&section); in TEST_F()
1663 CFISection section(kLittleEndian, 4); in TEST_F() local
1664 StockCIEAndFDE(&section); in TEST_F()
1665 section in TEST_F()
1685 ParseSection(&section); in TEST_F()
1689 CFISection section(kLittleEndian, 4); in TEST_F() local
1690 StockCIEAndFDE(&section); in TEST_F()
1691 section in TEST_F()
1703 ParseSection(&section); in TEST_F()
1707 CFISection section(kLittleEndian, 4); in TEST_F() local
1708 StockCIEAndFDE(&section); in TEST_F()
1709 section in TEST_F()
1728 ParseSection(&section); in TEST_F()
1732 CFISection section(kLittleEndian, 4); in TEST_F() local
1733 StockCIEAndFDE(&section); in TEST_F()
1734 section in TEST_F()
1754 ParseSection(&section); in TEST_F()
1758 CFISection section(kLittleEndian, 4); in TEST_F() local
1759 StockCIEAndFDE(&section); in TEST_F()
1760 section in TEST_F()
1771 ParseSection(&section); in TEST_F()
1775 CFISection section(kLittleEndian, 4); in TEST_F() local
1776 StockCIEAndFDE(&section); in TEST_F()
1777 section in TEST_F()
1795 ParseSection(&section); in TEST_F()
1799 CFISection section(kLittleEndian, 4); in TEST_F() local
1800 StockCIEAndFDE(&section); in TEST_F()
1801 section in TEST_F()
1820 ParseSection(&section); in TEST_F()
1824 CFISection section(kLittleEndian, 4); in TEST_F() local
1825 StockCIEAndFDE(&section); in TEST_F()
1826 section in TEST_F()
1837 ParseSection(&section); in TEST_F()
1841 CFISection section(kLittleEndian, 4); in TEST_F() local
1842 StockCIEAndFDE(&section); in TEST_F()
1843 section in TEST_F()
1861 ParseSection(&section); in TEST_F()
1865 CFISection section(kLittleEndian, 4); in TEST_F() local
1866 StockCIEAndFDE(&section); in TEST_F()
1867 section in TEST_F()
1887 ParseSection(&section); in TEST_F()
1891 CFISection section(kLittleEndian, 4); in TEST_F() local
1892 StockCIEAndFDE(&section); in TEST_F()
1893 section in TEST_F()
1905 ParseSection(&section); in TEST_F()
1909 CFISection section(kLittleEndian, 4); in TEST_F() local
1910 StockCIEAndFDE(&section); in TEST_F()
1911 section in TEST_F()
1921 PERHAPS_WRITE_DEBUG_FRAME_FILE("RestoreValExpressionRuleChanged", section); in TEST_F()
1932 ParseSection(&section); in TEST_F()
1936 CFISection section(kLittleEndian, 4); in TEST_F() local
1937 StockCIEAndFDE(&section); in TEST_F()
1938 section in TEST_F()
1950 section); in TEST_F()
1963 ParseSection(&section); in TEST_F()
1968 : CFIInsnFixture(), section(kBigEndian, 4, true) { in EHFrameFixture()
1972 section.SetEncodedPointerBases(encoded_pointer_bases); in EHFrameFixture()
1974 CFISection section; member
1979 void ParseEHFrameSection(CFISection *section, bool succeeds = true) { in ParseEHFrameSection()
1980 EXPECT_TRUE(section->ContainsEHFrame()); in ParseEHFrameSection()
1982 EXPECT_TRUE(section->GetContents(&contents)); in ParseEHFrameSection()
1984 if (section->endianness() == kBigEndian) in ParseEHFrameSection()
1987 assert(section->endianness() == kLittleEndian); in ParseEHFrameSection()
1991 byte_reader.SetAddressSize(section->AddressSize()); in ParseEHFrameSection()
2010 section in TEST_F()
2024 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.Terminator", section); in TEST_F()
2037 ParseEHFrameSection(&section); in TEST_F()
2050 section.SetPointerEncoding(fde_encoding); in TEST_F()
2051 section.SetEncodedPointerBases(encoded_pointer_bases); in TEST_F()
2053 section in TEST_F()
2072 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.SimpleFDE", section); in TEST_F()
2089 ParseEHFrameSection(&section); in TEST_F()
2095 section in TEST_F()
2107 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.EmptyZ", section); in TEST_F()
2118 ParseEHFrameSection(&section); in TEST_F()
2124 section in TEST_F()
2136 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.BadZ", section); in TEST_F()
2141 ParseEHFrameSection(&section, false); in TEST_F()
2149 section in TEST_F()
2162 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.zL", section); in TEST_F()
2171 ParseEHFrameSection(&section); in TEST_F()
2179 section in TEST_F()
2191 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.zP", section); in TEST_F()
2200 ParseEHFrameSection(&section); in TEST_F()
2208 section.SetPointerEncoding(pointer_encoding); in TEST_F()
2209 section in TEST_F()
2220 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.zR", section); in TEST_F()
2227 ParseEHFrameSection(&section); in TEST_F()
2232 section in TEST_F()
2242 PERHAPS_WRITE_EH_FRAME_FILE("EHFrame.zS", section); in TEST_F()
2251 ParseEHFrameSection(&section); in TEST_F()