Lines Matching defs:handler
99 class MockCallFrameInfoHandler: public CallFrameInfo::Handler {
140 enum { kCFARegister = CallFrameInfo::Handler::kCFARegister };
143 // Default expectations for the data handler.
154 EXPECT_CALL(handler, UndefinedRule(_, _)).Times(0);
155 EXPECT_CALL(handler, SameValueRule(_, _)).Times(0);
156 EXPECT_CALL(handler, OffsetRule(_, _, _, _)).Times(0);
157 EXPECT_CALL(handler, ValOffsetRule(_, _, _, _)).Times(0);
158 EXPECT_CALL(handler, RegisterRule(_, _, _)).Times(0);
159 EXPECT_CALL(handler, ExpressionRule(_, _, _)).Times(0);
160 EXPECT_CALL(handler, ValExpressionRule(_, _, _)).Times(0);
161 EXPECT_CALL(handler, PersonalityRoutine(_, _)).Times(0);
162 EXPECT_CALL(handler, LanguageSpecificDataArea(_, _)).Times(0);
163 EXPECT_CALL(handler, SignalHandler()).Times(0);
180 MockCallFrameInfoHandler handler;
187 EXPECT_CALL(handler, Entry(_, _, _, _, _, _)).Times(0);
188 EXPECT_CALL(handler, End()).Times(0);
192 CallFrameInfo parser(data, 0, &byte_reader, &handler, &reporter);
205 EXPECT_CALL(handler, Entry(_, _, _, _, _, _)).Times(0);
206 EXPECT_CALL(handler, End()).Times(0);
217 &byte_reader, &handler, &reporter);
230 EXPECT_CALL(handler, Entry(_, _, _, _, _, _)).Times(0);
231 EXPECT_CALL(handler, End()).Times(0);
242 &byte_reader, &handler, &reporter);
254 EXPECT_CALL(handler, Entry(_, _, _, _, _, _)).Times(0);
255 EXPECT_CALL(handler, End()).Times(0);
266 &byte_reader, &handler, &reporter);
280 EXPECT_CALL(handler, Entry(_, _, _, _, _, _)).Times(0);
281 EXPECT_CALL(handler, End()).Times(0);
292 &byte_reader, &handler, &reporter);
296 // A lone CIE shouldn't cause any handler calls.
305 EXPECT_CALL(handler, Entry(_, _, _, _, _, _)).Times(0);
306 EXPECT_CALL(handler, End()).Times(0);
313 &byte_reader, &handler, &reporter);
332 EXPECT_CALL(handler,
335 EXPECT_CALL(handler, End()).WillOnce(Return(true));
343 &byte_reader, &handler, &reporter);
368 EXPECT_CALL(handler,
371 EXPECT_CALL(handler, End()).WillOnce(Return(true));
375 EXPECT_CALL(handler,
378 EXPECT_CALL(handler, End()).WillOnce(Return(true));
386 &byte_reader, &handler, &reporter);
415 EXPECT_CALL(handler,
419 EXPECT_CALL(handler, End()).WillOnce(Return(true));
423 EXPECT_CALL(handler,
427 EXPECT_CALL(handler, End()).WillOnce(Return(true));
435 &byte_reader, &handler, &reporter);
467 EXPECT_CALL(handler, Entry(_, 0x2094735a, 0x6e875501, 3, "",
470 EXPECT_CALL(handler, End())
479 &byte_reader, &handler, &reporter);
511 EXPECT_CALL(handler, Entry(_, 0x7bf0fda0, 0xcbcd28d8, 3, "",
514 EXPECT_CALL(handler, End())
523 &byte_reader, &handler, &reporter);
547 EXPECT_CALL(handler, Entry(_, 0xb8d347b5, 0x825e55dc, 1, "", 0x9f))
549 EXPECT_CALL(handler, End()).WillOnce(Return(true));
557 &byte_reader, &handler, &reporter);
581 EXPECT_CALL(handler, Entry(_, 0x86763f2b, 0x2a66dc23, 3, "", 0x89))
583 EXPECT_CALL(handler, End()).WillOnce(Return(true));
591 &byte_reader, &handler, &reporter);
614 // - Set appropriate expectations on handler in sequence s for the
647 EXPECT_CALL(handler, Entry(_, fde_start, fde_size, version, "",
651 EXPECT_CALL(handler, ValOffsetRule(fde_start, kCFARegister,
672 &byte_reader, &handler, &reporter);
697 // Use DW_CFA_def_cfa to force a handler call that we can use to
704 EXPECT_CALL(handler,
708 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
718 // Use DW_CFA_def_cfa to force a handler call that we can use to
725 EXPECT_CALL(handler,
730 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
745 EXPECT_CALL(handler,
750 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
765 EXPECT_CALL(handler,
770 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
785 EXPECT_CALL(handler,
790 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
806 EXPECT_CALL(handler,
811 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
825 EXPECT_CALL(handler,
828 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
841 EXPECT_CALL(handler,
845 EXPECT_CALL(handler,
849 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
861 EXPECT_CALL(handler,
864 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
879 EXPECT_CALL(handler,
883 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
895 EXPECT_CALL(handler,
899 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
912 EXPECT_CALL(handler,
916 EXPECT_CALL(handler,
920 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
935 EXPECT_CALL(handler,
938 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
950 EXPECT_CALL(handler, ValExpressionRule(fde_start, kCFARegister,
953 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
965 EXPECT_CALL(handler, UndefinedRule(fde_start, 0x300ce45d))
967 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
979 EXPECT_CALL(handler, SameValueRule(fde_start, 0x3865a760))
981 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
993 EXPECT_CALL(handler,
996 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1008 EXPECT_CALL(handler,
1011 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1026 EXPECT_CALL(handler,
1030 EXPECT_CALL(handler,
1034 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1046 EXPECT_CALL(handler,
1050 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1063 EXPECT_CALL(handler,
1067 EXPECT_CALL(handler,
1071 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1083 EXPECT_CALL(handler, RegisterRule(fde_start, 0x278d18f9, 0x1a684414))
1085 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1098 EXPECT_CALL(handler,
1102 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1115 EXPECT_CALL(handler,
1119 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1154 EXPECT_CALL(handler,
1158 EXPECT_CALL(handler,
1162 EXPECT_CALL(handler,
1166 EXPECT_CALL(handler,
1171 EXPECT_CALL(handler,
1175 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1208 EXPECT_CALL(handler,
1212 EXPECT_CALL(handler,
1216 EXPECT_CALL(handler,
1221 EXPECT_CALL(handler,
1224 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1262 EXPECT_CALL(handler,
1266 EXPECT_CALL(handler,
1270 EXPECT_CALL(handler,
1275 EXPECT_CALL(handler,
1280 EXPECT_CALL(handler,
1284 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1326 EXPECT_CALL(handler, OffsetRule(addr, 2, kCFARegister, 0x9806 * data_factor))
1328 EXPECT_CALL(handler, OffsetRule(addr, 3, kCFARegister, 0x995d * data_factor))
1330 EXPECT_CALL(handler, OffsetRule(addr, 4, kCFARegister, 0x7055 * data_factor))
1336 EXPECT_CALL(handler, OffsetRule(addr, 1, kCFARegister, 0xea1a * data_factor))
1338 EXPECT_CALL(handler, RegisterRule(addr, 2, 0x1d2a3767))
1340 EXPECT_CALL(handler, OffsetRule(addr, 3, kCFARegister, 0xdd29 * data_factor))
1342 EXPECT_CALL(handler, OffsetRule(addr, 5, kCFARegister, 0xf1ce * data_factor))
1349 EXPECT_CALL(handler, SameValueRule(addr, 1))
1351 EXPECT_CALL(handler, OffsetRule(addr, 2, kCFARegister, 0x9806 * data_factor))
1353 EXPECT_CALL(handler, OffsetRule(addr, 3, kCFARegister, 0x995d * data_factor))
1355 EXPECT_CALL(handler, SameValueRule(addr, 5))
1358 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1376 EXPECT_CALL(handler, ValOffsetRule(fde_start + code_factor, kCFARegister,
1379 EXPECT_CALL(handler, ValOffsetRule(fde_start + code_factor * 2, kCFARegister,
1383 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1397 EXPECT_CALL(handler,
1400 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1417 EXPECT_CALL(handler, RegisterRule(fde_start, i, i + 16))
1422 EXPECT_CALL(handler, OffsetRule(fde_start, i, kCFARegister, (i-16) * 4))
1425 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1439 EXPECT_CALL(handler,
1442 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1455 EXPECT_CALL(handler,
1459 EXPECT_CALL(handler, End()).InSequence(s).WillOnce(Return(true));
1491 EXPECT_CALL(handler, Entry(_, 0xa870ebdd, 0x60f6aa4, 2, "", 0xedca5849))
1493 EXPECT_CALL(handler, ValOffsetRule(0xa870ebdd, kCFARegister,
1496 EXPECT_CALL(handler, RegisterRule(0xa870ebdd, 0x3a860351, 0x6c9a6bcf))
1498 EXPECT_CALL(handler, End())
1502 EXPECT_CALL(handler, Entry(_, 0xc534f7c0, 0xf6552e9, 2, "", 0xedca5849))
1506 EXPECT_CALL(handler, Entry(_, 0xf681cfc8, 0x7e4594e, 2, "", 0xedca5849))
1508 EXPECT_CALL(handler, ValOffsetRule(0xf681cfc8, kCFARegister,
1511 EXPECT_CALL(handler, RegisterRule(0xf681cfc8, 0x26c53934, 0x18eeb8a4))
1513 EXPECT_CALL(handler, End())
1529 EXPECT_CALL(handler, RegisterRule(fde_start, 0xe0cf850d, 0x15aab431))
1531 EXPECT_CALL(handler, End())
1549 EXPECT_CALL(handler, UndefinedRule(fde_start, 0x0bac878e))
1551 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1568 EXPECT_CALL(handler, UndefinedRule(fde_start, 0x7dedff5f))
1570 EXPECT_CALL(handler, SameValueRule(fde_start + code_factor, 0x7dedff5f))
1572 EXPECT_CALL(handler, UndefinedRule(fde_start + 2 * code_factor, 0x7dedff5f))
1574 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1589 EXPECT_CALL(handler, SameValueRule(fde_start, 0xadbc9b3a))
1591 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1608 EXPECT_CALL(handler, SameValueRule(fde_start, 0x3d90dcb5))
1610 EXPECT_CALL(handler, UndefinedRule(fde_start + code_factor, 0x3d90dcb5))
1612 EXPECT_CALL(handler, SameValueRule(fde_start + 2 * code_factor, 0x3d90dcb5))
1614 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1629 EXPECT_CALL(handler, OffsetRule(fde_start, 0x14,
1632 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1649 EXPECT_CALL(handler, OffsetRule(fde_start, 0x21,
1652 EXPECT_CALL(handler, UndefinedRule(fde_start + code_factor, 0x21))
1654 EXPECT_CALL(handler, OffsetRule(fde_start + 2 * code_factor, 0x21,
1657 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1674 EXPECT_CALL(handler, OffsetRule(fde_start, 0x21,
1677 EXPECT_CALL(handler, OffsetRule(fde_start + code_factor, 0x21,
1680 EXPECT_CALL(handler, OffsetRule(fde_start + 2 * code_factor, 0x21,
1683 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1698 EXPECT_CALL(handler, ValOffsetRule(fde_start, 0x829caee6,
1701 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1718 EXPECT_CALL(handler, ValOffsetRule(fde_start, 0xf17c36d6,
1721 EXPECT_CALL(handler, UndefinedRule(fde_start + code_factor, 0xf17c36d6))
1723 EXPECT_CALL(handler, ValOffsetRule(fde_start + 2 * code_factor, 0xf17c36d6,
1726 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1743 EXPECT_CALL(handler, ValOffsetRule(fde_start, 0x2cf0ab1b,
1746 EXPECT_CALL(handler, ValOffsetRule(fde_start + code_factor, 0x2cf0ab1b,
1749 EXPECT_CALL(handler, ValOffsetRule(fde_start + 2 * code_factor, 0x2cf0ab1b,
1752 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1767 EXPECT_CALL(handler, RegisterRule(fde_start, 0x77514acc, 0x464de4ce))
1769 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1786 EXPECT_CALL(handler, RegisterRule(fde_start, 0xe39acce5, 0x095f1559))
1788 EXPECT_CALL(handler, UndefinedRule(fde_start + code_factor, 0xe39acce5))
1790 EXPECT_CALL(handler, RegisterRule(fde_start + 2 * code_factor, 0xe39acce5,
1793 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1810 EXPECT_CALL(handler, RegisterRule(fde_start, 0xd40e21b1, 0x16607d6a))
1812 EXPECT_CALL(handler, RegisterRule(fde_start + code_factor, 0xd40e21b1,
1815 EXPECT_CALL(handler, RegisterRule(fde_start + 2 * code_factor, 0xd40e21b1,
1818 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1833 EXPECT_CALL(handler, ExpressionRule(fde_start, 0x666ae152, "dwarf"))
1835 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1852 EXPECT_CALL(handler, ExpressionRule(fde_start, 0xb5ca5c46, "elf"))
1854 EXPECT_CALL(handler, UndefinedRule(fde_start + code_factor, 0xb5ca5c46))
1856 EXPECT_CALL(handler, ExpressionRule(fde_start + 2 * code_factor, 0xb5ca5c46,
1859 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1876 EXPECT_CALL(handler, ExpressionRule(fde_start, 0x500f5739, "smurf"))
1878 EXPECT_CALL(handler, ExpressionRule(fde_start + code_factor, 0x500f5739,
1882 EXPECT_CALL(handler, ExpressionRule(fde_start + 2 * code_factor, 0x500f5739,
1885 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1901 EXPECT_CALL(handler, ValExpressionRule(fde_start, 0x666ae152, "hideous"))
1903 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1923 EXPECT_CALL(handler, ValExpressionRule(fde_start, 0xb5ca5c46, "revolting"))
1925 EXPECT_CALL(handler, UndefinedRule(fde_start + code_factor, 0xb5ca5c46))
1927 EXPECT_CALL(handler, ValExpressionRule(fde_start + 2 * code_factor, 0xb5ca5c46,
1930 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1952 EXPECT_CALL(handler, ValExpressionRule(fde_start, 0x500f5739, "repulsive"))
1954 EXPECT_CALL(handler, ValExpressionRule(fde_start + code_factor, 0x500f5739,
1958 EXPECT_CALL(handler, ValExpressionRule(fde_start + 2 * code_factor, 0x500f5739,
1961 EXPECT_CALL(handler, End()).WillOnce(Return(true));
1996 &byte_reader, &handler, &reporter, true);
2026 EXPECT_CALL(handler, Entry(_, 0x848037a1, 0x7b30475e, 1, "", 67))
2028 EXPECT_CALL(handler, ValOffsetRule(0x848037a1, kCFARegister, 3772, 1372))
2030 EXPECT_CALL(handler, UndefinedRule(0x17713850, 5721))
2032 EXPECT_CALL(handler, End())
2074 EXPECT_CALL(handler, Entry(_, 0x540f6b56, 0xf686, 1, "zSLPR", 100))
2076 EXPECT_CALL(handler, PersonalityRoutine(0x97baa00, false))
2078 EXPECT_CALL(handler, LanguageSpecificDataArea(0xe3eab475, true))
2080 EXPECT_CALL(handler, SignalHandler())
2082 EXPECT_CALL(handler, ValOffsetRule(0x540f6b56, kCFARegister, 6706, 31))
2084 EXPECT_CALL(handler, UndefinedRule(0x540fa4ce, 0x675e))
2086 EXPECT_CALL(handler, End())
2109 EXPECT_CALL(handler, Entry(_, 0xda007738, 0xfb55c641, 1, "z", 228))
2111 EXPECT_CALL(handler, ValOffsetRule(0xda007738, kCFARegister, 3629, 247))
2113 EXPECT_CALL(handler, UndefinedRule(0xda007738 + 11 * 5955, 3769))
2115 EXPECT_CALL(handler, End())
2164 EXPECT_CALL(handler, Entry(_, 0xd40091aa, 0x9aa6e746, 1, "zL", 54))
2166 EXPECT_CALL(handler, LanguageSpecificDataArea(0xd40099cd, false))
2168 EXPECT_CALL(handler, End())
2193 EXPECT_CALL(handler, Entry(_, 0x0c8350c9, 0xbef11087, 1, "zP", 17))
2195 EXPECT_CALL(handler, PersonalityRoutine(0xe3eaccac, false))
2197 EXPECT_CALL(handler, End())
2222 EXPECT_CALL(handler, Entry(_, 0x540f9431, 0xbd0, 1, "zR", 75))
2224 EXPECT_CALL(handler, End())
2244 EXPECT_CALL(handler, Entry(_, 0xd40091aa, 0x9aa6e746, 1, "zS", 57))
2246 EXPECT_CALL(handler, SignalHandler())
2248 EXPECT_CALL(handler, End())