1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146
|
# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.2.1
#
# Do not make changes to this file unless you know what you are doing - modify
# the SWIG interface file instead.
"""
The lldb module contains the public APIs for Python binding.
Some of the important classes are described here:
* :py:class:`SBTarget`: Represents the target program running under the debugger.
* :py:class:`SBProcess`: Represents the process associated with the target program.
* :py:class:`SBThread`: Represents a thread of execution. :py:class:`SBProcess` contains SBThreads.
* :py:class:`SBFrame`: Represents one of the stack frames associated with a thread. :py:class:`SBThread`
contains SBFrame(s).
* :py:class:`SBSymbolContext`: A container that stores various debugger related info.
* :py:class:`SBValue`: Represents the value of a variable, a register, or an expression.
* :py:class:`SBModule`: Represents an executable image and its associated object and symbol
files. :py:class:`SBTarget` contains SBModule.
* :py:class:`SBBreakpoint`: Represents a logical breakpoint and its associated settings.
:py:class:`SBTarget` contains SBBreakpoints.
* :py:class:`SBSymbol`: Represents the symbol possibly associated with a stack frame.
* :py:class:`SBCompileUnit`: Represents a compilation unit, or compiled source file.
* :py:class:`SBFunction`: Represents a generic function, which can be inlined or not.
* :py:class:`SBBlock`: Represents a lexical block. :py:class:`SBFunction` contains SBBlocks.
* :py:class:`SBLineEntry`: Specifies an association with a contiguous range of instructions
and a source file location. :py:class:`SBCompileUnit` contains SBLineEntry.
The different enums in the `lldb` module are described in :doc:`python_api_enums`.
"""
from sys import version_info as _swig_python_version_info
try:
# Try an absolute import first. If we're being loaded from lldb,
# _lldb should be a built-in module.
import _lldb
except ImportError:
# Relative import should work if we are being loaded by Python.
from . import _lldb
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "this":
set(self, name, value)
elif name == "thisown":
self.this.own(value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr
def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr
def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper
class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
import uuid
import re
import os
#SWIG_VERSION is written as a single hex number, but the components of it are
#meant to be interpreted in decimal. So, 0x030012 is swig 3.0.12, and not
#3.0.18.
def _to_int(hex):
return hex // 0x10 % 0x10 * 10 + hex % 0x10
swig_version = (_to_int(0x040201 // 0x10000), _to_int(0x040201 // 0x100), _to_int(0x040201))
del _to_int
# ===================================
# Iterator for lldb container objects
# ===================================
def lldb_iter(obj, getsize, getelem):
"""A generator adaptor to support iteration for lldb container objects."""
size = getattr(obj, getsize)
elem = getattr(obj, getelem)
for i in range(size()):
yield elem(i)
INT32_MAX = _lldb.INT32_MAX
UINT32_MAX = _lldb.UINT32_MAX
UINT64_MAX = _lldb.UINT64_MAX
LLDB_GENERIC_ERROR = _lldb.LLDB_GENERIC_ERROR
LLDB_INVALID_BREAK_ID = _lldb.LLDB_INVALID_BREAK_ID
LLDB_DEFAULT_BREAK_SIZE = _lldb.LLDB_DEFAULT_BREAK_SIZE
LLDB_INVALID_WATCH_ID = _lldb.LLDB_INVALID_WATCH_ID
LLDB_WATCH_TYPE_READ = _lldb.LLDB_WATCH_TYPE_READ
LLDB_WATCH_TYPE_WRITE = _lldb.LLDB_WATCH_TYPE_WRITE
LLDB_WATCH_TYPE_MODIFY = _lldb.LLDB_WATCH_TYPE_MODIFY
LLDB_INVALID_SITE_ID = _lldb.LLDB_INVALID_SITE_ID
LLDB_REGNUM_GENERIC_PC = _lldb.LLDB_REGNUM_GENERIC_PC
LLDB_REGNUM_GENERIC_SP = _lldb.LLDB_REGNUM_GENERIC_SP
LLDB_REGNUM_GENERIC_FP = _lldb.LLDB_REGNUM_GENERIC_FP
LLDB_REGNUM_GENERIC_RA = _lldb.LLDB_REGNUM_GENERIC_RA
LLDB_REGNUM_GENERIC_FLAGS = _lldb.LLDB_REGNUM_GENERIC_FLAGS
LLDB_REGNUM_GENERIC_ARG1 = _lldb.LLDB_REGNUM_GENERIC_ARG1
LLDB_REGNUM_GENERIC_ARG2 = _lldb.LLDB_REGNUM_GENERIC_ARG2
LLDB_REGNUM_GENERIC_ARG3 = _lldb.LLDB_REGNUM_GENERIC_ARG3
LLDB_REGNUM_GENERIC_ARG4 = _lldb.LLDB_REGNUM_GENERIC_ARG4
LLDB_REGNUM_GENERIC_ARG5 = _lldb.LLDB_REGNUM_GENERIC_ARG5
LLDB_REGNUM_GENERIC_ARG6 = _lldb.LLDB_REGNUM_GENERIC_ARG6
LLDB_REGNUM_GENERIC_ARG7 = _lldb.LLDB_REGNUM_GENERIC_ARG7
LLDB_REGNUM_GENERIC_ARG8 = _lldb.LLDB_REGNUM_GENERIC_ARG8
LLDB_INVALID_STOP_ID = _lldb.LLDB_INVALID_STOP_ID
LLDB_INVALID_ADDRESS = _lldb.LLDB_INVALID_ADDRESS
LLDB_INVALID_INDEX32 = _lldb.LLDB_INVALID_INDEX32
LLDB_INVALID_IVAR_OFFSET = _lldb.LLDB_INVALID_IVAR_OFFSET
LLDB_INVALID_IMAGE_TOKEN = _lldb.LLDB_INVALID_IMAGE_TOKEN
LLDB_INVALID_MODULE_VERSION = _lldb.LLDB_INVALID_MODULE_VERSION
LLDB_INVALID_REGNUM = _lldb.LLDB_INVALID_REGNUM
LLDB_INVALID_UID = _lldb.LLDB_INVALID_UID
LLDB_INVALID_PROCESS_ID = _lldb.LLDB_INVALID_PROCESS_ID
LLDB_INVALID_THREAD_ID = _lldb.LLDB_INVALID_THREAD_ID
LLDB_INVALID_FRAME_ID = _lldb.LLDB_INVALID_FRAME_ID
LLDB_INVALID_SIGNAL_NUMBER = _lldb.LLDB_INVALID_SIGNAL_NUMBER
LLDB_INVALID_OFFSET = _lldb.LLDB_INVALID_OFFSET
LLDB_INVALID_LINE_NUMBER = _lldb.LLDB_INVALID_LINE_NUMBER
LLDB_INVALID_COLUMN_NUMBER = _lldb.LLDB_INVALID_COLUMN_NUMBER
LLDB_INVALID_QUEUE_ID = _lldb.LLDB_INVALID_QUEUE_ID
LLDB_INVALID_CPU_ID = _lldb.LLDB_INVALID_CPU_ID
LLDB_INVALID_WATCHPOINT_RESOURCE_ID = _lldb.LLDB_INVALID_WATCHPOINT_RESOURCE_ID
LLDB_ARCH_DEFAULT = _lldb.LLDB_ARCH_DEFAULT
LLDB_ARCH_DEFAULT_32BIT = _lldb.LLDB_ARCH_DEFAULT_32BIT
LLDB_ARCH_DEFAULT_64BIT = _lldb.LLDB_ARCH_DEFAULT_64BIT
LLDB_INVALID_CPUTYPE = _lldb.LLDB_INVALID_CPUTYPE
LLDB_MAX_NUM_OPTION_SETS = _lldb.LLDB_MAX_NUM_OPTION_SETS
LLDB_OPT_SET_ALL = _lldb.LLDB_OPT_SET_ALL
LLDB_OPT_SET_1 = _lldb.LLDB_OPT_SET_1
LLDB_OPT_SET_2 = _lldb.LLDB_OPT_SET_2
LLDB_OPT_SET_3 = _lldb.LLDB_OPT_SET_3
LLDB_OPT_SET_4 = _lldb.LLDB_OPT_SET_4
LLDB_OPT_SET_5 = _lldb.LLDB_OPT_SET_5
LLDB_OPT_SET_6 = _lldb.LLDB_OPT_SET_6
LLDB_OPT_SET_7 = _lldb.LLDB_OPT_SET_7
LLDB_OPT_SET_8 = _lldb.LLDB_OPT_SET_8
LLDB_OPT_SET_9 = _lldb.LLDB_OPT_SET_9
LLDB_OPT_SET_10 = _lldb.LLDB_OPT_SET_10
LLDB_OPT_SET_11 = _lldb.LLDB_OPT_SET_11
LLDB_OPT_SET_12 = _lldb.LLDB_OPT_SET_12
LLDB_INVALID_ADDRESS_MASK = _lldb.LLDB_INVALID_ADDRESS_MASK
eStateInvalid = _lldb.eStateInvalid
eStateUnloaded = _lldb.eStateUnloaded
eStateConnected = _lldb.eStateConnected
eStateAttaching = _lldb.eStateAttaching
eStateLaunching = _lldb.eStateLaunching
eStateStopped = _lldb.eStateStopped
eStateRunning = _lldb.eStateRunning
eStateStepping = _lldb.eStateStepping
eStateCrashed = _lldb.eStateCrashed
eStateDetached = _lldb.eStateDetached
eStateExited = _lldb.eStateExited
eStateSuspended = _lldb.eStateSuspended
kLastStateType = _lldb.kLastStateType
eLaunchFlagNone = _lldb.eLaunchFlagNone
eLaunchFlagExec = _lldb.eLaunchFlagExec
eLaunchFlagDebug = _lldb.eLaunchFlagDebug
eLaunchFlagStopAtEntry = _lldb.eLaunchFlagStopAtEntry
eLaunchFlagDisableASLR = _lldb.eLaunchFlagDisableASLR
eLaunchFlagDisableSTDIO = _lldb.eLaunchFlagDisableSTDIO
eLaunchFlagLaunchInTTY = _lldb.eLaunchFlagLaunchInTTY
eLaunchFlagLaunchInShell = _lldb.eLaunchFlagLaunchInShell
eLaunchFlagLaunchInSeparateProcessGroup = _lldb.eLaunchFlagLaunchInSeparateProcessGroup
eLaunchFlagDontSetExitStatus = _lldb.eLaunchFlagDontSetExitStatus
eLaunchFlagDetachOnError = _lldb.eLaunchFlagDetachOnError
eLaunchFlagShellExpandArguments = _lldb.eLaunchFlagShellExpandArguments
eLaunchFlagCloseTTYOnExit = _lldb.eLaunchFlagCloseTTYOnExit
eLaunchFlagInheritTCCFromParent = _lldb.eLaunchFlagInheritTCCFromParent
eOnlyThisThread = _lldb.eOnlyThisThread
eAllThreads = _lldb.eAllThreads
eOnlyDuringStepping = _lldb.eOnlyDuringStepping
eByteOrderInvalid = _lldb.eByteOrderInvalid
eByteOrderBig = _lldb.eByteOrderBig
eByteOrderPDP = _lldb.eByteOrderPDP
eByteOrderLittle = _lldb.eByteOrderLittle
eEncodingInvalid = _lldb.eEncodingInvalid
eEncodingUint = _lldb.eEncodingUint
eEncodingSint = _lldb.eEncodingSint
eEncodingIEEE754 = _lldb.eEncodingIEEE754
eEncodingVector = _lldb.eEncodingVector
eFormatDefault = _lldb.eFormatDefault
eFormatInvalid = _lldb.eFormatInvalid
eFormatBoolean = _lldb.eFormatBoolean
eFormatBinary = _lldb.eFormatBinary
eFormatBytes = _lldb.eFormatBytes
eFormatBytesWithASCII = _lldb.eFormatBytesWithASCII
eFormatChar = _lldb.eFormatChar
eFormatCharPrintable = _lldb.eFormatCharPrintable
eFormatComplex = _lldb.eFormatComplex
eFormatComplexFloat = _lldb.eFormatComplexFloat
eFormatCString = _lldb.eFormatCString
eFormatDecimal = _lldb.eFormatDecimal
eFormatEnum = _lldb.eFormatEnum
eFormatHex = _lldb.eFormatHex
eFormatHexUppercase = _lldb.eFormatHexUppercase
eFormatFloat = _lldb.eFormatFloat
eFormatOctal = _lldb.eFormatOctal
eFormatOSType = _lldb.eFormatOSType
eFormatUnicode16 = _lldb.eFormatUnicode16
eFormatUnicode32 = _lldb.eFormatUnicode32
eFormatUnsigned = _lldb.eFormatUnsigned
eFormatPointer = _lldb.eFormatPointer
eFormatVectorOfChar = _lldb.eFormatVectorOfChar
eFormatVectorOfSInt8 = _lldb.eFormatVectorOfSInt8
eFormatVectorOfUInt8 = _lldb.eFormatVectorOfUInt8
eFormatVectorOfSInt16 = _lldb.eFormatVectorOfSInt16
eFormatVectorOfUInt16 = _lldb.eFormatVectorOfUInt16
eFormatVectorOfSInt32 = _lldb.eFormatVectorOfSInt32
eFormatVectorOfUInt32 = _lldb.eFormatVectorOfUInt32
eFormatVectorOfSInt64 = _lldb.eFormatVectorOfSInt64
eFormatVectorOfUInt64 = _lldb.eFormatVectorOfUInt64
eFormatVectorOfFloat16 = _lldb.eFormatVectorOfFloat16
eFormatVectorOfFloat32 = _lldb.eFormatVectorOfFloat32
eFormatVectorOfFloat64 = _lldb.eFormatVectorOfFloat64
eFormatVectorOfUInt128 = _lldb.eFormatVectorOfUInt128
eFormatComplexInteger = _lldb.eFormatComplexInteger
eFormatCharArray = _lldb.eFormatCharArray
eFormatAddressInfo = _lldb.eFormatAddressInfo
eFormatHexFloat = _lldb.eFormatHexFloat
eFormatInstruction = _lldb.eFormatInstruction
eFormatVoid = _lldb.eFormatVoid
eFormatUnicode8 = _lldb.eFormatUnicode8
kNumFormats = _lldb.kNumFormats
eDescriptionLevelBrief = _lldb.eDescriptionLevelBrief
eDescriptionLevelFull = _lldb.eDescriptionLevelFull
eDescriptionLevelVerbose = _lldb.eDescriptionLevelVerbose
eDescriptionLevelInitial = _lldb.eDescriptionLevelInitial
kNumDescriptionLevels = _lldb.kNumDescriptionLevels
eScriptLanguageNone = _lldb.eScriptLanguageNone
eScriptLanguagePython = _lldb.eScriptLanguagePython
eScriptLanguageLua = _lldb.eScriptLanguageLua
eScriptLanguageUnknown = _lldb.eScriptLanguageUnknown
eScriptLanguageDefault = _lldb.eScriptLanguageDefault
eRegisterKindEHFrame = _lldb.eRegisterKindEHFrame
eRegisterKindDWARF = _lldb.eRegisterKindDWARF
eRegisterKindGeneric = _lldb.eRegisterKindGeneric
eRegisterKindProcessPlugin = _lldb.eRegisterKindProcessPlugin
eRegisterKindLLDB = _lldb.eRegisterKindLLDB
kNumRegisterKinds = _lldb.kNumRegisterKinds
eStopReasonInvalid = _lldb.eStopReasonInvalid
eStopReasonNone = _lldb.eStopReasonNone
eStopReasonTrace = _lldb.eStopReasonTrace
eStopReasonBreakpoint = _lldb.eStopReasonBreakpoint
eStopReasonWatchpoint = _lldb.eStopReasonWatchpoint
eStopReasonSignal = _lldb.eStopReasonSignal
eStopReasonException = _lldb.eStopReasonException
eStopReasonExec = _lldb.eStopReasonExec
eStopReasonPlanComplete = _lldb.eStopReasonPlanComplete
eStopReasonThreadExiting = _lldb.eStopReasonThreadExiting
eStopReasonInstrumentation = _lldb.eStopReasonInstrumentation
eStopReasonProcessorTrace = _lldb.eStopReasonProcessorTrace
eStopReasonFork = _lldb.eStopReasonFork
eStopReasonVFork = _lldb.eStopReasonVFork
eStopReasonVForkDone = _lldb.eStopReasonVForkDone
eReturnStatusInvalid = _lldb.eReturnStatusInvalid
eReturnStatusSuccessFinishNoResult = _lldb.eReturnStatusSuccessFinishNoResult
eReturnStatusSuccessFinishResult = _lldb.eReturnStatusSuccessFinishResult
eReturnStatusSuccessContinuingNoResult = _lldb.eReturnStatusSuccessContinuingNoResult
eReturnStatusSuccessContinuingResult = _lldb.eReturnStatusSuccessContinuingResult
eReturnStatusStarted = _lldb.eReturnStatusStarted
eReturnStatusFailed = _lldb.eReturnStatusFailed
eReturnStatusQuit = _lldb.eReturnStatusQuit
eExpressionCompleted = _lldb.eExpressionCompleted
eExpressionSetupError = _lldb.eExpressionSetupError
eExpressionParseError = _lldb.eExpressionParseError
eExpressionDiscarded = _lldb.eExpressionDiscarded
eExpressionInterrupted = _lldb.eExpressionInterrupted
eExpressionHitBreakpoint = _lldb.eExpressionHitBreakpoint
eExpressionTimedOut = _lldb.eExpressionTimedOut
eExpressionResultUnavailable = _lldb.eExpressionResultUnavailable
eExpressionStoppedForDebug = _lldb.eExpressionStoppedForDebug
eExpressionThreadVanished = _lldb.eExpressionThreadVanished
eSearchDepthInvalid = _lldb.eSearchDepthInvalid
eSearchDepthTarget = _lldb.eSearchDepthTarget
eSearchDepthModule = _lldb.eSearchDepthModule
eSearchDepthCompUnit = _lldb.eSearchDepthCompUnit
eSearchDepthFunction = _lldb.eSearchDepthFunction
eSearchDepthBlock = _lldb.eSearchDepthBlock
eSearchDepthAddress = _lldb.eSearchDepthAddress
kLastSearchDepthKind = _lldb.kLastSearchDepthKind
eConnectionStatusSuccess = _lldb.eConnectionStatusSuccess
eConnectionStatusEndOfFile = _lldb.eConnectionStatusEndOfFile
eConnectionStatusError = _lldb.eConnectionStatusError
eConnectionStatusTimedOut = _lldb.eConnectionStatusTimedOut
eConnectionStatusNoConnection = _lldb.eConnectionStatusNoConnection
eConnectionStatusLostConnection = _lldb.eConnectionStatusLostConnection
eConnectionStatusInterrupted = _lldb.eConnectionStatusInterrupted
eErrorTypeInvalid = _lldb.eErrorTypeInvalid
eErrorTypeGeneric = _lldb.eErrorTypeGeneric
eErrorTypeMachKernel = _lldb.eErrorTypeMachKernel
eErrorTypePOSIX = _lldb.eErrorTypePOSIX
eErrorTypeExpression = _lldb.eErrorTypeExpression
eErrorTypeWin32 = _lldb.eErrorTypeWin32
eValueTypeInvalid = _lldb.eValueTypeInvalid
eValueTypeVariableGlobal = _lldb.eValueTypeVariableGlobal
eValueTypeVariableStatic = _lldb.eValueTypeVariableStatic
eValueTypeVariableArgument = _lldb.eValueTypeVariableArgument
eValueTypeVariableLocal = _lldb.eValueTypeVariableLocal
eValueTypeRegister = _lldb.eValueTypeRegister
eValueTypeRegisterSet = _lldb.eValueTypeRegisterSet
eValueTypeConstResult = _lldb.eValueTypeConstResult
eValueTypeVariableThreadLocal = _lldb.eValueTypeVariableThreadLocal
eValueTypeVTable = _lldb.eValueTypeVTable
eValueTypeVTableEntry = _lldb.eValueTypeVTableEntry
eInputReaderGranularityInvalid = _lldb.eInputReaderGranularityInvalid
eInputReaderGranularityByte = _lldb.eInputReaderGranularityByte
eInputReaderGranularityWord = _lldb.eInputReaderGranularityWord
eInputReaderGranularityLine = _lldb.eInputReaderGranularityLine
eInputReaderGranularityAll = _lldb.eInputReaderGranularityAll
eSymbolContextTarget = _lldb.eSymbolContextTarget
eSymbolContextModule = _lldb.eSymbolContextModule
eSymbolContextCompUnit = _lldb.eSymbolContextCompUnit
eSymbolContextFunction = _lldb.eSymbolContextFunction
eSymbolContextBlock = _lldb.eSymbolContextBlock
eSymbolContextLineEntry = _lldb.eSymbolContextLineEntry
eSymbolContextSymbol = _lldb.eSymbolContextSymbol
eSymbolContextEverything = _lldb.eSymbolContextEverything
eSymbolContextVariable = _lldb.eSymbolContextVariable
eSymbolContextLastItem = _lldb.eSymbolContextLastItem
ePermissionsWritable = _lldb.ePermissionsWritable
ePermissionsReadable = _lldb.ePermissionsReadable
ePermissionsExecutable = _lldb.ePermissionsExecutable
eInputReaderActivate = _lldb.eInputReaderActivate
eInputReaderAsynchronousOutputWritten = _lldb.eInputReaderAsynchronousOutputWritten
eInputReaderReactivate = _lldb.eInputReaderReactivate
eInputReaderDeactivate = _lldb.eInputReaderDeactivate
eInputReaderGotToken = _lldb.eInputReaderGotToken
eInputReaderInterrupt = _lldb.eInputReaderInterrupt
eInputReaderEndOfFile = _lldb.eInputReaderEndOfFile
eInputReaderDone = _lldb.eInputReaderDone
eBreakpointEventTypeInvalidType = _lldb.eBreakpointEventTypeInvalidType
eBreakpointEventTypeAdded = _lldb.eBreakpointEventTypeAdded
eBreakpointEventTypeRemoved = _lldb.eBreakpointEventTypeRemoved
eBreakpointEventTypeLocationsAdded = _lldb.eBreakpointEventTypeLocationsAdded
eBreakpointEventTypeLocationsRemoved = _lldb.eBreakpointEventTypeLocationsRemoved
eBreakpointEventTypeLocationsResolved = _lldb.eBreakpointEventTypeLocationsResolved
eBreakpointEventTypeEnabled = _lldb.eBreakpointEventTypeEnabled
eBreakpointEventTypeDisabled = _lldb.eBreakpointEventTypeDisabled
eBreakpointEventTypeCommandChanged = _lldb.eBreakpointEventTypeCommandChanged
eBreakpointEventTypeConditionChanged = _lldb.eBreakpointEventTypeConditionChanged
eBreakpointEventTypeIgnoreChanged = _lldb.eBreakpointEventTypeIgnoreChanged
eBreakpointEventTypeThreadChanged = _lldb.eBreakpointEventTypeThreadChanged
eBreakpointEventTypeAutoContinueChanged = _lldb.eBreakpointEventTypeAutoContinueChanged
eWatchpointEventTypeInvalidType = _lldb.eWatchpointEventTypeInvalidType
eWatchpointEventTypeAdded = _lldb.eWatchpointEventTypeAdded
eWatchpointEventTypeRemoved = _lldb.eWatchpointEventTypeRemoved
eWatchpointEventTypeEnabled = _lldb.eWatchpointEventTypeEnabled
eWatchpointEventTypeDisabled = _lldb.eWatchpointEventTypeDisabled
eWatchpointEventTypeCommandChanged = _lldb.eWatchpointEventTypeCommandChanged
eWatchpointEventTypeConditionChanged = _lldb.eWatchpointEventTypeConditionChanged
eWatchpointEventTypeIgnoreChanged = _lldb.eWatchpointEventTypeIgnoreChanged
eWatchpointEventTypeThreadChanged = _lldb.eWatchpointEventTypeThreadChanged
eWatchpointEventTypeTypeChanged = _lldb.eWatchpointEventTypeTypeChanged
eWatchpointWriteTypeDisabled = _lldb.eWatchpointWriteTypeDisabled
eWatchpointWriteTypeAlways = _lldb.eWatchpointWriteTypeAlways
eWatchpointWriteTypeOnModify = _lldb.eWatchpointWriteTypeOnModify
eLanguageTypeUnknown = _lldb.eLanguageTypeUnknown
eLanguageTypeC89 = _lldb.eLanguageTypeC89
eLanguageTypeC = _lldb.eLanguageTypeC
eLanguageTypeAda83 = _lldb.eLanguageTypeAda83
eLanguageTypeC_plus_plus = _lldb.eLanguageTypeC_plus_plus
eLanguageTypeCobol74 = _lldb.eLanguageTypeCobol74
eLanguageTypeCobol85 = _lldb.eLanguageTypeCobol85
eLanguageTypeFortran77 = _lldb.eLanguageTypeFortran77
eLanguageTypeFortran90 = _lldb.eLanguageTypeFortran90
eLanguageTypePascal83 = _lldb.eLanguageTypePascal83
eLanguageTypeModula2 = _lldb.eLanguageTypeModula2
eLanguageTypeJava = _lldb.eLanguageTypeJava
eLanguageTypeC99 = _lldb.eLanguageTypeC99
eLanguageTypeAda95 = _lldb.eLanguageTypeAda95
eLanguageTypeFortran95 = _lldb.eLanguageTypeFortran95
eLanguageTypePLI = _lldb.eLanguageTypePLI
eLanguageTypeObjC = _lldb.eLanguageTypeObjC
eLanguageTypeObjC_plus_plus = _lldb.eLanguageTypeObjC_plus_plus
eLanguageTypeUPC = _lldb.eLanguageTypeUPC
eLanguageTypeD = _lldb.eLanguageTypeD
eLanguageTypePython = _lldb.eLanguageTypePython
eLanguageTypeOpenCL = _lldb.eLanguageTypeOpenCL
eLanguageTypeGo = _lldb.eLanguageTypeGo
eLanguageTypeModula3 = _lldb.eLanguageTypeModula3
eLanguageTypeHaskell = _lldb.eLanguageTypeHaskell
eLanguageTypeC_plus_plus_03 = _lldb.eLanguageTypeC_plus_plus_03
eLanguageTypeC_plus_plus_11 = _lldb.eLanguageTypeC_plus_plus_11
eLanguageTypeOCaml = _lldb.eLanguageTypeOCaml
eLanguageTypeRust = _lldb.eLanguageTypeRust
eLanguageTypeC11 = _lldb.eLanguageTypeC11
eLanguageTypeSwift = _lldb.eLanguageTypeSwift
eLanguageTypeJulia = _lldb.eLanguageTypeJulia
eLanguageTypeDylan = _lldb.eLanguageTypeDylan
eLanguageTypeC_plus_plus_14 = _lldb.eLanguageTypeC_plus_plus_14
eLanguageTypeFortran03 = _lldb.eLanguageTypeFortran03
eLanguageTypeFortran08 = _lldb.eLanguageTypeFortran08
eLanguageTypeRenderScript = _lldb.eLanguageTypeRenderScript
eLanguageTypeBLISS = _lldb.eLanguageTypeBLISS
eLanguageTypeKotlin = _lldb.eLanguageTypeKotlin
eLanguageTypeZig = _lldb.eLanguageTypeZig
eLanguageTypeCrystal = _lldb.eLanguageTypeCrystal
eLanguageTypeC_plus_plus_17 = _lldb.eLanguageTypeC_plus_plus_17
eLanguageTypeC_plus_plus_20 = _lldb.eLanguageTypeC_plus_plus_20
eLanguageTypeC17 = _lldb.eLanguageTypeC17
eLanguageTypeFortran18 = _lldb.eLanguageTypeFortran18
eLanguageTypeAda2005 = _lldb.eLanguageTypeAda2005
eLanguageTypeAda2012 = _lldb.eLanguageTypeAda2012
eLanguageTypeHIP = _lldb.eLanguageTypeHIP
eLanguageTypeAssembly = _lldb.eLanguageTypeAssembly
eLanguageTypeC_sharp = _lldb.eLanguageTypeC_sharp
eLanguageTypeMojo = _lldb.eLanguageTypeMojo
eLanguageTypeMipsAssembler = _lldb.eLanguageTypeMipsAssembler
eNumLanguageTypes = _lldb.eNumLanguageTypes
eInstrumentationRuntimeTypeAddressSanitizer = _lldb.eInstrumentationRuntimeTypeAddressSanitizer
eInstrumentationRuntimeTypeThreadSanitizer = _lldb.eInstrumentationRuntimeTypeThreadSanitizer
eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer = _lldb.eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer
eInstrumentationRuntimeTypeMainThreadChecker = _lldb.eInstrumentationRuntimeTypeMainThreadChecker
eInstrumentationRuntimeTypeSwiftRuntimeReporting = _lldb.eInstrumentationRuntimeTypeSwiftRuntimeReporting
eInstrumentationRuntimeTypeLibsanitizersAsan = _lldb.eInstrumentationRuntimeTypeLibsanitizersAsan
eNumInstrumentationRuntimeTypes = _lldb.eNumInstrumentationRuntimeTypes
eNoDynamicValues = _lldb.eNoDynamicValues
eDynamicCanRunTarget = _lldb.eDynamicCanRunTarget
eDynamicDontRunTarget = _lldb.eDynamicDontRunTarget
eBindAuto = _lldb.eBindAuto
eBind = _lldb.eBind
eDontBind = _lldb.eDontBind
eStopShowColumnAnsiOrCaret = _lldb.eStopShowColumnAnsiOrCaret
eStopShowColumnAnsi = _lldb.eStopShowColumnAnsi
eStopShowColumnCaret = _lldb.eStopShowColumnCaret
eStopShowColumnNone = _lldb.eStopShowColumnNone
eAccessNone = _lldb.eAccessNone
eAccessPublic = _lldb.eAccessPublic
eAccessPrivate = _lldb.eAccessPrivate
eAccessProtected = _lldb.eAccessProtected
eAccessPackage = _lldb.eAccessPackage
eArgTypeAddress = _lldb.eArgTypeAddress
eArgTypeAddressOrExpression = _lldb.eArgTypeAddressOrExpression
eArgTypeAliasName = _lldb.eArgTypeAliasName
eArgTypeAliasOptions = _lldb.eArgTypeAliasOptions
eArgTypeArchitecture = _lldb.eArgTypeArchitecture
eArgTypeBoolean = _lldb.eArgTypeBoolean
eArgTypeBreakpointID = _lldb.eArgTypeBreakpointID
eArgTypeBreakpointIDRange = _lldb.eArgTypeBreakpointIDRange
eArgTypeBreakpointName = _lldb.eArgTypeBreakpointName
eArgTypeByteSize = _lldb.eArgTypeByteSize
eArgTypeClassName = _lldb.eArgTypeClassName
eArgTypeCommandName = _lldb.eArgTypeCommandName
eArgTypeCount = _lldb.eArgTypeCount
eArgTypeDescriptionVerbosity = _lldb.eArgTypeDescriptionVerbosity
eArgTypeDirectoryName = _lldb.eArgTypeDirectoryName
eArgTypeDisassemblyFlavor = _lldb.eArgTypeDisassemblyFlavor
eArgTypeEndAddress = _lldb.eArgTypeEndAddress
eArgTypeExpression = _lldb.eArgTypeExpression
eArgTypeExpressionPath = _lldb.eArgTypeExpressionPath
eArgTypeExprFormat = _lldb.eArgTypeExprFormat
eArgTypeFileLineColumn = _lldb.eArgTypeFileLineColumn
eArgTypeFilename = _lldb.eArgTypeFilename
eArgTypeFormat = _lldb.eArgTypeFormat
eArgTypeFrameIndex = _lldb.eArgTypeFrameIndex
eArgTypeFullName = _lldb.eArgTypeFullName
eArgTypeFunctionName = _lldb.eArgTypeFunctionName
eArgTypeFunctionOrSymbol = _lldb.eArgTypeFunctionOrSymbol
eArgTypeGDBFormat = _lldb.eArgTypeGDBFormat
eArgTypeHelpText = _lldb.eArgTypeHelpText
eArgTypeIndex = _lldb.eArgTypeIndex
eArgTypeLanguage = _lldb.eArgTypeLanguage
eArgTypeLineNum = _lldb.eArgTypeLineNum
eArgTypeLogCategory = _lldb.eArgTypeLogCategory
eArgTypeLogChannel = _lldb.eArgTypeLogChannel
eArgTypeMethod = _lldb.eArgTypeMethod
eArgTypeName = _lldb.eArgTypeName
eArgTypeNewPathPrefix = _lldb.eArgTypeNewPathPrefix
eArgTypeNumLines = _lldb.eArgTypeNumLines
eArgTypeNumberPerLine = _lldb.eArgTypeNumberPerLine
eArgTypeOffset = _lldb.eArgTypeOffset
eArgTypeOldPathPrefix = _lldb.eArgTypeOldPathPrefix
eArgTypeOneLiner = _lldb.eArgTypeOneLiner
eArgTypePath = _lldb.eArgTypePath
eArgTypePermissionsNumber = _lldb.eArgTypePermissionsNumber
eArgTypePermissionsString = _lldb.eArgTypePermissionsString
eArgTypePid = _lldb.eArgTypePid
eArgTypePlugin = _lldb.eArgTypePlugin
eArgTypeProcessName = _lldb.eArgTypeProcessName
eArgTypePythonClass = _lldb.eArgTypePythonClass
eArgTypePythonFunction = _lldb.eArgTypePythonFunction
eArgTypePythonScript = _lldb.eArgTypePythonScript
eArgTypeQueueName = _lldb.eArgTypeQueueName
eArgTypeRegisterName = _lldb.eArgTypeRegisterName
eArgTypeRegularExpression = _lldb.eArgTypeRegularExpression
eArgTypeRunArgs = _lldb.eArgTypeRunArgs
eArgTypeRunMode = _lldb.eArgTypeRunMode
eArgTypeScriptedCommandSynchronicity = _lldb.eArgTypeScriptedCommandSynchronicity
eArgTypeScriptLang = _lldb.eArgTypeScriptLang
eArgTypeSearchWord = _lldb.eArgTypeSearchWord
eArgTypeSelector = _lldb.eArgTypeSelector
eArgTypeSettingIndex = _lldb.eArgTypeSettingIndex
eArgTypeSettingKey = _lldb.eArgTypeSettingKey
eArgTypeSettingPrefix = _lldb.eArgTypeSettingPrefix
eArgTypeSettingVariableName = _lldb.eArgTypeSettingVariableName
eArgTypeShlibName = _lldb.eArgTypeShlibName
eArgTypeSourceFile = _lldb.eArgTypeSourceFile
eArgTypeSortOrder = _lldb.eArgTypeSortOrder
eArgTypeStartAddress = _lldb.eArgTypeStartAddress
eArgTypeSummaryString = _lldb.eArgTypeSummaryString
eArgTypeSymbol = _lldb.eArgTypeSymbol
eArgTypeThreadID = _lldb.eArgTypeThreadID
eArgTypeThreadIndex = _lldb.eArgTypeThreadIndex
eArgTypeThreadName = _lldb.eArgTypeThreadName
eArgTypeTypeName = _lldb.eArgTypeTypeName
eArgTypeUnsignedInteger = _lldb.eArgTypeUnsignedInteger
eArgTypeUnixSignal = _lldb.eArgTypeUnixSignal
eArgTypeVarName = _lldb.eArgTypeVarName
eArgTypeValue = _lldb.eArgTypeValue
eArgTypeWidth = _lldb.eArgTypeWidth
eArgTypeNone = _lldb.eArgTypeNone
eArgTypePlatform = _lldb.eArgTypePlatform
eArgTypeWatchpointID = _lldb.eArgTypeWatchpointID
eArgTypeWatchpointIDRange = _lldb.eArgTypeWatchpointIDRange
eArgTypeWatchType = _lldb.eArgTypeWatchType
eArgRawInput = _lldb.eArgRawInput
eArgTypeCommand = _lldb.eArgTypeCommand
eArgTypeColumnNum = _lldb.eArgTypeColumnNum
eArgTypeModuleUUID = _lldb.eArgTypeModuleUUID
eArgTypeSaveCoreStyle = _lldb.eArgTypeSaveCoreStyle
eArgTypeLogHandler = _lldb.eArgTypeLogHandler
eArgTypeSEDStylePair = _lldb.eArgTypeSEDStylePair
eArgTypeRecognizerID = _lldb.eArgTypeRecognizerID
eArgTypeConnectURL = _lldb.eArgTypeConnectURL
eArgTypeTargetID = _lldb.eArgTypeTargetID
eArgTypeStopHookID = _lldb.eArgTypeStopHookID
eArgTypeBindGenTypeParamValue = _lldb.eArgTypeBindGenTypeParamValue
eArgTypeCompletionType = _lldb.eArgTypeCompletionType
eArgTypeLastArg = _lldb.eArgTypeLastArg
eSymbolTypeAny = _lldb.eSymbolTypeAny
eSymbolTypeInvalid = _lldb.eSymbolTypeInvalid
eSymbolTypeAbsolute = _lldb.eSymbolTypeAbsolute
eSymbolTypeCode = _lldb.eSymbolTypeCode
eSymbolTypeResolver = _lldb.eSymbolTypeResolver
eSymbolTypeData = _lldb.eSymbolTypeData
eSymbolTypeTrampoline = _lldb.eSymbolTypeTrampoline
eSymbolTypeRuntime = _lldb.eSymbolTypeRuntime
eSymbolTypeException = _lldb.eSymbolTypeException
eSymbolTypeSourceFile = _lldb.eSymbolTypeSourceFile
eSymbolTypeHeaderFile = _lldb.eSymbolTypeHeaderFile
eSymbolTypeObjectFile = _lldb.eSymbolTypeObjectFile
eSymbolTypeCommonBlock = _lldb.eSymbolTypeCommonBlock
eSymbolTypeBlock = _lldb.eSymbolTypeBlock
eSymbolTypeLocal = _lldb.eSymbolTypeLocal
eSymbolTypeParam = _lldb.eSymbolTypeParam
eSymbolTypeVariable = _lldb.eSymbolTypeVariable
eSymbolTypeVariableType = _lldb.eSymbolTypeVariableType
eSymbolTypeLineEntry = _lldb.eSymbolTypeLineEntry
eSymbolTypeLineHeader = _lldb.eSymbolTypeLineHeader
eSymbolTypeScopeBegin = _lldb.eSymbolTypeScopeBegin
eSymbolTypeScopeEnd = _lldb.eSymbolTypeScopeEnd
eSymbolTypeAdditional = _lldb.eSymbolTypeAdditional
eSymbolTypeCompiler = _lldb.eSymbolTypeCompiler
eSymbolTypeInstrumentation = _lldb.eSymbolTypeInstrumentation
eSymbolTypeUndefined = _lldb.eSymbolTypeUndefined
eSymbolTypeObjCClass = _lldb.eSymbolTypeObjCClass
eSymbolTypeObjCMetaClass = _lldb.eSymbolTypeObjCMetaClass
eSymbolTypeObjCIVar = _lldb.eSymbolTypeObjCIVar
eSymbolTypeReExported = _lldb.eSymbolTypeReExported
eSymbolTypeASTFile = _lldb.eSymbolTypeASTFile
eSectionTypeInvalid = _lldb.eSectionTypeInvalid
eSectionTypeCode = _lldb.eSectionTypeCode
eSectionTypeContainer = _lldb.eSectionTypeContainer
eSectionTypeData = _lldb.eSectionTypeData
eSectionTypeDataCString = _lldb.eSectionTypeDataCString
eSectionTypeDataCStringPointers = _lldb.eSectionTypeDataCStringPointers
eSectionTypeDataSymbolAddress = _lldb.eSectionTypeDataSymbolAddress
eSectionTypeData4 = _lldb.eSectionTypeData4
eSectionTypeData8 = _lldb.eSectionTypeData8
eSectionTypeData16 = _lldb.eSectionTypeData16
eSectionTypeDataPointers = _lldb.eSectionTypeDataPointers
eSectionTypeDebug = _lldb.eSectionTypeDebug
eSectionTypeZeroFill = _lldb.eSectionTypeZeroFill
eSectionTypeDataObjCMessageRefs = _lldb.eSectionTypeDataObjCMessageRefs
eSectionTypeDataObjCCFStrings = _lldb.eSectionTypeDataObjCCFStrings
eSectionTypeDWARFDebugAbbrev = _lldb.eSectionTypeDWARFDebugAbbrev
eSectionTypeDWARFDebugAddr = _lldb.eSectionTypeDWARFDebugAddr
eSectionTypeDWARFDebugAranges = _lldb.eSectionTypeDWARFDebugAranges
eSectionTypeDWARFDebugCuIndex = _lldb.eSectionTypeDWARFDebugCuIndex
eSectionTypeDWARFDebugFrame = _lldb.eSectionTypeDWARFDebugFrame
eSectionTypeDWARFDebugInfo = _lldb.eSectionTypeDWARFDebugInfo
eSectionTypeDWARFDebugLine = _lldb.eSectionTypeDWARFDebugLine
eSectionTypeDWARFDebugLoc = _lldb.eSectionTypeDWARFDebugLoc
eSectionTypeDWARFDebugMacInfo = _lldb.eSectionTypeDWARFDebugMacInfo
eSectionTypeDWARFDebugMacro = _lldb.eSectionTypeDWARFDebugMacro
eSectionTypeDWARFDebugPubNames = _lldb.eSectionTypeDWARFDebugPubNames
eSectionTypeDWARFDebugPubTypes = _lldb.eSectionTypeDWARFDebugPubTypes
eSectionTypeDWARFDebugRanges = _lldb.eSectionTypeDWARFDebugRanges
eSectionTypeDWARFDebugStr = _lldb.eSectionTypeDWARFDebugStr
eSectionTypeDWARFDebugStrOffsets = _lldb.eSectionTypeDWARFDebugStrOffsets
eSectionTypeDWARFAppleNames = _lldb.eSectionTypeDWARFAppleNames
eSectionTypeDWARFAppleTypes = _lldb.eSectionTypeDWARFAppleTypes
eSectionTypeDWARFAppleNamespaces = _lldb.eSectionTypeDWARFAppleNamespaces
eSectionTypeDWARFAppleObjC = _lldb.eSectionTypeDWARFAppleObjC
eSectionTypeELFSymbolTable = _lldb.eSectionTypeELFSymbolTable
eSectionTypeELFDynamicSymbols = _lldb.eSectionTypeELFDynamicSymbols
eSectionTypeELFRelocationEntries = _lldb.eSectionTypeELFRelocationEntries
eSectionTypeELFDynamicLinkInfo = _lldb.eSectionTypeELFDynamicLinkInfo
eSectionTypeEHFrame = _lldb.eSectionTypeEHFrame
eSectionTypeSwiftModules = _lldb.eSectionTypeSwiftModules
eSectionTypeARMexidx = _lldb.eSectionTypeARMexidx
eSectionTypeARMextab = _lldb.eSectionTypeARMextab
eSectionTypeCompactUnwind = _lldb.eSectionTypeCompactUnwind
eSectionTypeGoSymtab = _lldb.eSectionTypeGoSymtab
eSectionTypeAbsoluteAddress = _lldb.eSectionTypeAbsoluteAddress
eSectionTypeDWARFGNUDebugAltLink = _lldb.eSectionTypeDWARFGNUDebugAltLink
eSectionTypeDWARFDebugTypes = _lldb.eSectionTypeDWARFDebugTypes
eSectionTypeDWARFDebugNames = _lldb.eSectionTypeDWARFDebugNames
eSectionTypeOther = _lldb.eSectionTypeOther
eSectionTypeDWARFDebugLineStr = _lldb.eSectionTypeDWARFDebugLineStr
eSectionTypeDWARFDebugRngLists = _lldb.eSectionTypeDWARFDebugRngLists
eSectionTypeDWARFDebugLocLists = _lldb.eSectionTypeDWARFDebugLocLists
eSectionTypeDWARFDebugAbbrevDwo = _lldb.eSectionTypeDWARFDebugAbbrevDwo
eSectionTypeDWARFDebugInfoDwo = _lldb.eSectionTypeDWARFDebugInfoDwo
eSectionTypeDWARFDebugStrDwo = _lldb.eSectionTypeDWARFDebugStrDwo
eSectionTypeDWARFDebugStrOffsetsDwo = _lldb.eSectionTypeDWARFDebugStrOffsetsDwo
eSectionTypeDWARFDebugTypesDwo = _lldb.eSectionTypeDWARFDebugTypesDwo
eSectionTypeDWARFDebugRngListsDwo = _lldb.eSectionTypeDWARFDebugRngListsDwo
eSectionTypeDWARFDebugLocDwo = _lldb.eSectionTypeDWARFDebugLocDwo
eSectionTypeDWARFDebugLocListsDwo = _lldb.eSectionTypeDWARFDebugLocListsDwo
eSectionTypeDWARFDebugTuIndex = _lldb.eSectionTypeDWARFDebugTuIndex
eSectionTypeCTF = _lldb.eSectionTypeCTF
eSectionTypeLLDBTypeSummaries = _lldb.eSectionTypeLLDBTypeSummaries
eEmulateInstructionOptionNone = _lldb.eEmulateInstructionOptionNone
eEmulateInstructionOptionAutoAdvancePC = _lldb.eEmulateInstructionOptionAutoAdvancePC
eEmulateInstructionOptionIgnoreConditions = _lldb.eEmulateInstructionOptionIgnoreConditions
eFunctionNameTypeNone = _lldb.eFunctionNameTypeNone
eFunctionNameTypeAuto = _lldb.eFunctionNameTypeAuto
eFunctionNameTypeFull = _lldb.eFunctionNameTypeFull
eFunctionNameTypeBase = _lldb.eFunctionNameTypeBase
eFunctionNameTypeMethod = _lldb.eFunctionNameTypeMethod
eFunctionNameTypeSelector = _lldb.eFunctionNameTypeSelector
eFunctionNameTypeAny = _lldb.eFunctionNameTypeAny
eBasicTypeInvalid = _lldb.eBasicTypeInvalid
eBasicTypeVoid = _lldb.eBasicTypeVoid
eBasicTypeChar = _lldb.eBasicTypeChar
eBasicTypeSignedChar = _lldb.eBasicTypeSignedChar
eBasicTypeUnsignedChar = _lldb.eBasicTypeUnsignedChar
eBasicTypeWChar = _lldb.eBasicTypeWChar
eBasicTypeSignedWChar = _lldb.eBasicTypeSignedWChar
eBasicTypeUnsignedWChar = _lldb.eBasicTypeUnsignedWChar
eBasicTypeChar16 = _lldb.eBasicTypeChar16
eBasicTypeChar32 = _lldb.eBasicTypeChar32
eBasicTypeChar8 = _lldb.eBasicTypeChar8
eBasicTypeShort = _lldb.eBasicTypeShort
eBasicTypeUnsignedShort = _lldb.eBasicTypeUnsignedShort
eBasicTypeInt = _lldb.eBasicTypeInt
eBasicTypeUnsignedInt = _lldb.eBasicTypeUnsignedInt
eBasicTypeLong = _lldb.eBasicTypeLong
eBasicTypeUnsignedLong = _lldb.eBasicTypeUnsignedLong
eBasicTypeLongLong = _lldb.eBasicTypeLongLong
eBasicTypeUnsignedLongLong = _lldb.eBasicTypeUnsignedLongLong
eBasicTypeInt128 = _lldb.eBasicTypeInt128
eBasicTypeUnsignedInt128 = _lldb.eBasicTypeUnsignedInt128
eBasicTypeBool = _lldb.eBasicTypeBool
eBasicTypeHalf = _lldb.eBasicTypeHalf
eBasicTypeFloat = _lldb.eBasicTypeFloat
eBasicTypeDouble = _lldb.eBasicTypeDouble
eBasicTypeLongDouble = _lldb.eBasicTypeLongDouble
eBasicTypeFloatComplex = _lldb.eBasicTypeFloatComplex
eBasicTypeDoubleComplex = _lldb.eBasicTypeDoubleComplex
eBasicTypeLongDoubleComplex = _lldb.eBasicTypeLongDoubleComplex
eBasicTypeObjCID = _lldb.eBasicTypeObjCID
eBasicTypeObjCClass = _lldb.eBasicTypeObjCClass
eBasicTypeObjCSel = _lldb.eBasicTypeObjCSel
eBasicTypeNullPtr = _lldb.eBasicTypeNullPtr
eBasicTypeOther = _lldb.eBasicTypeOther
eTraceTypeNone = _lldb.eTraceTypeNone
eTraceTypeProcessorTrace = _lldb.eTraceTypeProcessorTrace
eStructuredDataTypeInvalid = _lldb.eStructuredDataTypeInvalid
eStructuredDataTypeNull = _lldb.eStructuredDataTypeNull
eStructuredDataTypeGeneric = _lldb.eStructuredDataTypeGeneric
eStructuredDataTypeArray = _lldb.eStructuredDataTypeArray
eStructuredDataTypeInteger = _lldb.eStructuredDataTypeInteger
eStructuredDataTypeFloat = _lldb.eStructuredDataTypeFloat
eStructuredDataTypeBoolean = _lldb.eStructuredDataTypeBoolean
eStructuredDataTypeString = _lldb.eStructuredDataTypeString
eStructuredDataTypeDictionary = _lldb.eStructuredDataTypeDictionary
eStructuredDataTypeSignedInteger = _lldb.eStructuredDataTypeSignedInteger
eStructuredDataTypeUnsignedInteger = _lldb.eStructuredDataTypeUnsignedInteger
eTypeClassInvalid = _lldb.eTypeClassInvalid
eTypeClassArray = _lldb.eTypeClassArray
eTypeClassBlockPointer = _lldb.eTypeClassBlockPointer
eTypeClassBuiltin = _lldb.eTypeClassBuiltin
eTypeClassClass = _lldb.eTypeClassClass
eTypeClassComplexFloat = _lldb.eTypeClassComplexFloat
eTypeClassComplexInteger = _lldb.eTypeClassComplexInteger
eTypeClassEnumeration = _lldb.eTypeClassEnumeration
eTypeClassFunction = _lldb.eTypeClassFunction
eTypeClassMemberPointer = _lldb.eTypeClassMemberPointer
eTypeClassObjCObject = _lldb.eTypeClassObjCObject
eTypeClassObjCInterface = _lldb.eTypeClassObjCInterface
eTypeClassObjCObjectPointer = _lldb.eTypeClassObjCObjectPointer
eTypeClassPointer = _lldb.eTypeClassPointer
eTypeClassReference = _lldb.eTypeClassReference
eTypeClassStruct = _lldb.eTypeClassStruct
eTypeClassTypedef = _lldb.eTypeClassTypedef
eTypeClassUnion = _lldb.eTypeClassUnion
eTypeClassVector = _lldb.eTypeClassVector
eTypeClassOther = _lldb.eTypeClassOther
eTypeClassAny = _lldb.eTypeClassAny
eTemplateArgumentKindNull = _lldb.eTemplateArgumentKindNull
eTemplateArgumentKindType = _lldb.eTemplateArgumentKindType
eTemplateArgumentKindDeclaration = _lldb.eTemplateArgumentKindDeclaration
eTemplateArgumentKindIntegral = _lldb.eTemplateArgumentKindIntegral
eTemplateArgumentKindTemplate = _lldb.eTemplateArgumentKindTemplate
eTemplateArgumentKindTemplateExpansion = _lldb.eTemplateArgumentKindTemplateExpansion
eTemplateArgumentKindExpression = _lldb.eTemplateArgumentKindExpression
eTemplateArgumentKindPack = _lldb.eTemplateArgumentKindPack
eTemplateArgumentKindNullPtr = _lldb.eTemplateArgumentKindNullPtr
eFormatterMatchExact = _lldb.eFormatterMatchExact
eFormatterMatchRegex = _lldb.eFormatterMatchRegex
eFormatterMatchCallback = _lldb.eFormatterMatchCallback
eLastFormatterMatchType = _lldb.eLastFormatterMatchType
eNullGenericKindType = _lldb.eNullGenericKindType
eBoundGenericKindType = _lldb.eBoundGenericKindType
eUnboundGenericKindType = _lldb.eUnboundGenericKindType
eTypeOptionNone = _lldb.eTypeOptionNone
eTypeOptionCascade = _lldb.eTypeOptionCascade
eTypeOptionSkipPointers = _lldb.eTypeOptionSkipPointers
eTypeOptionSkipReferences = _lldb.eTypeOptionSkipReferences
eTypeOptionHideChildren = _lldb.eTypeOptionHideChildren
eTypeOptionHideValue = _lldb.eTypeOptionHideValue
eTypeOptionShowOneLiner = _lldb.eTypeOptionShowOneLiner
eTypeOptionHideNames = _lldb.eTypeOptionHideNames
eTypeOptionNonCacheable = _lldb.eTypeOptionNonCacheable
eTypeOptionHideEmptyAggregates = _lldb.eTypeOptionHideEmptyAggregates
eTypeOptionFrontEndWantsDereference = _lldb.eTypeOptionFrontEndWantsDereference
eFrameCompareInvalid = _lldb.eFrameCompareInvalid
eFrameCompareUnknown = _lldb.eFrameCompareUnknown
eFrameCompareEqual = _lldb.eFrameCompareEqual
eFrameCompareSameParent = _lldb.eFrameCompareSameParent
eFrameCompareYounger = _lldb.eFrameCompareYounger
eFrameCompareOlder = _lldb.eFrameCompareOlder
eFilePermissionsUserRead = _lldb.eFilePermissionsUserRead
eFilePermissionsUserWrite = _lldb.eFilePermissionsUserWrite
eFilePermissionsUserExecute = _lldb.eFilePermissionsUserExecute
eFilePermissionsGroupRead = _lldb.eFilePermissionsGroupRead
eFilePermissionsGroupWrite = _lldb.eFilePermissionsGroupWrite
eFilePermissionsGroupExecute = _lldb.eFilePermissionsGroupExecute
eFilePermissionsWorldRead = _lldb.eFilePermissionsWorldRead
eFilePermissionsWorldWrite = _lldb.eFilePermissionsWorldWrite
eFilePermissionsWorldExecute = _lldb.eFilePermissionsWorldExecute
eFilePermissionsUserRW = _lldb.eFilePermissionsUserRW
eFileFilePermissionsUserRX = _lldb.eFileFilePermissionsUserRX
eFilePermissionsUserRWX = _lldb.eFilePermissionsUserRWX
eFilePermissionsGroupRW = _lldb.eFilePermissionsGroupRW
eFilePermissionsGroupRX = _lldb.eFilePermissionsGroupRX
eFilePermissionsGroupRWX = _lldb.eFilePermissionsGroupRWX
eFilePermissionsWorldRW = _lldb.eFilePermissionsWorldRW
eFilePermissionsWorldRX = _lldb.eFilePermissionsWorldRX
eFilePermissionsWorldRWX = _lldb.eFilePermissionsWorldRWX
eFilePermissionsEveryoneR = _lldb.eFilePermissionsEveryoneR
eFilePermissionsEveryoneW = _lldb.eFilePermissionsEveryoneW
eFilePermissionsEveryoneX = _lldb.eFilePermissionsEveryoneX
eFilePermissionsEveryoneRW = _lldb.eFilePermissionsEveryoneRW
eFilePermissionsEveryoneRX = _lldb.eFilePermissionsEveryoneRX
eFilePermissionsEveryoneRWX = _lldb.eFilePermissionsEveryoneRWX
eFilePermissionsFileDefault = _lldb.eFilePermissionsFileDefault
eFilePermissionsDirectoryDefault = _lldb.eFilePermissionsDirectoryDefault
eQueueItemKindUnknown = _lldb.eQueueItemKindUnknown
eQueueItemKindFunction = _lldb.eQueueItemKindFunction
eQueueItemKindBlock = _lldb.eQueueItemKindBlock
eQueueKindUnknown = _lldb.eQueueKindUnknown
eQueueKindSerial = _lldb.eQueueKindSerial
eQueueKindConcurrent = _lldb.eQueueKindConcurrent
eExpressionEvaluationParse = _lldb.eExpressionEvaluationParse
eExpressionEvaluationIRGen = _lldb.eExpressionEvaluationIRGen
eExpressionEvaluationExecution = _lldb.eExpressionEvaluationExecution
eExpressionEvaluationComplete = _lldb.eExpressionEvaluationComplete
eInstructionControlFlowKindUnknown = _lldb.eInstructionControlFlowKindUnknown
eInstructionControlFlowKindOther = _lldb.eInstructionControlFlowKindOther
eInstructionControlFlowKindCall = _lldb.eInstructionControlFlowKindCall
eInstructionControlFlowKindReturn = _lldb.eInstructionControlFlowKindReturn
eInstructionControlFlowKindJump = _lldb.eInstructionControlFlowKindJump
eInstructionControlFlowKindCondJump = _lldb.eInstructionControlFlowKindCondJump
eInstructionControlFlowKindFarCall = _lldb.eInstructionControlFlowKindFarCall
eInstructionControlFlowKindFarReturn = _lldb.eInstructionControlFlowKindFarReturn
eInstructionControlFlowKindFarJump = _lldb.eInstructionControlFlowKindFarJump
eWatchpointKindWrite = _lldb.eWatchpointKindWrite
eWatchpointKindRead = _lldb.eWatchpointKindRead
eGdbSignalBadAccess = _lldb.eGdbSignalBadAccess
eGdbSignalBadInstruction = _lldb.eGdbSignalBadInstruction
eGdbSignalArithmetic = _lldb.eGdbSignalArithmetic
eGdbSignalEmulation = _lldb.eGdbSignalEmulation
eGdbSignalSoftware = _lldb.eGdbSignalSoftware
eGdbSignalBreakpoint = _lldb.eGdbSignalBreakpoint
ePathTypeLLDBShlibDir = _lldb.ePathTypeLLDBShlibDir
ePathTypeSupportExecutableDir = _lldb.ePathTypeSupportExecutableDir
ePathTypeHeaderDir = _lldb.ePathTypeHeaderDir
ePathTypePythonDir = _lldb.ePathTypePythonDir
ePathTypeLLDBSystemPlugins = _lldb.ePathTypeLLDBSystemPlugins
ePathTypeLLDBUserPlugins = _lldb.ePathTypeLLDBUserPlugins
ePathTypeLLDBTempSystemDir = _lldb.ePathTypeLLDBTempSystemDir
ePathTypeGlobalLLDBTempSystemDir = _lldb.ePathTypeGlobalLLDBTempSystemDir
ePathTypeClangDir = _lldb.ePathTypeClangDir
ePathTypeSwiftDir = _lldb.ePathTypeSwiftDir
eMemberFunctionKindUnknown = _lldb.eMemberFunctionKindUnknown
eMemberFunctionKindConstructor = _lldb.eMemberFunctionKindConstructor
eMemberFunctionKindDestructor = _lldb.eMemberFunctionKindDestructor
eMemberFunctionKindInstanceMethod = _lldb.eMemberFunctionKindInstanceMethod
eMemberFunctionKindStaticMethod = _lldb.eMemberFunctionKindStaticMethod
eMatchTypeNormal = _lldb.eMatchTypeNormal
eMatchTypeRegex = _lldb.eMatchTypeRegex
eMatchTypeStartsWith = _lldb.eMatchTypeStartsWith
eTypeHasChildren = _lldb.eTypeHasChildren
eTypeHasValue = _lldb.eTypeHasValue
eTypeIsArray = _lldb.eTypeIsArray
eTypeIsBlock = _lldb.eTypeIsBlock
eTypeIsBuiltIn = _lldb.eTypeIsBuiltIn
eTypeIsClass = _lldb.eTypeIsClass
eTypeIsCPlusPlus = _lldb.eTypeIsCPlusPlus
eTypeIsEnumeration = _lldb.eTypeIsEnumeration
eTypeIsFuncPrototype = _lldb.eTypeIsFuncPrototype
eTypeIsMember = _lldb.eTypeIsMember
eTypeIsObjC = _lldb.eTypeIsObjC
eTypeIsPointer = _lldb.eTypeIsPointer
eTypeIsReference = _lldb.eTypeIsReference
eTypeIsStructUnion = _lldb.eTypeIsStructUnion
eTypeIsTemplate = _lldb.eTypeIsTemplate
eTypeIsTypedef = _lldb.eTypeIsTypedef
eTypeIsVector = _lldb.eTypeIsVector
eTypeIsScalar = _lldb.eTypeIsScalar
eTypeIsInteger = _lldb.eTypeIsInteger
eTypeIsFloat = _lldb.eTypeIsFloat
eTypeIsComplex = _lldb.eTypeIsComplex
eTypeIsSigned = _lldb.eTypeIsSigned
eTypeInstanceIsPointer = _lldb.eTypeInstanceIsPointer
eTypeIsSwift = _lldb.eTypeIsSwift
eTypeIsGenericTypeParam = _lldb.eTypeIsGenericTypeParam
eTypeIsProtocol = _lldb.eTypeIsProtocol
eTypeIsTuple = _lldb.eTypeIsTuple
eTypeIsMetatype = _lldb.eTypeIsMetatype
eTypeHasUnboundGeneric = _lldb.eTypeHasUnboundGeneric
eTypeHasDynamicSelf = _lldb.eTypeHasDynamicSelf
eTypeIsPack = _lldb.eTypeIsPack
eCommandRequiresTarget = _lldb.eCommandRequiresTarget
eCommandRequiresProcess = _lldb.eCommandRequiresProcess
eCommandRequiresThread = _lldb.eCommandRequiresThread
eCommandRequiresFrame = _lldb.eCommandRequiresFrame
eCommandRequiresRegContext = _lldb.eCommandRequiresRegContext
eCommandTryTargetAPILock = _lldb.eCommandTryTargetAPILock
eCommandProcessMustBeLaunched = _lldb.eCommandProcessMustBeLaunched
eCommandProcessMustBePaused = _lldb.eCommandProcessMustBePaused
eCommandProcessMustBeTraced = _lldb.eCommandProcessMustBeTraced
eTypeSummaryCapped = _lldb.eTypeSummaryCapped
eTypeSummaryUncapped = _lldb.eTypeSummaryUncapped
eCommandInterpreterResultSuccess = _lldb.eCommandInterpreterResultSuccess
eCommandInterpreterResultInferiorCrash = _lldb.eCommandInterpreterResultInferiorCrash
eCommandInterpreterResultCommandError = _lldb.eCommandInterpreterResultCommandError
eCommandInterpreterResultQuitRequested = _lldb.eCommandInterpreterResultQuitRequested
eSaveCoreUnspecified = _lldb.eSaveCoreUnspecified
eSaveCoreFull = _lldb.eSaveCoreFull
eSaveCoreDirtyOnly = _lldb.eSaveCoreDirtyOnly
eSaveCoreStackOnly = _lldb.eSaveCoreStackOnly
eTraceEventDisabledSW = _lldb.eTraceEventDisabledSW
eTraceEventDisabledHW = _lldb.eTraceEventDisabledHW
eTraceEventCPUChanged = _lldb.eTraceEventCPUChanged
eTraceEventHWClockTick = _lldb.eTraceEventHWClockTick
eTraceEventSyncPoint = _lldb.eTraceEventSyncPoint
eTraceItemKindError = _lldb.eTraceItemKindError
eTraceItemKindEvent = _lldb.eTraceItemKindEvent
eTraceItemKindInstruction = _lldb.eTraceItemKindInstruction
eTraceCursorSeekTypeBeginning = _lldb.eTraceCursorSeekTypeBeginning
eTraceCursorSeekTypeCurrent = _lldb.eTraceCursorSeekTypeCurrent
eTraceCursorSeekTypeEnd = _lldb.eTraceCursorSeekTypeEnd
eDWIMPrintVerbosityNone = _lldb.eDWIMPrintVerbosityNone
eDWIMPrintVerbosityExpression = _lldb.eDWIMPrintVerbosityExpression
eDWIMPrintVerbosityFull = _lldb.eDWIMPrintVerbosityFull
eWatchPointValueKindInvalid = _lldb.eWatchPointValueKindInvalid
eWatchPointValueKindVariable = _lldb.eWatchPointValueKindVariable
eWatchPointValueKindExpression = _lldb.eWatchPointValueKindExpression
eNoCompletion = _lldb.eNoCompletion
eSourceFileCompletion = _lldb.eSourceFileCompletion
eDiskFileCompletion = _lldb.eDiskFileCompletion
eDiskDirectoryCompletion = _lldb.eDiskDirectoryCompletion
eSymbolCompletion = _lldb.eSymbolCompletion
eModuleCompletion = _lldb.eModuleCompletion
eSettingsNameCompletion = _lldb.eSettingsNameCompletion
ePlatformPluginCompletion = _lldb.ePlatformPluginCompletion
eArchitectureCompletion = _lldb.eArchitectureCompletion
eVariablePathCompletion = _lldb.eVariablePathCompletion
eRegisterCompletion = _lldb.eRegisterCompletion
eBreakpointCompletion = _lldb.eBreakpointCompletion
eProcessPluginCompletion = _lldb.eProcessPluginCompletion
eDisassemblyFlavorCompletion = _lldb.eDisassemblyFlavorCompletion
eTypeLanguageCompletion = _lldb.eTypeLanguageCompletion
eFrameIndexCompletion = _lldb.eFrameIndexCompletion
eModuleUUIDCompletion = _lldb.eModuleUUIDCompletion
eStopHookIDCompletion = _lldb.eStopHookIDCompletion
eThreadIndexCompletion = _lldb.eThreadIndexCompletion
eWatchpointIDCompletion = _lldb.eWatchpointIDCompletion
eBreakpointNameCompletion = _lldb.eBreakpointNameCompletion
eProcessIDCompletion = _lldb.eProcessIDCompletion
eProcessNameCompletion = _lldb.eProcessNameCompletion
eRemoteDiskFileCompletion = _lldb.eRemoteDiskFileCompletion
eRemoteDiskDirectoryCompletion = _lldb.eRemoteDiskDirectoryCompletion
eTypeCategoryNameCompletion = _lldb.eTypeCategoryNameCompletion
eCustomCompletion = _lldb.eCustomCompletion
eSymbolDownloadOff = _lldb.eSymbolDownloadOff
eSymbolDownloadBackground = _lldb.eSymbolDownloadBackground
eSymbolDownloadForeground = _lldb.eSymbolDownloadForeground
eAddressMaskTypeCode = _lldb.eAddressMaskTypeCode
eAddressMaskTypeData = _lldb.eAddressMaskTypeData
eAddressMaskTypeAny = _lldb.eAddressMaskTypeAny
eAddressMaskTypeAll = _lldb.eAddressMaskTypeAll
eAddressMaskRangeLow = _lldb.eAddressMaskRangeLow
eAddressMaskRangeHigh = _lldb.eAddressMaskRangeHigh
eAddressMaskRangeAny = _lldb.eAddressMaskRangeAny
eAddressMaskRangeAll = _lldb.eAddressMaskRangeAll
ChildCacheState_eRefetch = _lldb.ChildCacheState_eRefetch
ChildCacheState_eReuse = _lldb.ChildCacheState_eReuse
eBroadcastBitProgress = _lldb.eBroadcastBitProgress
eBroadcastBitWarning = _lldb.eBroadcastBitWarning
eBroadcastBitError = _lldb.eBroadcastBitError
eBroadcastSymbolChange = _lldb.eBroadcastSymbolChange
eBroadcastBitProgressCategory = _lldb.eBroadcastBitProgressCategory
eSeverityError = _lldb.eSeverityError
eSeverityWarning = _lldb.eSeverityWarning
eSeverityInfo = _lldb.eSeverityInfo
class SBAddress(object):
r"""
A section + offset based address class.
The SBAddress class allows addresses to be relative to a section
that can move during runtime due to images (executables, shared
libraries, bundles, frameworks) being loaded at different
addresses than the addresses found in the object file that
represents them on disk. There are currently two types of addresses
for a section:
* file addresses
* load addresses
File addresses represents the virtual addresses that are in the 'on
disk' object files. These virtual addresses are converted to be
relative to unique sections scoped to the object file so that
when/if the addresses slide when the images are loaded/unloaded
in memory, we can easily track these changes without having to
update every object (compile unit ranges, line tables, function
address ranges, lexical block and inlined subroutine address
ranges, global and static variables) each time an image is loaded or
unloaded.
Load addresses represents the virtual addresses where each section
ends up getting loaded at runtime. Before executing a program, it
is common for all of the load addresses to be unresolved. When a
DynamicLoader plug-in receives notification that shared libraries
have been loaded/unloaded, the load addresses of the main executable
and any images (shared libraries) will be resolved/unresolved. When
this happens, breakpoints that are in one of these sections can be
set/cleared.
See docstring of SBFunction for example usage of SBAddress.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBAddress self) -> SBAddress
__init__(SBAddress self, SBAddress rhs) -> SBAddress
__init__(SBAddress self, SBSection section, lldb::addr_t offset) -> SBAddress
__init__(SBAddress self, lldb::addr_t load_addr, SBTarget target) -> SBAddress
Create an address by resolving a load address using the supplied target.
"""
_lldb.SBAddress_swiginit(self, _lldb.new_SBAddress(*args))
__swig_destroy__ = _lldb.delete_SBAddress
def __nonzero__(self):
return _lldb.SBAddress___nonzero__(self)
__bool__ = __nonzero__
def __ne__(self, rhs):
r"""__ne__(SBAddress self, SBAddress rhs) -> bool"""
return _lldb.SBAddress___ne__(self, rhs)
def IsValid(self):
r"""IsValid(SBAddress self) -> bool"""
return _lldb.SBAddress_IsValid(self)
def Clear(self):
r"""Clear(SBAddress self)"""
return _lldb.SBAddress_Clear(self)
def GetFileAddress(self):
r"""GetFileAddress(SBAddress self) -> lldb::addr_t"""
return _lldb.SBAddress_GetFileAddress(self)
def GetLoadAddress(self, target):
r"""GetLoadAddress(SBAddress self, SBTarget target) -> lldb::addr_t"""
return _lldb.SBAddress_GetLoadAddress(self, target)
def SetAddress(self, section, offset):
r"""SetAddress(SBAddress self, SBSection section, lldb::addr_t offset)"""
return _lldb.SBAddress_SetAddress(self, section, offset)
def SetLoadAddress(self, load_addr, target):
r"""SetLoadAddress(SBAddress self, lldb::addr_t load_addr, SBTarget target)"""
return _lldb.SBAddress_SetLoadAddress(self, load_addr, target)
def OffsetAddress(self, offset):
r"""OffsetAddress(SBAddress self, lldb::addr_t offset) -> bool"""
return _lldb.SBAddress_OffsetAddress(self, offset)
def GetDescription(self, description):
r"""GetDescription(SBAddress self, SBStream description) -> bool"""
return _lldb.SBAddress_GetDescription(self, description)
def GetSymbolContext(self, resolve_scope):
r"""
GetSymbolContext(SBAddress self, uint32_t resolve_scope) -> SBSymbolContext
GetSymbolContext() and the following can lookup symbol information for a given address.
An address might refer to code or data from an existing module, or it
might refer to something on the stack or heap. The following functions
will only return valid values if the address has been resolved to a code
or data address using :py:class:`SBAddress.SetLoadAddress' or
:py:class:`SBTarget.ResolveLoadAddress`.
"""
return _lldb.SBAddress_GetSymbolContext(self, resolve_scope)
def GetSection(self):
r"""GetSection(SBAddress self) -> SBSection"""
return _lldb.SBAddress_GetSection(self)
def GetOffset(self):
r"""GetOffset(SBAddress self) -> lldb::addr_t"""
return _lldb.SBAddress_GetOffset(self)
def GetModule(self):
r"""
GetModule(SBAddress self) -> SBModule
GetModule() and the following grab individual objects for a given address and
are less efficient if you want more than one symbol related objects.
Use :py:class:`SBAddress.GetSymbolContext` or
:py:class:`SBTarget.ResolveSymbolContextForAddress` when you want multiple
debug symbol related objects for an address.
One or more bits from the SymbolContextItem enumerations can be logically
OR'ed together to more efficiently retrieve multiple symbol objects.
"""
return _lldb.SBAddress_GetModule(self)
def GetCompileUnit(self):
r"""GetCompileUnit(SBAddress self) -> SBCompileUnit"""
return _lldb.SBAddress_GetCompileUnit(self)
def GetFunction(self):
r"""GetFunction(SBAddress self) -> SBFunction"""
return _lldb.SBAddress_GetFunction(self)
def GetBlock(self):
r"""GetBlock(SBAddress self) -> SBBlock"""
return _lldb.SBAddress_GetBlock(self)
def GetSymbol(self):
r"""GetSymbol(SBAddress self) -> SBSymbol"""
return _lldb.SBAddress_GetSymbol(self)
def GetLineEntry(self):
r"""GetLineEntry(SBAddress self) -> SBLineEntry"""
return _lldb.SBAddress_GetLineEntry(self)
def __repr__(self):
r"""__repr__(SBAddress self) -> std::string"""
return _lldb.SBAddress___repr__(self)
def __eq__(self, other):
return not self.__ne__(other)
__runtime_error_str = 'This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.'
def __get_load_addr_property__ (self):
'''Get the load address for a lldb.SBAddress using the current target. This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.'''
if not target:
raise RuntimeError(self.__runtime_error_str)
return self.GetLoadAddress (target)
def __set_load_addr_property__ (self, load_addr):
'''Set the load address for a lldb.SBAddress using the current target. This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.'''
if not target:
raise RuntimeError(self.__runtime_error_str)
return self.SetLoadAddress (load_addr, target)
def __int__(self):
'''Convert an address to a load address if there is a process and that process is alive, or to a file address otherwise. This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.'''
if not process or not target:
raise RuntimeError(self.__runtime_error_str)
if process.is_alive:
return self.GetLoadAddress (target)
return self.GetFileAddress ()
def __oct__(self):
'''Convert the address to an octal string. This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.'''
return '%o' % int(self)
def __hex__(self):
'''Convert the address to an hex string. This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.'''
return '0x%x' % int(self)
module = property(GetModule, None, doc='''A read only property that returns an lldb object that represents the module (lldb.SBModule) that this address resides within.''')
compile_unit = property(GetCompileUnit, None, doc='''A read only property that returns an lldb object that represents the compile unit (lldb.SBCompileUnit) that this address resides within.''')
line_entry = property(GetLineEntry, None, doc='''A read only property that returns an lldb object that represents the line entry (lldb.SBLineEntry) that this address resides within.''')
function = property(GetFunction, None, doc='''A read only property that returns an lldb object that represents the function (lldb.SBFunction) that this address resides within.''')
block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the block (lldb.SBBlock) that this address resides within.''')
symbol = property(GetSymbol, None, doc='''A read only property that returns an lldb object that represents the symbol (lldb.SBSymbol) that this address resides within.''')
offset = property(GetOffset, None, doc='''A read only property that returns the section offset in bytes as an integer.''')
section = property(GetSection, None, doc='''A read only property that returns an lldb object that represents the section (lldb.SBSection) that this address resides within.''')
file_addr = property(GetFileAddress, None, doc='''A read only property that returns file address for the section as an integer. This is the address that represents the address as it is found in the object file that defines it.''')
load_addr = property(__get_load_addr_property__, __set_load_addr_property__, doc='''A read/write property that gets/sets the SBAddress using load address. This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.''')
# Register SBAddress in _lldb:
_lldb.SBAddress_swigregister(SBAddress)
class SBAttachInfo(object):
r"""Describes how to attach when calling :py:class:`SBTarget.Attach`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBAttachInfo self) -> SBAttachInfo
__init__(SBAttachInfo self, lldb::pid_t pid) -> SBAttachInfo
__init__(SBAttachInfo self, char const * path, bool wait_for) -> SBAttachInfo
__init__(SBAttachInfo self, char const * path, bool wait_for, bool _async) -> SBAttachInfo
__init__(SBAttachInfo self, SBAttachInfo rhs) -> SBAttachInfo
"""
_lldb.SBAttachInfo_swiginit(self, _lldb.new_SBAttachInfo(*args))
__swig_destroy__ = _lldb.delete_SBAttachInfo
def GetProcessID(self):
r"""GetProcessID(SBAttachInfo self) -> lldb::pid_t"""
return _lldb.SBAttachInfo_GetProcessID(self)
def SetProcessID(self, pid):
r"""SetProcessID(SBAttachInfo self, lldb::pid_t pid)"""
return _lldb.SBAttachInfo_SetProcessID(self, pid)
def SetExecutable(self, *args):
r"""
SetExecutable(SBAttachInfo self, char const * path)
SetExecutable(SBAttachInfo self, SBFileSpec exe_file)
"""
return _lldb.SBAttachInfo_SetExecutable(self, *args)
def GetWaitForLaunch(self):
r"""GetWaitForLaunch(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_GetWaitForLaunch(self)
def SetWaitForLaunch(self, *args):
r"""
SetWaitForLaunch(SBAttachInfo self, bool b)
SetWaitForLaunch(SBAttachInfo self, bool b, bool _async)
"""
return _lldb.SBAttachInfo_SetWaitForLaunch(self, *args)
def GetIgnoreExisting(self):
r"""GetIgnoreExisting(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_GetIgnoreExisting(self)
def SetIgnoreExisting(self, b):
r"""SetIgnoreExisting(SBAttachInfo self, bool b)"""
return _lldb.SBAttachInfo_SetIgnoreExisting(self, b)
def GetResumeCount(self):
r"""GetResumeCount(SBAttachInfo self) -> uint32_t"""
return _lldb.SBAttachInfo_GetResumeCount(self)
def SetResumeCount(self, c):
r"""SetResumeCount(SBAttachInfo self, uint32_t c)"""
return _lldb.SBAttachInfo_SetResumeCount(self, c)
def GetProcessPluginName(self):
r"""GetProcessPluginName(SBAttachInfo self) -> char const *"""
return _lldb.SBAttachInfo_GetProcessPluginName(self)
def SetProcessPluginName(self, plugin_name):
r"""SetProcessPluginName(SBAttachInfo self, char const * plugin_name)"""
return _lldb.SBAttachInfo_SetProcessPluginName(self, plugin_name)
def GetUserID(self):
r"""GetUserID(SBAttachInfo self) -> uint32_t"""
return _lldb.SBAttachInfo_GetUserID(self)
def GetGroupID(self):
r"""GetGroupID(SBAttachInfo self) -> uint32_t"""
return _lldb.SBAttachInfo_GetGroupID(self)
def UserIDIsValid(self):
r"""UserIDIsValid(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_UserIDIsValid(self)
def GroupIDIsValid(self):
r"""GroupIDIsValid(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_GroupIDIsValid(self)
def SetUserID(self, uid):
r"""SetUserID(SBAttachInfo self, uint32_t uid)"""
return _lldb.SBAttachInfo_SetUserID(self, uid)
def SetGroupID(self, gid):
r"""SetGroupID(SBAttachInfo self, uint32_t gid)"""
return _lldb.SBAttachInfo_SetGroupID(self, gid)
def GetEffectiveUserID(self):
r"""GetEffectiveUserID(SBAttachInfo self) -> uint32_t"""
return _lldb.SBAttachInfo_GetEffectiveUserID(self)
def GetEffectiveGroupID(self):
r"""GetEffectiveGroupID(SBAttachInfo self) -> uint32_t"""
return _lldb.SBAttachInfo_GetEffectiveGroupID(self)
def EffectiveUserIDIsValid(self):
r"""EffectiveUserIDIsValid(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_EffectiveUserIDIsValid(self)
def EffectiveGroupIDIsValid(self):
r"""EffectiveGroupIDIsValid(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_EffectiveGroupIDIsValid(self)
def SetEffectiveUserID(self, uid):
r"""SetEffectiveUserID(SBAttachInfo self, uint32_t uid)"""
return _lldb.SBAttachInfo_SetEffectiveUserID(self, uid)
def SetEffectiveGroupID(self, gid):
r"""SetEffectiveGroupID(SBAttachInfo self, uint32_t gid)"""
return _lldb.SBAttachInfo_SetEffectiveGroupID(self, gid)
def GetParentProcessID(self):
r"""GetParentProcessID(SBAttachInfo self) -> lldb::pid_t"""
return _lldb.SBAttachInfo_GetParentProcessID(self)
def SetParentProcessID(self, pid):
r"""SetParentProcessID(SBAttachInfo self, lldb::pid_t pid)"""
return _lldb.SBAttachInfo_SetParentProcessID(self, pid)
def ParentProcessIDIsValid(self):
r"""ParentProcessIDIsValid(SBAttachInfo self) -> bool"""
return _lldb.SBAttachInfo_ParentProcessIDIsValid(self)
def GetListener(self):
r"""GetListener(SBAttachInfo self) -> SBListener"""
return _lldb.SBAttachInfo_GetListener(self)
def SetListener(self, listener):
r"""SetListener(SBAttachInfo self, SBListener listener)"""
return _lldb.SBAttachInfo_SetListener(self, listener)
def GetShadowListener(self):
r"""GetShadowListener(SBAttachInfo self) -> SBListener"""
return _lldb.SBAttachInfo_GetShadowListener(self)
def SetShadowListener(self, listener):
r"""SetShadowListener(SBAttachInfo self, SBListener listener)"""
return _lldb.SBAttachInfo_SetShadowListener(self, listener)
def GetScriptedProcessClassName(self):
r"""GetScriptedProcessClassName(SBAttachInfo self) -> char const *"""
return _lldb.SBAttachInfo_GetScriptedProcessClassName(self)
def SetScriptedProcessClassName(self, class_name):
r"""SetScriptedProcessClassName(SBAttachInfo self, char const * class_name)"""
return _lldb.SBAttachInfo_SetScriptedProcessClassName(self, class_name)
def GetScriptedProcessDictionary(self):
r"""GetScriptedProcessDictionary(SBAttachInfo self) -> SBStructuredData"""
return _lldb.SBAttachInfo_GetScriptedProcessDictionary(self)
def SetScriptedProcessDictionary(self, dict):
r"""SetScriptedProcessDictionary(SBAttachInfo self, SBStructuredData dict)"""
return _lldb.SBAttachInfo_SetScriptedProcessDictionary(self, dict)
# Register SBAttachInfo in _lldb:
_lldb.SBAttachInfo_swigregister(SBAttachInfo)
class SBBlock(object):
r"""Represents a lexical block. SBFunction contains SBBlock(s)."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBBlock self) -> SBBlock
__init__(SBBlock self, SBBlock rhs) -> SBBlock
"""
_lldb.SBBlock_swiginit(self, _lldb.new_SBBlock(*args))
__swig_destroy__ = _lldb.delete_SBBlock
def IsInlined(self):
r"""
IsInlined(SBBlock self) -> bool
Is this block contained within an inlined function?
"""
return _lldb.SBBlock_IsInlined(self)
def __nonzero__(self):
return _lldb.SBBlock___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBBlock self) -> bool"""
return _lldb.SBBlock_IsValid(self)
def GetInlinedName(self):
r"""
GetInlinedName(SBBlock self) -> char const *
Get the function name if this block represents an inlined function;
otherwise, return None.
"""
return _lldb.SBBlock_GetInlinedName(self)
def GetInlinedCallSiteFile(self):
r"""
GetInlinedCallSiteFile(SBBlock self) -> SBFileSpec
Get the call site file if this block represents an inlined function;
otherwise, return an invalid file spec.
"""
return _lldb.SBBlock_GetInlinedCallSiteFile(self)
def GetInlinedCallSiteLine(self):
r"""
GetInlinedCallSiteLine(SBBlock self) -> uint32_t
Get the call site line if this block represents an inlined function;
otherwise, return 0.
"""
return _lldb.SBBlock_GetInlinedCallSiteLine(self)
def GetInlinedCallSiteColumn(self):
r"""
GetInlinedCallSiteColumn(SBBlock self) -> uint32_t
Get the call site column if this block represents an inlined function;
otherwise, return 0.
"""
return _lldb.SBBlock_GetInlinedCallSiteColumn(self)
def GetParent(self):
r"""
GetParent(SBBlock self) -> SBBlock
Get the parent block.
"""
return _lldb.SBBlock_GetParent(self)
def GetSibling(self):
r"""
GetSibling(SBBlock self) -> SBBlock
Get the sibling block for this block.
"""
return _lldb.SBBlock_GetSibling(self)
def GetFirstChild(self):
r"""
GetFirstChild(SBBlock self) -> SBBlock
Get the first child block.
"""
return _lldb.SBBlock_GetFirstChild(self)
def GetNumRanges(self):
r"""GetNumRanges(SBBlock self) -> uint32_t"""
return _lldb.SBBlock_GetNumRanges(self)
def GetRangeStartAddress(self, idx):
r"""GetRangeStartAddress(SBBlock self, uint32_t idx) -> SBAddress"""
return _lldb.SBBlock_GetRangeStartAddress(self, idx)
def GetRangeEndAddress(self, idx):
r"""GetRangeEndAddress(SBBlock self, uint32_t idx) -> SBAddress"""
return _lldb.SBBlock_GetRangeEndAddress(self, idx)
def GetRangeIndexForBlockAddress(self, block_addr):
r"""GetRangeIndexForBlockAddress(SBBlock self, SBAddress block_addr) -> uint32_t"""
return _lldb.SBBlock_GetRangeIndexForBlockAddress(self, block_addr)
def GetVariables(self, *args):
r"""
GetVariables(SBBlock self, SBFrame frame, bool arguments, bool locals, bool statics, lldb::DynamicValueType use_dynamic) -> SBValueList
GetVariables(SBBlock self, SBTarget target, bool arguments, bool locals, bool statics) -> SBValueList
"""
return _lldb.SBBlock_GetVariables(self, *args)
def GetContainingInlinedBlock(self):
r"""
GetContainingInlinedBlock(SBBlock self) -> SBBlock
Get the inlined block that is or contains this block.
"""
return _lldb.SBBlock_GetContainingInlinedBlock(self)
def GetDescription(self, description):
r"""GetDescription(SBBlock self, SBStream description) -> bool"""
return _lldb.SBBlock_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBBlock self) -> std::string"""
return _lldb.SBBlock___repr__(self)
def get_range_at_index(self, idx):
if idx < self.GetNumRanges():
return [self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)]
return []
class ranges_access(object):
'''A helper object that will lazily hand out an array of lldb.SBAddress that represent address ranges for a block.'''
def __init__(self, sbblock):
self.sbblock = sbblock
def __len__(self):
if self.sbblock:
return int(self.sbblock.GetNumRanges())
return 0
def __getitem__(self, key):
count = len(self)
if type(key) is int:
return self.sbblock.get_range_at_index (key);
if isinstance(key, SBAddress):
range_idx = self.sbblock.GetRangeIndexForBlockAddress(key);
if range_idx < len(self):
return [self.sbblock.GetRangeStartAddress(range_idx), self.sbblock.GetRangeEndAddress(range_idx)]
else:
print("error: unsupported item type: %s" % type(key))
return None
def get_ranges_access_object(self):
'''An accessor function that returns a ranges_access() object which allows lazy block address ranges access.'''
return self.ranges_access (self)
def get_ranges_array(self):
'''An accessor function that returns an array object that contains all ranges in this block object.'''
if not hasattr(self, 'ranges_array'):
self.ranges_array = []
for idx in range(self.num_ranges):
self.ranges_array.append ([self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)])
return self.ranges_array
def get_call_site(self):
return declaration(self.GetInlinedCallSiteFile(), self.GetInlinedCallSiteLine(), self.GetInlinedCallSiteColumn())
parent = property(GetParent, None, doc='''A read only property that returns the same result as GetParent().''')
first_child = property(GetFirstChild, None, doc='''A read only property that returns the same result as GetFirstChild().''')
call_site = property(get_call_site, None, doc='''A read only property that returns a lldb.declaration object that contains the inlined call site file, line and column.''')
sibling = property(GetSibling, None, doc='''A read only property that returns the same result as GetSibling().''')
name = property(GetInlinedName, None, doc='''A read only property that returns the same result as GetInlinedName().''')
inlined_block = property(GetContainingInlinedBlock, None, doc='''A read only property that returns the same result as GetContainingInlinedBlock().''')
range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''')
ranges = property(get_ranges_array, None, doc='''A read only property that returns a list() object that contains all of the address ranges for the block.''')
num_ranges = property(GetNumRanges, None, doc='''A read only property that returns the same result as GetNumRanges().''')
# Register SBBlock in _lldb:
_lldb.SBBlock_swigregister(SBBlock)
class SBBreakpoint(object):
r"""
Represents a logical breakpoint and its associated settings.
For example (from test/functionalities/breakpoint/breakpoint_ignore_count/
TestBreakpointIgnoreCount.py),::
def breakpoint_ignore_count_python(self):
'''Use Python APIs to set breakpoint ignore count.'''
exe = os.path.join(os.getcwd(), 'a.out')
# Create a target by the debugger.
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
# Get the breakpoint location from breakpoint after we verified that,
# indeed, it has one location.
location = breakpoint.GetLocationAtIndex(0)
self.assertTrue(location and
location.IsEnabled(),
VALID_BREAKPOINT_LOCATION)
# Set the ignore count on the breakpoint location.
location.SetIgnoreCount(2)
self.assertTrue(location.GetIgnoreCount() == 2,
'SetIgnoreCount() works correctly')
# Now launch the process, and do not stop at entry point.
process = target.LaunchSimple(None, None, os.getcwd())
self.assertTrue(process, PROCESS_IS_VALID)
# Frame#0 should be on main.c:37, frame#1 should be on main.c:25, and
# frame#2 should be on main.c:48.
#lldbutil.print_stacktraces(process)
from lldbutil import get_stopped_thread
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
self.assertTrue(thread != None, 'There should be a thread stopped due to breakpoint')
frame0 = thread.GetFrameAtIndex(0)
frame1 = thread.GetFrameAtIndex(1)
frame2 = thread.GetFrameAtIndex(2)
self.assertTrue(frame0.GetLineEntry().GetLine() == self.line1 and
frame1.GetLineEntry().GetLine() == self.line3 and
frame2.GetLineEntry().GetLine() == self.line4,
STOPPED_DUE_TO_BREAKPOINT_IGNORE_COUNT)
# The hit count for the breakpoint should be 3.
self.assertTrue(breakpoint.GetHitCount() == 3)
process.Continue()
SBBreakpoint supports breakpoint location iteration, for example,::
for bl in breakpoint:
print('breakpoint location load addr: %s' % hex(bl.GetLoadAddress()))
print('breakpoint location condition: %s' % hex(bl.GetCondition()))
and rich comparison methods which allow the API program to use,::
if aBreakpoint == bBreakpoint:
...
to compare two breakpoints for equality.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBBreakpoint self) -> SBBreakpoint
__init__(SBBreakpoint self, SBBreakpoint rhs) -> SBBreakpoint
"""
_lldb.SBBreakpoint_swiginit(self, _lldb.new_SBBreakpoint(*args))
__swig_destroy__ = _lldb.delete_SBBreakpoint
def __eq__(self, rhs):
r"""__eq__(SBBreakpoint self, SBBreakpoint rhs) -> bool"""
return _lldb.SBBreakpoint___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBBreakpoint self, SBBreakpoint rhs) -> bool"""
return _lldb.SBBreakpoint___ne__(self, rhs)
def GetID(self):
r"""GetID(SBBreakpoint self) -> lldb::break_id_t"""
return _lldb.SBBreakpoint_GetID(self)
def __nonzero__(self):
return _lldb.SBBreakpoint___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBBreakpoint self) -> bool"""
return _lldb.SBBreakpoint_IsValid(self)
def ClearAllBreakpointSites(self):
r"""ClearAllBreakpointSites(SBBreakpoint self)"""
return _lldb.SBBreakpoint_ClearAllBreakpointSites(self)
def GetTarget(self):
r"""GetTarget(SBBreakpoint self) -> SBTarget"""
return _lldb.SBBreakpoint_GetTarget(self)
def FindLocationByAddress(self, vm_addr):
r"""FindLocationByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> SBBreakpointLocation"""
return _lldb.SBBreakpoint_FindLocationByAddress(self, vm_addr)
def FindLocationIDByAddress(self, vm_addr):
r"""FindLocationIDByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> lldb::break_id_t"""
return _lldb.SBBreakpoint_FindLocationIDByAddress(self, vm_addr)
def FindLocationByID(self, bp_loc_id):
r"""FindLocationByID(SBBreakpoint self, lldb::break_id_t bp_loc_id) -> SBBreakpointLocation"""
return _lldb.SBBreakpoint_FindLocationByID(self, bp_loc_id)
def GetLocationAtIndex(self, index):
r"""GetLocationAtIndex(SBBreakpoint self, uint32_t index) -> SBBreakpointLocation"""
return _lldb.SBBreakpoint_GetLocationAtIndex(self, index)
def SetEnabled(self, enable):
r"""SetEnabled(SBBreakpoint self, bool enable)"""
return _lldb.SBBreakpoint_SetEnabled(self, enable)
def IsEnabled(self):
r"""IsEnabled(SBBreakpoint self) -> bool"""
return _lldb.SBBreakpoint_IsEnabled(self)
def SetOneShot(self, one_shot):
r"""SetOneShot(SBBreakpoint self, bool one_shot)"""
return _lldb.SBBreakpoint_SetOneShot(self, one_shot)
def IsOneShot(self):
r"""IsOneShot(SBBreakpoint self) -> bool"""
return _lldb.SBBreakpoint_IsOneShot(self)
def IsInternal(self):
r"""IsInternal(SBBreakpoint self) -> bool"""
return _lldb.SBBreakpoint_IsInternal(self)
def GetHitCount(self):
r"""GetHitCount(SBBreakpoint self) -> uint32_t"""
return _lldb.SBBreakpoint_GetHitCount(self)
def SetIgnoreCount(self, count):
r"""SetIgnoreCount(SBBreakpoint self, uint32_t count)"""
return _lldb.SBBreakpoint_SetIgnoreCount(self, count)
def GetIgnoreCount(self):
r"""GetIgnoreCount(SBBreakpoint self) -> uint32_t"""
return _lldb.SBBreakpoint_GetIgnoreCount(self)
def SetCondition(self, condition):
r"""
SetCondition(SBBreakpoint self, char const * condition)
The breakpoint stops only if the condition expression evaluates to true.
"""
return _lldb.SBBreakpoint_SetCondition(self, condition)
def GetCondition(self):
r"""
GetCondition(SBBreakpoint self) -> char const *
Get the condition expression for the breakpoint.
"""
return _lldb.SBBreakpoint_GetCondition(self)
def SetAutoContinue(self, auto_continue):
r"""SetAutoContinue(SBBreakpoint self, bool auto_continue)"""
return _lldb.SBBreakpoint_SetAutoContinue(self, auto_continue)
def GetAutoContinue(self):
r"""GetAutoContinue(SBBreakpoint self) -> bool"""
return _lldb.SBBreakpoint_GetAutoContinue(self)
def SetThreadID(self, sb_thread_id):
r"""SetThreadID(SBBreakpoint self, lldb::tid_t sb_thread_id)"""
return _lldb.SBBreakpoint_SetThreadID(self, sb_thread_id)
def GetThreadID(self):
r"""GetThreadID(SBBreakpoint self) -> lldb::tid_t"""
return _lldb.SBBreakpoint_GetThreadID(self)
def SetThreadIndex(self, index):
r"""SetThreadIndex(SBBreakpoint self, uint32_t index)"""
return _lldb.SBBreakpoint_SetThreadIndex(self, index)
def GetThreadIndex(self):
r"""GetThreadIndex(SBBreakpoint self) -> uint32_t"""
return _lldb.SBBreakpoint_GetThreadIndex(self)
def SetThreadName(self, thread_name):
r"""SetThreadName(SBBreakpoint self, char const * thread_name)"""
return _lldb.SBBreakpoint_SetThreadName(self, thread_name)
def GetThreadName(self):
r"""GetThreadName(SBBreakpoint self) -> char const *"""
return _lldb.SBBreakpoint_GetThreadName(self)
def SetQueueName(self, queue_name):
r"""SetQueueName(SBBreakpoint self, char const * queue_name)"""
return _lldb.SBBreakpoint_SetQueueName(self, queue_name)
def GetQueueName(self):
r"""GetQueueName(SBBreakpoint self) -> char const *"""
return _lldb.SBBreakpoint_GetQueueName(self)
def SetScriptCallbackFunction(self, *args):
r"""
SetScriptCallbackFunction(SBBreakpoint self, char const * callback_function_name)
SetScriptCallbackFunction(SBBreakpoint self, char const * callback_function_name, SBStructuredData extra_args) -> SBError
Set the name of the script function to be called when the breakpoint is hit.
To use this variant, the function should take (frame, bp_loc, extra_args, internal_dict) and
when the breakpoint is hit the extra_args will be passed to the callback function.
"""
return _lldb.SBBreakpoint_SetScriptCallbackFunction(self, *args)
def SetCommandLineCommands(self, commands):
r"""SetCommandLineCommands(SBBreakpoint self, SBStringList commands)"""
return _lldb.SBBreakpoint_SetCommandLineCommands(self, commands)
def GetCommandLineCommands(self, commands):
r"""GetCommandLineCommands(SBBreakpoint self, SBStringList commands) -> bool"""
return _lldb.SBBreakpoint_GetCommandLineCommands(self, commands)
def SetScriptCallbackBody(self, script_body_text):
r"""
SetScriptCallbackBody(SBBreakpoint self, char const * script_body_text) -> SBError
Provide the body for the script function to be called when the breakpoint is hit.
The body will be wrapped in a function, which be passed two arguments:
'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint
'bpno' - which is the SBBreakpointLocation to which the callback was attached.
The error parameter is currently ignored, but will at some point hold the Python
compilation diagnostics.
Returns true if the body compiles successfully, false if not.
"""
return _lldb.SBBreakpoint_SetScriptCallbackBody(self, script_body_text)
def AddName(self, new_name):
r"""AddName(SBBreakpoint self, char const * new_name) -> bool"""
return _lldb.SBBreakpoint_AddName(self, new_name)
def AddNameWithErrorHandling(self, new_name):
r"""AddNameWithErrorHandling(SBBreakpoint self, char const * new_name) -> SBError"""
return _lldb.SBBreakpoint_AddNameWithErrorHandling(self, new_name)
def RemoveName(self, name_to_remove):
r"""RemoveName(SBBreakpoint self, char const * name_to_remove)"""
return _lldb.SBBreakpoint_RemoveName(self, name_to_remove)
def MatchesName(self, name):
r"""MatchesName(SBBreakpoint self, char const * name) -> bool"""
return _lldb.SBBreakpoint_MatchesName(self, name)
def GetNames(self, names):
r"""GetNames(SBBreakpoint self, SBStringList names)"""
return _lldb.SBBreakpoint_GetNames(self, names)
def GetNumResolvedLocations(self):
r"""GetNumResolvedLocations(SBBreakpoint self) -> size_t"""
return _lldb.SBBreakpoint_GetNumResolvedLocations(self)
def GetNumLocations(self):
r"""GetNumLocations(SBBreakpoint self) -> size_t"""
return _lldb.SBBreakpoint_GetNumLocations(self)
def GetDescription(self, *args):
r"""
GetDescription(SBBreakpoint self, SBStream description) -> bool
GetDescription(SBBreakpoint self, SBStream description, bool include_locations) -> bool
"""
return _lldb.SBBreakpoint_GetDescription(self, *args)
@staticmethod
def EventIsBreakpointEvent(event):
r"""EventIsBreakpointEvent(SBEvent event) -> bool"""
return _lldb.SBBreakpoint_EventIsBreakpointEvent(event)
@staticmethod
def GetBreakpointEventTypeFromEvent(event):
r"""GetBreakpointEventTypeFromEvent(SBEvent event) -> lldb::BreakpointEventType"""
return _lldb.SBBreakpoint_GetBreakpointEventTypeFromEvent(event)
@staticmethod
def GetBreakpointFromEvent(event):
r"""GetBreakpointFromEvent(SBEvent event) -> SBBreakpoint"""
return _lldb.SBBreakpoint_GetBreakpointFromEvent(event)
@staticmethod
def GetBreakpointLocationAtIndexFromEvent(event, loc_idx):
r"""GetBreakpointLocationAtIndexFromEvent(SBEvent event, uint32_t loc_idx) -> SBBreakpointLocation"""
return _lldb.SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(event, loc_idx)
@staticmethod
def GetNumBreakpointLocationsFromEvent(event_sp):
r"""GetNumBreakpointLocationsFromEvent(SBEvent event_sp) -> uint32_t"""
return _lldb.SBBreakpoint_GetNumBreakpointLocationsFromEvent(event_sp)
def IsHardware(self):
r"""IsHardware(SBBreakpoint self) -> bool"""
return _lldb.SBBreakpoint_IsHardware(self)
def AddLocation(self, address):
r"""AddLocation(SBBreakpoint self, SBAddress address) -> SBError"""
return _lldb.SBBreakpoint_AddLocation(self, address)
def SerializeToStructuredData(self):
r"""SerializeToStructuredData(SBBreakpoint self) -> SBStructuredData"""
return _lldb.SBBreakpoint_SerializeToStructuredData(self)
def __repr__(self):
r"""__repr__(SBBreakpoint self) -> std::string"""
return _lldb.SBBreakpoint___repr__(self)
class locations_access(object):
'''A helper object that will lazily hand out locations for a breakpoint when supplied an index.'''
def __init__(self, sbbreakpoint):
self.sbbreakpoint = sbbreakpoint
def __len__(self):
if self.sbbreakpoint:
return int(self.sbbreakpoint.GetNumLocations())
return 0
def __getitem__(self, key):
if isinstance(key, int):
count = len(self)
if -count <= key < count:
key %= count
return self.sbbreakpoint.GetLocationAtIndex(key)
return None
def get_locations_access_object(self):
'''An accessor function that returns a locations_access() object which allows lazy location access from a lldb.SBBreakpoint object.'''
return self.locations_access (self)
def get_breakpoint_location_list(self):
'''An accessor function that returns a list() that contains all locations in a lldb.SBBreakpoint object.'''
locations = []
accessor = self.get_locations_access_object()
for idx in range(len(accessor)):
locations.append(accessor[idx])
return locations
def __iter__(self):
'''Iterate over all breakpoint locations in a lldb.SBBreakpoint
object.'''
return lldb_iter(self, 'GetNumLocations', 'GetLocationAtIndex')
def __len__(self):
'''Return the number of breakpoint locations in a lldb.SBBreakpoint
object.'''
return self.GetNumLocations()
locations = property(get_breakpoint_location_list, None, doc='''A read only property that returns a list() of lldb.SBBreakpointLocation objects for this breakpoint.''')
location = property(get_locations_access_object, None, doc='''A read only property that returns an object that can access locations by index (not location ID) (location = bkpt.location[12]).''')
id = property(GetID, None, doc='''A read only property that returns the ID of this breakpoint.''')
enabled = property(IsEnabled, SetEnabled, doc='''A read/write property that configures whether this breakpoint is enabled or not.''')
one_shot = property(IsOneShot, SetOneShot, doc='''A read/write property that configures whether this breakpoint is one-shot (deleted when hit) or not.''')
num_locations = property(GetNumLocations, None, doc='''A read only property that returns the count of locations of this breakpoint.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBBreakpoint in _lldb:
_lldb.SBBreakpoint_swigregister(SBBreakpoint)
class SBBreakpointList(object):
r"""Represents a list of :py:class:`SBBreakpoint`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, target):
r"""__init__(SBBreakpointList self, SBTarget target) -> SBBreakpointList"""
_lldb.SBBreakpointList_swiginit(self, _lldb.new_SBBreakpointList(target))
__swig_destroy__ = _lldb.delete_SBBreakpointList
def GetSize(self):
r"""GetSize(SBBreakpointList self) -> size_t"""
return _lldb.SBBreakpointList_GetSize(self)
def GetBreakpointAtIndex(self, idx):
r"""GetBreakpointAtIndex(SBBreakpointList self, size_t idx) -> SBBreakpoint"""
return _lldb.SBBreakpointList_GetBreakpointAtIndex(self, idx)
def FindBreakpointByID(self, arg2):
r"""FindBreakpointByID(SBBreakpointList self, lldb::break_id_t arg2) -> SBBreakpoint"""
return _lldb.SBBreakpointList_FindBreakpointByID(self, arg2)
def Append(self, sb_bkpt):
r"""Append(SBBreakpointList self, SBBreakpoint sb_bkpt)"""
return _lldb.SBBreakpointList_Append(self, sb_bkpt)
def AppendIfUnique(self, sb_bkpt):
r"""AppendIfUnique(SBBreakpointList self, SBBreakpoint sb_bkpt) -> bool"""
return _lldb.SBBreakpointList_AppendIfUnique(self, sb_bkpt)
def AppendByID(self, id):
r"""AppendByID(SBBreakpointList self, lldb::break_id_t id)"""
return _lldb.SBBreakpointList_AppendByID(self, id)
def Clear(self):
r"""Clear(SBBreakpointList self)"""
return _lldb.SBBreakpointList_Clear(self)
# Register SBBreakpointList in _lldb:
_lldb.SBBreakpointList_swigregister(SBBreakpointList)
class SBBreakpointLocation(object):
r"""
Represents one unique instance (by address) of a logical breakpoint.
A breakpoint location is defined by the breakpoint that produces it,
and the address that resulted in this particular instantiation.
Each breakpoint location has its settable options.
:py:class:`SBBreakpoint` contains SBBreakpointLocation(s). See docstring of SBBreakpoint
for retrieval of an SBBreakpointLocation from an SBBreakpoint.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBBreakpointLocation self) -> SBBreakpointLocation
__init__(SBBreakpointLocation self, SBBreakpointLocation rhs) -> SBBreakpointLocation
"""
_lldb.SBBreakpointLocation_swiginit(self, _lldb.new_SBBreakpointLocation(*args))
__swig_destroy__ = _lldb.delete_SBBreakpointLocation
def GetID(self):
r"""GetID(SBBreakpointLocation self) -> lldb::break_id_t"""
return _lldb.SBBreakpointLocation_GetID(self)
def __nonzero__(self):
return _lldb.SBBreakpointLocation___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBBreakpointLocation self) -> bool"""
return _lldb.SBBreakpointLocation_IsValid(self)
def GetAddress(self):
r"""GetAddress(SBBreakpointLocation self) -> SBAddress"""
return _lldb.SBBreakpointLocation_GetAddress(self)
def GetLoadAddress(self):
r"""GetLoadAddress(SBBreakpointLocation self) -> lldb::addr_t"""
return _lldb.SBBreakpointLocation_GetLoadAddress(self)
def SetEnabled(self, enabled):
r"""SetEnabled(SBBreakpointLocation self, bool enabled)"""
return _lldb.SBBreakpointLocation_SetEnabled(self, enabled)
def IsEnabled(self):
r"""IsEnabled(SBBreakpointLocation self) -> bool"""
return _lldb.SBBreakpointLocation_IsEnabled(self)
def GetHitCount(self):
r"""GetHitCount(SBBreakpointLocation self) -> uint32_t"""
return _lldb.SBBreakpointLocation_GetHitCount(self)
def GetIgnoreCount(self):
r"""GetIgnoreCount(SBBreakpointLocation self) -> uint32_t"""
return _lldb.SBBreakpointLocation_GetIgnoreCount(self)
def SetIgnoreCount(self, n):
r"""SetIgnoreCount(SBBreakpointLocation self, uint32_t n)"""
return _lldb.SBBreakpointLocation_SetIgnoreCount(self, n)
def SetCondition(self, condition):
r"""
SetCondition(SBBreakpointLocation self, char const * condition)
The breakpoint location stops only if the condition expression evaluates
to true.
"""
return _lldb.SBBreakpointLocation_SetCondition(self, condition)
def GetCondition(self):
r"""
GetCondition(SBBreakpointLocation self) -> char const *
Get the condition expression for the breakpoint location.
"""
return _lldb.SBBreakpointLocation_GetCondition(self)
def SetAutoContinue(self, auto_continue):
r"""SetAutoContinue(SBBreakpointLocation self, bool auto_continue)"""
return _lldb.SBBreakpointLocation_SetAutoContinue(self, auto_continue)
def GetAutoContinue(self):
r"""GetAutoContinue(SBBreakpointLocation self) -> bool"""
return _lldb.SBBreakpointLocation_GetAutoContinue(self)
def SetScriptCallbackFunction(self, *args):
r"""
SetScriptCallbackFunction(SBBreakpointLocation self, char const * callback_function_name)
SetScriptCallbackFunction(SBBreakpointLocation self, char const * callback_function_name, SBStructuredData extra_args) -> SBError
Set the name of the script function to be called when the breakpoint is hit.
To use this variant, the function should take (frame, bp_loc, extra_args, internal_dict) and
when the breakpoint is hit the extra_args will be passed to the callback function.
"""
return _lldb.SBBreakpointLocation_SetScriptCallbackFunction(self, *args)
def SetScriptCallbackBody(self, script_body_text):
r"""
SetScriptCallbackBody(SBBreakpointLocation self, char const * script_body_text) -> SBError
Provide the body for the script function to be called when the breakpoint location is hit.
The body will be wrapped in a function, which be passed two arguments:
'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint
'bpno' - which is the SBBreakpointLocation to which the callback was attached.
The error parameter is currently ignored, but will at some point hold the Python
compilation diagnostics.
Returns true if the body compiles successfully, false if not.
"""
return _lldb.SBBreakpointLocation_SetScriptCallbackBody(self, script_body_text)
def SetCommandLineCommands(self, commands):
r"""SetCommandLineCommands(SBBreakpointLocation self, SBStringList commands)"""
return _lldb.SBBreakpointLocation_SetCommandLineCommands(self, commands)
def GetCommandLineCommands(self, commands):
r"""GetCommandLineCommands(SBBreakpointLocation self, SBStringList commands) -> bool"""
return _lldb.SBBreakpointLocation_GetCommandLineCommands(self, commands)
def SetThreadID(self, sb_thread_id):
r"""SetThreadID(SBBreakpointLocation self, lldb::tid_t sb_thread_id)"""
return _lldb.SBBreakpointLocation_SetThreadID(self, sb_thread_id)
def GetThreadID(self):
r"""GetThreadID(SBBreakpointLocation self) -> lldb::tid_t"""
return _lldb.SBBreakpointLocation_GetThreadID(self)
def SetThreadIndex(self, index):
r"""SetThreadIndex(SBBreakpointLocation self, uint32_t index)"""
return _lldb.SBBreakpointLocation_SetThreadIndex(self, index)
def GetThreadIndex(self):
r"""GetThreadIndex(SBBreakpointLocation self) -> uint32_t"""
return _lldb.SBBreakpointLocation_GetThreadIndex(self)
def SetThreadName(self, thread_name):
r"""SetThreadName(SBBreakpointLocation self, char const * thread_name)"""
return _lldb.SBBreakpointLocation_SetThreadName(self, thread_name)
def GetThreadName(self):
r"""GetThreadName(SBBreakpointLocation self) -> char const *"""
return _lldb.SBBreakpointLocation_GetThreadName(self)
def SetQueueName(self, queue_name):
r"""SetQueueName(SBBreakpointLocation self, char const * queue_name)"""
return _lldb.SBBreakpointLocation_SetQueueName(self, queue_name)
def GetQueueName(self):
r"""GetQueueName(SBBreakpointLocation self) -> char const *"""
return _lldb.SBBreakpointLocation_GetQueueName(self)
def IsResolved(self):
r"""IsResolved(SBBreakpointLocation self) -> bool"""
return _lldb.SBBreakpointLocation_IsResolved(self)
def GetDescription(self, description, level):
r"""GetDescription(SBBreakpointLocation self, SBStream description, lldb::DescriptionLevel level) -> bool"""
return _lldb.SBBreakpointLocation_GetDescription(self, description, level)
def GetBreakpoint(self):
r"""GetBreakpoint(SBBreakpointLocation self) -> SBBreakpoint"""
return _lldb.SBBreakpointLocation_GetBreakpoint(self)
def __repr__(self):
r"""__repr__(SBBreakpointLocation self) -> std::string"""
return _lldb.SBBreakpointLocation___repr__(self)
# Register SBBreakpointLocation in _lldb:
_lldb.SBBreakpointLocation_swigregister(SBBreakpointLocation)
class SBBreakpointName(object):
r"""
Represents a breakpoint name registered in a given :py:class:`SBTarget`.
Breakpoint names provide a way to act on groups of breakpoints. When you add a
name to a group of breakpoints, you can then use the name in all the command
line lldb commands for that name. You can also configure the SBBreakpointName
options and those options will be propagated to any :py:class:`SBBreakpoint` s currently
using that name. Adding a name to a breakpoint will also apply any of the
set options to that breakpoint.
You can also set permissions on a breakpoint name to disable listing, deleting
and disabling breakpoints. That will disallow the given operation for breakpoints
except when the breakpoint is mentioned by ID. So for instance deleting all the
breakpoints won't delete breakpoints so marked.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBBreakpointName self) -> SBBreakpointName
__init__(SBBreakpointName self, SBTarget target, char const * name) -> SBBreakpointName
__init__(SBBreakpointName self, SBBreakpoint bkpt, char const * name) -> SBBreakpointName
__init__(SBBreakpointName self, SBBreakpointName rhs) -> SBBreakpointName
"""
_lldb.SBBreakpointName_swiginit(self, _lldb.new_SBBreakpointName(*args))
__swig_destroy__ = _lldb.delete_SBBreakpointName
def __eq__(self, rhs):
r"""__eq__(SBBreakpointName self, SBBreakpointName rhs) -> bool"""
return _lldb.SBBreakpointName___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBBreakpointName self, SBBreakpointName rhs) -> bool"""
return _lldb.SBBreakpointName___ne__(self, rhs)
def __nonzero__(self):
return _lldb.SBBreakpointName___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_IsValid(self)
def GetName(self):
r"""GetName(SBBreakpointName self) -> char const *"""
return _lldb.SBBreakpointName_GetName(self)
def SetEnabled(self, enable):
r"""SetEnabled(SBBreakpointName self, bool enable)"""
return _lldb.SBBreakpointName_SetEnabled(self, enable)
def IsEnabled(self):
r"""IsEnabled(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_IsEnabled(self)
def SetOneShot(self, one_shot):
r"""SetOneShot(SBBreakpointName self, bool one_shot)"""
return _lldb.SBBreakpointName_SetOneShot(self, one_shot)
def IsOneShot(self):
r"""IsOneShot(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_IsOneShot(self)
def SetIgnoreCount(self, count):
r"""SetIgnoreCount(SBBreakpointName self, uint32_t count)"""
return _lldb.SBBreakpointName_SetIgnoreCount(self, count)
def GetIgnoreCount(self):
r"""GetIgnoreCount(SBBreakpointName self) -> uint32_t"""
return _lldb.SBBreakpointName_GetIgnoreCount(self)
def SetCondition(self, condition):
r"""SetCondition(SBBreakpointName self, char const * condition)"""
return _lldb.SBBreakpointName_SetCondition(self, condition)
def GetCondition(self):
r"""GetCondition(SBBreakpointName self) -> char const *"""
return _lldb.SBBreakpointName_GetCondition(self)
def SetAutoContinue(self, auto_continue):
r"""SetAutoContinue(SBBreakpointName self, bool auto_continue)"""
return _lldb.SBBreakpointName_SetAutoContinue(self, auto_continue)
def GetAutoContinue(self):
r"""GetAutoContinue(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_GetAutoContinue(self)
def SetThreadID(self, sb_thread_id):
r"""SetThreadID(SBBreakpointName self, lldb::tid_t sb_thread_id)"""
return _lldb.SBBreakpointName_SetThreadID(self, sb_thread_id)
def GetThreadID(self):
r"""GetThreadID(SBBreakpointName self) -> lldb::tid_t"""
return _lldb.SBBreakpointName_GetThreadID(self)
def SetThreadIndex(self, index):
r"""SetThreadIndex(SBBreakpointName self, uint32_t index)"""
return _lldb.SBBreakpointName_SetThreadIndex(self, index)
def GetThreadIndex(self):
r"""GetThreadIndex(SBBreakpointName self) -> uint32_t"""
return _lldb.SBBreakpointName_GetThreadIndex(self)
def SetThreadName(self, thread_name):
r"""SetThreadName(SBBreakpointName self, char const * thread_name)"""
return _lldb.SBBreakpointName_SetThreadName(self, thread_name)
def GetThreadName(self):
r"""GetThreadName(SBBreakpointName self) -> char const *"""
return _lldb.SBBreakpointName_GetThreadName(self)
def SetQueueName(self, queue_name):
r"""SetQueueName(SBBreakpointName self, char const * queue_name)"""
return _lldb.SBBreakpointName_SetQueueName(self, queue_name)
def GetQueueName(self):
r"""GetQueueName(SBBreakpointName self) -> char const *"""
return _lldb.SBBreakpointName_GetQueueName(self)
def SetScriptCallbackFunction(self, *args):
r"""
SetScriptCallbackFunction(SBBreakpointName self, char const * callback_function_name)
SetScriptCallbackFunction(SBBreakpointName self, char const * callback_function_name, SBStructuredData extra_args) -> SBError
"""
return _lldb.SBBreakpointName_SetScriptCallbackFunction(self, *args)
def SetCommandLineCommands(self, commands):
r"""SetCommandLineCommands(SBBreakpointName self, SBStringList commands)"""
return _lldb.SBBreakpointName_SetCommandLineCommands(self, commands)
def GetCommandLineCommands(self, commands):
r"""GetCommandLineCommands(SBBreakpointName self, SBStringList commands) -> bool"""
return _lldb.SBBreakpointName_GetCommandLineCommands(self, commands)
def SetScriptCallbackBody(self, script_body_text):
r"""SetScriptCallbackBody(SBBreakpointName self, char const * script_body_text) -> SBError"""
return _lldb.SBBreakpointName_SetScriptCallbackBody(self, script_body_text)
def GetHelpString(self):
r"""GetHelpString(SBBreakpointName self) -> char const *"""
return _lldb.SBBreakpointName_GetHelpString(self)
def SetHelpString(self, help_string):
r"""SetHelpString(SBBreakpointName self, char const * help_string)"""
return _lldb.SBBreakpointName_SetHelpString(self, help_string)
def GetAllowList(self):
r"""GetAllowList(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_GetAllowList(self)
def SetAllowList(self, value):
r"""SetAllowList(SBBreakpointName self, bool value)"""
return _lldb.SBBreakpointName_SetAllowList(self, value)
def GetAllowDelete(self):
r"""GetAllowDelete(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_GetAllowDelete(self)
def SetAllowDelete(self, value):
r"""SetAllowDelete(SBBreakpointName self, bool value)"""
return _lldb.SBBreakpointName_SetAllowDelete(self, value)
def GetAllowDisable(self):
r"""GetAllowDisable(SBBreakpointName self) -> bool"""
return _lldb.SBBreakpointName_GetAllowDisable(self)
def SetAllowDisable(self, value):
r"""SetAllowDisable(SBBreakpointName self, bool value)"""
return _lldb.SBBreakpointName_SetAllowDisable(self, value)
def GetDescription(self, description):
r"""GetDescription(SBBreakpointName self, SBStream description) -> bool"""
return _lldb.SBBreakpointName_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBBreakpointName self) -> std::string"""
return _lldb.SBBreakpointName___repr__(self)
# Register SBBreakpointName in _lldb:
_lldb.SBBreakpointName_swigregister(SBBreakpointName)
class SBBroadcaster(object):
r"""
Represents an entity which can broadcast events.
A default broadcaster is
associated with an SBCommandInterpreter, SBProcess, and SBTarget. For
example, use ::
broadcaster = process.GetBroadcaster()
to retrieve the process's broadcaster.
See also SBEvent for example usage of interacting with a broadcaster.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBBroadcaster self) -> SBBroadcaster
__init__(SBBroadcaster self, char const * name) -> SBBroadcaster
__init__(SBBroadcaster self, SBBroadcaster rhs) -> SBBroadcaster
"""
_lldb.SBBroadcaster_swiginit(self, _lldb.new_SBBroadcaster(*args))
__swig_destroy__ = _lldb.delete_SBBroadcaster
def __nonzero__(self):
return _lldb.SBBroadcaster___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBBroadcaster self) -> bool"""
return _lldb.SBBroadcaster_IsValid(self)
def Clear(self):
r"""Clear(SBBroadcaster self)"""
return _lldb.SBBroadcaster_Clear(self)
def BroadcastEventByType(self, event_type, unique=False):
r"""BroadcastEventByType(SBBroadcaster self, uint32_t event_type, bool unique=False)"""
return _lldb.SBBroadcaster_BroadcastEventByType(self, event_type, unique)
def BroadcastEvent(self, event, unique=False):
r"""BroadcastEvent(SBBroadcaster self, SBEvent event, bool unique=False)"""
return _lldb.SBBroadcaster_BroadcastEvent(self, event, unique)
def AddInitialEventsToListener(self, listener, requested_events):
r"""AddInitialEventsToListener(SBBroadcaster self, SBListener listener, uint32_t requested_events)"""
return _lldb.SBBroadcaster_AddInitialEventsToListener(self, listener, requested_events)
def AddListener(self, listener, event_mask):
r"""AddListener(SBBroadcaster self, SBListener listener, uint32_t event_mask) -> uint32_t"""
return _lldb.SBBroadcaster_AddListener(self, listener, event_mask)
def GetName(self):
r"""GetName(SBBroadcaster self) -> char const *"""
return _lldb.SBBroadcaster_GetName(self)
def EventTypeHasListeners(self, event_type):
r"""EventTypeHasListeners(SBBroadcaster self, uint32_t event_type) -> bool"""
return _lldb.SBBroadcaster_EventTypeHasListeners(self, event_type)
def RemoveListener(self, *args):
r"""RemoveListener(SBBroadcaster self, SBListener listener, uint32_t event_mask=4294967295U) -> bool"""
return _lldb.SBBroadcaster_RemoveListener(self, *args)
def __eq__(self, rhs):
r"""__eq__(SBBroadcaster self, SBBroadcaster rhs) -> bool"""
return _lldb.SBBroadcaster___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBBroadcaster self, SBBroadcaster rhs) -> bool"""
return _lldb.SBBroadcaster___ne__(self, rhs)
def __lt__(self, rhs):
r"""__lt__(SBBroadcaster self, SBBroadcaster rhs) -> bool"""
return _lldb.SBBroadcaster___lt__(self, rhs)
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBBroadcaster in _lldb:
_lldb.SBBroadcaster_swigregister(SBBroadcaster)
class SBCommandInterpreter(object):
r"""
SBCommandInterpreter handles/interprets commands for lldb.
You get the command interpreter from the :py:class:`SBDebugger` instance.
For example (from test/ python_api/interpreter/TestCommandInterpreterAPI.py),::
def command_interpreter_api(self):
'''Test the SBCommandInterpreter APIs.'''
exe = os.path.join(os.getcwd(), 'a.out')
# Create a target by the debugger.
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
# Retrieve the associated command interpreter from our debugger.
ci = self.dbg.GetCommandInterpreter()
self.assertTrue(ci, VALID_COMMAND_INTERPRETER)
# Exercise some APIs....
self.assertTrue(ci.HasCommands())
self.assertTrue(ci.HasAliases())
self.assertTrue(ci.HasAliasOptions())
self.assertTrue(ci.CommandExists('breakpoint'))
self.assertTrue(ci.CommandExists('target'))
self.assertTrue(ci.CommandExists('platform'))
self.assertTrue(ci.AliasExists('file'))
self.assertTrue(ci.AliasExists('run'))
self.assertTrue(ci.AliasExists('bt'))
res = lldb.SBCommandReturnObject()
ci.HandleCommand('breakpoint set -f main.c -l %d' % self.line, res)
self.assertTrue(res.Succeeded())
ci.HandleCommand('process launch', res)
self.assertTrue(res.Succeeded())
process = ci.GetProcess()
self.assertTrue(process)
...
The HandleCommand() instance method takes two args: the command string and
an SBCommandReturnObject instance which encapsulates the result of command
execution.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
eBroadcastBitThreadShouldExit = _lldb.SBCommandInterpreter_eBroadcastBitThreadShouldExit
eBroadcastBitResetPrompt = _lldb.SBCommandInterpreter_eBroadcastBitResetPrompt
eBroadcastBitQuitCommandReceived = _lldb.SBCommandInterpreter_eBroadcastBitQuitCommandReceived
eBroadcastBitAsynchronousOutputData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousOutputData
eBroadcastBitAsynchronousErrorData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousErrorData
def __init__(self, *args):
r"""
__init__(SBCommandInterpreter self) -> SBCommandInterpreter
__init__(SBCommandInterpreter self, SBCommandInterpreter rhs) -> SBCommandInterpreter
"""
_lldb.SBCommandInterpreter_swiginit(self, _lldb.new_SBCommandInterpreter(*args))
__swig_destroy__ = _lldb.delete_SBCommandInterpreter
@staticmethod
def GetArgumentTypeAsCString(arg_type):
r"""GetArgumentTypeAsCString(lldb::CommandArgumentType const arg_type) -> char const *"""
return _lldb.SBCommandInterpreter_GetArgumentTypeAsCString(arg_type)
@staticmethod
def GetArgumentDescriptionAsCString(arg_type):
r"""GetArgumentDescriptionAsCString(lldb::CommandArgumentType const arg_type) -> char const *"""
return _lldb.SBCommandInterpreter_GetArgumentDescriptionAsCString(arg_type)
@staticmethod
def EventIsCommandInterpreterEvent(event):
r"""EventIsCommandInterpreterEvent(SBEvent event) -> bool"""
return _lldb.SBCommandInterpreter_EventIsCommandInterpreterEvent(event)
def __nonzero__(self):
return _lldb.SBCommandInterpreter___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_IsValid(self)
def CommandExists(self, cmd):
r"""CommandExists(SBCommandInterpreter self, char const * cmd) -> bool"""
return _lldb.SBCommandInterpreter_CommandExists(self, cmd)
def UserCommandExists(self, cmd):
r"""UserCommandExists(SBCommandInterpreter self, char const * cmd) -> bool"""
return _lldb.SBCommandInterpreter_UserCommandExists(self, cmd)
def AliasExists(self, cmd):
r"""AliasExists(SBCommandInterpreter self, char const * cmd) -> bool"""
return _lldb.SBCommandInterpreter_AliasExists(self, cmd)
def GetBroadcaster(self):
r"""GetBroadcaster(SBCommandInterpreter self) -> SBBroadcaster"""
return _lldb.SBCommandInterpreter_GetBroadcaster(self)
@staticmethod
def GetBroadcasterClass():
r"""GetBroadcasterClass() -> char const *"""
return _lldb.SBCommandInterpreter_GetBroadcasterClass()
def HasCommands(self):
r"""HasCommands(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_HasCommands(self)
def HasAliases(self):
r"""HasAliases(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_HasAliases(self)
def HasAliasOptions(self):
r"""HasAliasOptions(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_HasAliasOptions(self)
def IsInteractive(self):
r"""IsInteractive(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_IsInteractive(self)
def GetProcess(self):
r"""GetProcess(SBCommandInterpreter self) -> SBProcess"""
return _lldb.SBCommandInterpreter_GetProcess(self)
def GetDebugger(self):
r"""GetDebugger(SBCommandInterpreter self) -> SBDebugger"""
return _lldb.SBCommandInterpreter_GetDebugger(self)
def SourceInitFileInHomeDirectory(self, *args):
r"""
SourceInitFileInHomeDirectory(SBCommandInterpreter self, SBCommandReturnObject result)
SourceInitFileInHomeDirectory(SBCommandInterpreter self, SBCommandReturnObject result, bool is_repl)
"""
return _lldb.SBCommandInterpreter_SourceInitFileInHomeDirectory(self, *args)
def SourceInitFileInCurrentWorkingDirectory(self, result):
r"""SourceInitFileInCurrentWorkingDirectory(SBCommandInterpreter self, SBCommandReturnObject result)"""
return _lldb.SBCommandInterpreter_SourceInitFileInCurrentWorkingDirectory(self, result)
def HandleCommand(self, *args):
r"""
HandleCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result, bool add_to_history=False) -> lldb::ReturnStatus
HandleCommand(SBCommandInterpreter self, char const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result, bool add_to_history=False) -> lldb::ReturnStatus
"""
return _lldb.SBCommandInterpreter_HandleCommand(self, *args)
def HandleCommandsFromFile(self, file, override_context, options, result):
r"""HandleCommandsFromFile(SBCommandInterpreter self, SBFileSpec file, SBExecutionContext override_context, SBCommandInterpreterRunOptions options, SBCommandReturnObject result)"""
return _lldb.SBCommandInterpreter_HandleCommandsFromFile(self, file, override_context, options, result)
def HandleCompletion(self, current_line, cursor_pos, match_start_point, max_return_elements, matches):
r"""HandleCompletion(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, SBStringList matches) -> int"""
return _lldb.SBCommandInterpreter_HandleCompletion(self, current_line, cursor_pos, match_start_point, max_return_elements, matches)
def HandleCompletionWithDescriptions(self, current_line, cursor_pos, match_start_point, max_return_elements, matches, descriptions):
r"""HandleCompletionWithDescriptions(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, SBStringList matches, SBStringList descriptions) -> int"""
return _lldb.SBCommandInterpreter_HandleCompletionWithDescriptions(self, current_line, cursor_pos, match_start_point, max_return_elements, matches, descriptions)
def WasInterrupted(self):
r"""WasInterrupted(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_WasInterrupted(self)
def InterruptCommand(self):
r"""InterruptCommand(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_InterruptCommand(self)
def SetCommandOverrideCallback(self, command_name, callback):
r"""SetCommandOverrideCallback(SBCommandInterpreter self, char const * command_name, lldb::CommandOverrideCallback callback) -> bool"""
return _lldb.SBCommandInterpreter_SetCommandOverrideCallback(self, command_name, callback)
def IsActive(self):
r"""IsActive(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_IsActive(self)
def GetIOHandlerControlSequence(self, ch):
r"""GetIOHandlerControlSequence(SBCommandInterpreter self, char ch) -> char const *"""
return _lldb.SBCommandInterpreter_GetIOHandlerControlSequence(self, ch)
def GetPromptOnQuit(self):
r"""GetPromptOnQuit(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_GetPromptOnQuit(self)
def SetPromptOnQuit(self, b):
r"""SetPromptOnQuit(SBCommandInterpreter self, bool b)"""
return _lldb.SBCommandInterpreter_SetPromptOnQuit(self, b)
def AllowExitCodeOnQuit(self, allow):
r"""AllowExitCodeOnQuit(SBCommandInterpreter self, bool allow)"""
return _lldb.SBCommandInterpreter_AllowExitCodeOnQuit(self, allow)
def HasCustomQuitExitCode(self):
r"""HasCustomQuitExitCode(SBCommandInterpreter self) -> bool"""
return _lldb.SBCommandInterpreter_HasCustomQuitExitCode(self)
def GetQuitStatus(self):
r"""GetQuitStatus(SBCommandInterpreter self) -> int"""
return _lldb.SBCommandInterpreter_GetQuitStatus(self)
def ResolveCommand(self, command_line, result):
r"""ResolveCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result)"""
return _lldb.SBCommandInterpreter_ResolveCommand(self, command_line, result)
# Register SBCommandInterpreter in _lldb:
_lldb.SBCommandInterpreter_swigregister(SBCommandInterpreter)
class SBCommandInterpreterRunOptions(object):
r"""
SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed.
A default SBCommandInterpreterRunOptions object has:
* StopOnContinue: false
* StopOnError: false
* StopOnCrash: false
* EchoCommands: true
* PrintResults: true
* PrintErrors: true
* AddToHistory: true
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBCommandInterpreterRunOptions self) -> SBCommandInterpreterRunOptions
__init__(SBCommandInterpreterRunOptions self, SBCommandInterpreterRunOptions rhs) -> SBCommandInterpreterRunOptions
"""
_lldb.SBCommandInterpreterRunOptions_swiginit(self, _lldb.new_SBCommandInterpreterRunOptions(*args))
__swig_destroy__ = _lldb.delete_SBCommandInterpreterRunOptions
def GetStopOnContinue(self):
r"""GetStopOnContinue(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetStopOnContinue(self)
def SetStopOnContinue(self, arg2):
r"""SetStopOnContinue(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetStopOnContinue(self, arg2)
def GetStopOnError(self):
r"""GetStopOnError(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetStopOnError(self)
def SetStopOnError(self, arg2):
r"""SetStopOnError(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetStopOnError(self, arg2)
def GetStopOnCrash(self):
r"""GetStopOnCrash(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetStopOnCrash(self)
def SetStopOnCrash(self, arg2):
r"""SetStopOnCrash(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetStopOnCrash(self, arg2)
def GetEchoCommands(self):
r"""GetEchoCommands(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetEchoCommands(self)
def SetEchoCommands(self, arg2):
r"""SetEchoCommands(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetEchoCommands(self, arg2)
def GetEchoCommentCommands(self):
r"""GetEchoCommentCommands(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetEchoCommentCommands(self)
def SetEchoCommentCommands(self, echo):
r"""SetEchoCommentCommands(SBCommandInterpreterRunOptions self, bool echo)"""
return _lldb.SBCommandInterpreterRunOptions_SetEchoCommentCommands(self, echo)
def GetPrintResults(self):
r"""GetPrintResults(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetPrintResults(self)
def SetPrintResults(self, arg2):
r"""SetPrintResults(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetPrintResults(self, arg2)
def GetPrintErrors(self):
r"""GetPrintErrors(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetPrintErrors(self)
def SetPrintErrors(self, arg2):
r"""SetPrintErrors(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetPrintErrors(self, arg2)
def GetAddToHistory(self):
r"""GetAddToHistory(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetAddToHistory(self)
def SetAddToHistory(self, arg2):
r"""SetAddToHistory(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetAddToHistory(self, arg2)
def GetAutoHandleEvents(self):
r"""GetAutoHandleEvents(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetAutoHandleEvents(self)
def SetAutoHandleEvents(self, arg2):
r"""SetAutoHandleEvents(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetAutoHandleEvents(self, arg2)
def GetSpawnThread(self):
r"""GetSpawnThread(SBCommandInterpreterRunOptions self) -> bool"""
return _lldb.SBCommandInterpreterRunOptions_GetSpawnThread(self)
def SetSpawnThread(self, arg2):
r"""SetSpawnThread(SBCommandInterpreterRunOptions self, bool arg2)"""
return _lldb.SBCommandInterpreterRunOptions_SetSpawnThread(self, arg2)
# Register SBCommandInterpreterRunOptions in _lldb:
_lldb.SBCommandInterpreterRunOptions_swigregister(SBCommandInterpreterRunOptions)
class SBCommandReturnObject(object):
r"""
Represents a container which holds the result from command execution.
It works with :py:class:`SBCommandInterpreter.HandleCommand()` to encapsulate the result
of command execution.
See :py:class:`SBCommandInterpreter` for example usage of SBCommandReturnObject.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBCommandReturnObject self) -> SBCommandReturnObject
__init__(SBCommandReturnObject self, SBCommandReturnObject rhs) -> SBCommandReturnObject
"""
_lldb.SBCommandReturnObject_swiginit(self, _lldb.new_SBCommandReturnObject(*args))
__swig_destroy__ = _lldb.delete_SBCommandReturnObject
def __nonzero__(self):
return _lldb.SBCommandReturnObject___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBCommandReturnObject self) -> bool"""
return _lldb.SBCommandReturnObject_IsValid(self)
def PutOutput(self, *args):
r"""
PutOutput(SBCommandReturnObject self, SBFile file) -> size_t
PutOutput(SBCommandReturnObject self, lldb::FileSP BORROWED) -> size_t
"""
return _lldb.SBCommandReturnObject_PutOutput(self, *args)
def GetOutputSize(self):
r"""GetOutputSize(SBCommandReturnObject self) -> size_t"""
return _lldb.SBCommandReturnObject_GetOutputSize(self)
def GetErrorSize(self):
r"""GetErrorSize(SBCommandReturnObject self) -> size_t"""
return _lldb.SBCommandReturnObject_GetErrorSize(self)
def PutError(self, *args):
r"""
PutError(SBCommandReturnObject self, SBFile file) -> size_t
PutError(SBCommandReturnObject self, lldb::FileSP BORROWED) -> size_t
"""
return _lldb.SBCommandReturnObject_PutError(self, *args)
def Clear(self):
r"""Clear(SBCommandReturnObject self)"""
return _lldb.SBCommandReturnObject_Clear(self)
def GetStatus(self):
r"""GetStatus(SBCommandReturnObject self) -> lldb::ReturnStatus"""
return _lldb.SBCommandReturnObject_GetStatus(self)
def SetStatus(self, status):
r"""SetStatus(SBCommandReturnObject self, lldb::ReturnStatus status)"""
return _lldb.SBCommandReturnObject_SetStatus(self, status)
def Succeeded(self):
r"""Succeeded(SBCommandReturnObject self) -> bool"""
return _lldb.SBCommandReturnObject_Succeeded(self)
def HasResult(self):
r"""HasResult(SBCommandReturnObject self) -> bool"""
return _lldb.SBCommandReturnObject_HasResult(self)
def AppendMessage(self, message):
r"""AppendMessage(SBCommandReturnObject self, char const * message)"""
return _lldb.SBCommandReturnObject_AppendMessage(self, message)
def AppendWarning(self, message):
r"""AppendWarning(SBCommandReturnObject self, char const * message)"""
return _lldb.SBCommandReturnObject_AppendWarning(self, message)
def GetDescription(self, description):
r"""GetDescription(SBCommandReturnObject self, SBStream description) -> bool"""
return _lldb.SBCommandReturnObject_GetDescription(self, description)
def PutCString(self, string):
r"""PutCString(SBCommandReturnObject self, char const * string)"""
return _lldb.SBCommandReturnObject_PutCString(self, string)
def GetOutput(self, *args):
r"""
GetOutput(SBCommandReturnObject self) -> char const
GetOutput(SBCommandReturnObject self, bool only_if_no_immediate) -> char const *
"""
return _lldb.SBCommandReturnObject_GetOutput(self, *args)
def GetError(self, *args):
r"""
GetError(SBCommandReturnObject self) -> char const
GetError(SBCommandReturnObject self, bool only_if_no_immediate) -> char const *
"""
return _lldb.SBCommandReturnObject_GetError(self, *args)
def SetError(self, *args):
r"""
SetError(SBCommandReturnObject self, SBError error, char const * fallback_error_cstr=None)
SetError(SBCommandReturnObject self, char const * error_cstr)
"""
return _lldb.SBCommandReturnObject_SetError(self, *args)
def __repr__(self):
r"""__repr__(SBCommandReturnObject self) -> std::string"""
return _lldb.SBCommandReturnObject___repr__(self)
def SetImmediateOutputFile(self, *args):
r"""
SetImmediateOutputFile(SBCommandReturnObject self, SBFile file)
SetImmediateOutputFile(SBCommandReturnObject self, lldb::FileSP BORROWED)
SetImmediateOutputFile(SBCommandReturnObject self, lldb::FileSP BORROWED, bool transfer_ownership)
"""
return _lldb.SBCommandReturnObject_SetImmediateOutputFile(self, *args)
def SetImmediateErrorFile(self, *args):
r"""
SetImmediateErrorFile(SBCommandReturnObject self, SBFile file)
SetImmediateErrorFile(SBCommandReturnObject self, lldb::FileSP BORROWED)
SetImmediateErrorFile(SBCommandReturnObject self, lldb::FileSP BORROWED, bool transfer_ownership)
"""
return _lldb.SBCommandReturnObject_SetImmediateErrorFile(self, *args)
def Print(self, str):
r"""Print(SBCommandReturnObject self, char const * str)"""
return _lldb.SBCommandReturnObject_Print(self, str)
def write(self, str):
r"""write(SBCommandReturnObject self, char const * str)"""
return _lldb.SBCommandReturnObject_write(self, str)
def flush(self):
r"""flush(SBCommandReturnObject self)"""
return _lldb.SBCommandReturnObject_flush(self)
# Register SBCommandReturnObject in _lldb:
_lldb.SBCommandReturnObject_swigregister(SBCommandReturnObject)
class SBCommunication(object):
r"""Allows sending/receiving data."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
eBroadcastBitDisconnected = _lldb.SBCommunication_eBroadcastBitDisconnected
eBroadcastBitReadThreadGotBytes = _lldb.SBCommunication_eBroadcastBitReadThreadGotBytes
eBroadcastBitReadThreadDidExit = _lldb.SBCommunication_eBroadcastBitReadThreadDidExit
eBroadcastBitReadThreadShouldExit = _lldb.SBCommunication_eBroadcastBitReadThreadShouldExit
eBroadcastBitPacketAvailable = _lldb.SBCommunication_eBroadcastBitPacketAvailable
eAllEventBits = _lldb.SBCommunication_eAllEventBits
def __init__(self, *args):
r"""
__init__(SBCommunication self) -> SBCommunication
__init__(SBCommunication self, char const * broadcaster_name) -> SBCommunication
"""
_lldb.SBCommunication_swiginit(self, _lldb.new_SBCommunication(*args))
__swig_destroy__ = _lldb.delete_SBCommunication
def __nonzero__(self):
return _lldb.SBCommunication___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBCommunication self) -> bool"""
return _lldb.SBCommunication_IsValid(self)
def GetBroadcaster(self):
r"""GetBroadcaster(SBCommunication self) -> SBBroadcaster"""
return _lldb.SBCommunication_GetBroadcaster(self)
@staticmethod
def GetBroadcasterClass():
r"""GetBroadcasterClass() -> char const *"""
return _lldb.SBCommunication_GetBroadcasterClass()
def AdoptFileDesriptor(self, fd, owns_fd):
r"""AdoptFileDesriptor(SBCommunication self, int fd, bool owns_fd) -> lldb::ConnectionStatus"""
return _lldb.SBCommunication_AdoptFileDesriptor(self, fd, owns_fd)
def Connect(self, url):
r"""Connect(SBCommunication self, char const * url) -> lldb::ConnectionStatus"""
return _lldb.SBCommunication_Connect(self, url)
def Disconnect(self):
r"""Disconnect(SBCommunication self) -> lldb::ConnectionStatus"""
return _lldb.SBCommunication_Disconnect(self)
def IsConnected(self):
r"""IsConnected(SBCommunication self) -> bool"""
return _lldb.SBCommunication_IsConnected(self)
def GetCloseOnEOF(self):
r"""GetCloseOnEOF(SBCommunication self) -> bool"""
return _lldb.SBCommunication_GetCloseOnEOF(self)
def SetCloseOnEOF(self, b):
r"""SetCloseOnEOF(SBCommunication self, bool b)"""
return _lldb.SBCommunication_SetCloseOnEOF(self, b)
def Read(self, dst, dst_len, timeout_usec, status):
r"""Read(SBCommunication self, void * dst, size_t dst_len, uint32_t timeout_usec, lldb::ConnectionStatus & status) -> size_t"""
return _lldb.SBCommunication_Read(self, dst, dst_len, timeout_usec, status)
def Write(self, src, src_len, status):
r"""Write(SBCommunication self, void const * src, size_t src_len, lldb::ConnectionStatus & status) -> size_t"""
return _lldb.SBCommunication_Write(self, src, src_len, status)
def ReadThreadStart(self):
r"""ReadThreadStart(SBCommunication self) -> bool"""
return _lldb.SBCommunication_ReadThreadStart(self)
def ReadThreadStop(self):
r"""ReadThreadStop(SBCommunication self) -> bool"""
return _lldb.SBCommunication_ReadThreadStop(self)
def ReadThreadIsRunning(self):
r"""ReadThreadIsRunning(SBCommunication self) -> bool"""
return _lldb.SBCommunication_ReadThreadIsRunning(self)
def SetReadThreadBytesReceivedCallback(self, callback, callback_baton):
r"""SetReadThreadBytesReceivedCallback(SBCommunication self, lldb::SBCommunication::ReadThreadBytesReceived callback, void * callback_baton) -> bool"""
return _lldb.SBCommunication_SetReadThreadBytesReceivedCallback(self, callback, callback_baton)
# Register SBCommunication in _lldb:
_lldb.SBCommunication_swigregister(SBCommunication)
class SBCompileUnit(object):
r"""
Represents a compilation unit, or compiled source file.
SBCompileUnit supports line entry iteration. For example,::
# Now get the SBSymbolContext from this frame. We want everything. :-)
context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
...
compileUnit = context.GetCompileUnit()
for lineEntry in compileUnit:
print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
lineEntry.GetLine()))
print('start addr: %s' % str(lineEntry.GetStartAddress()))
print('end addr: %s' % str(lineEntry.GetEndAddress()))
produces: ::
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20
start addr: a.out[0x100000d98]
end addr: a.out[0x100000da3]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21
start addr: a.out[0x100000da3]
end addr: a.out[0x100000da9]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22
start addr: a.out[0x100000da9]
end addr: a.out[0x100000db6]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23
start addr: a.out[0x100000db6]
end addr: a.out[0x100000dbc]
...
See also :py:class:`SBSymbolContext` and :py:class:`SBLineEntry`
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBCompileUnit self) -> SBCompileUnit
__init__(SBCompileUnit self, SBCompileUnit rhs) -> SBCompileUnit
"""
_lldb.SBCompileUnit_swiginit(self, _lldb.new_SBCompileUnit(*args))
__swig_destroy__ = _lldb.delete_SBCompileUnit
def __nonzero__(self):
return _lldb.SBCompileUnit___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBCompileUnit self) -> bool"""
return _lldb.SBCompileUnit_IsValid(self)
def GetFileSpec(self):
r"""GetFileSpec(SBCompileUnit self) -> SBFileSpec"""
return _lldb.SBCompileUnit_GetFileSpec(self)
def GetNumLineEntries(self):
r"""GetNumLineEntries(SBCompileUnit self) -> uint32_t"""
return _lldb.SBCompileUnit_GetNumLineEntries(self)
def GetLineEntryAtIndex(self, idx):
r"""GetLineEntryAtIndex(SBCompileUnit self, uint32_t idx) -> SBLineEntry"""
return _lldb.SBCompileUnit_GetLineEntryAtIndex(self, idx)
def FindLineEntryIndex(self, *args):
r"""
FindLineEntryIndex(SBCompileUnit self, SBLineEntry line_entry, bool exact=False) -> uint32_t
FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec) -> uint32_t
FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec, bool exact) -> uint32_t
Get the index for a provided line entry in this compile unit.
@param[in] line_entry
The SBLineEntry object for which we are looking for the index.
@param[in] exact
An optional boolean defaulting to false that ensures that the provided
line entry has a perfect match in the compile unit.
@return
The index of the user-provided line entry. UINT32_MAX if the line entry
was not found in the compile unit.
"""
return _lldb.SBCompileUnit_FindLineEntryIndex(self, *args)
def GetSupportFileAtIndex(self, idx):
r"""GetSupportFileAtIndex(SBCompileUnit self, uint32_t idx) -> SBFileSpec"""
return _lldb.SBCompileUnit_GetSupportFileAtIndex(self, idx)
def GetNumSupportFiles(self):
r"""GetNumSupportFiles(SBCompileUnit self) -> uint32_t"""
return _lldb.SBCompileUnit_GetNumSupportFiles(self)
def FindSupportFileIndex(self, start_idx, sb_file, full):
r"""FindSupportFileIndex(SBCompileUnit self, uint32_t start_idx, SBFileSpec sb_file, bool full) -> uint32_t"""
return _lldb.SBCompileUnit_FindSupportFileIndex(self, start_idx, sb_file, full)
def GetTypes(self, *args):
r"""
GetTypes(SBCompileUnit self, uint32_t type_mask=eTypeClassAny) -> SBTypeList
Get all types matching type_mask from debug info in this
compile unit.
@param[in] type_mask
A bitfield that consists of one or more bits logically OR'ed
together from the lldb::TypeClass enumeration. This allows
you to request only structure types, or only class, struct
and union types. Passing in lldb::eTypeClassAny will return
all types found in the debug information for this compile
unit.
@return
A list of types in this compile unit that match type_mask
"""
return _lldb.SBCompileUnit_GetTypes(self, *args)
def GetLanguage(self):
r"""GetLanguage(SBCompileUnit self) -> lldb::LanguageType"""
return _lldb.SBCompileUnit_GetLanguage(self)
def __eq__(self, rhs):
r"""__eq__(SBCompileUnit self, SBCompileUnit rhs) -> bool"""
return _lldb.SBCompileUnit___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBCompileUnit self, SBCompileUnit rhs) -> bool"""
return _lldb.SBCompileUnit___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBCompileUnit self, SBStream description) -> bool"""
return _lldb.SBCompileUnit_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBCompileUnit self) -> std::string"""
return _lldb.SBCompileUnit___repr__(self)
def __iter__(self):
'''Iterate over all line entries in a lldb.SBCompileUnit object.'''
return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex')
def __len__(self):
'''Return the number of line entries in a lldb.SBCompileUnit
object.'''
return self.GetNumLineEntries()
file = property(GetFileSpec, None, doc='''A read only property that returns the same result an lldb object that represents the source file (lldb.SBFileSpec) for the compile unit.''')
num_line_entries = property(GetNumLineEntries, None, doc='''A read only property that returns the number of line entries in a compile unit as an integer.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBCompileUnit in _lldb:
_lldb.SBCompileUnit_swigregister(SBCompileUnit)
class SBData(object):
r"""Represents a data buffer."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBData self) -> SBData
__init__(SBData self, SBData rhs) -> SBData
"""
_lldb.SBData_swiginit(self, _lldb.new_SBData(*args))
__swig_destroy__ = _lldb.delete_SBData
def GetAddressByteSize(self):
r"""GetAddressByteSize(SBData self) -> uint8_t"""
return _lldb.SBData_GetAddressByteSize(self)
def SetAddressByteSize(self, addr_byte_size):
r"""SetAddressByteSize(SBData self, uint8_t addr_byte_size)"""
return _lldb.SBData_SetAddressByteSize(self, addr_byte_size)
def Clear(self):
r"""Clear(SBData self)"""
return _lldb.SBData_Clear(self)
def __nonzero__(self):
return _lldb.SBData___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBData self) -> bool"""
return _lldb.SBData_IsValid(self)
def GetByteSize(self):
r"""GetByteSize(SBData self) -> size_t"""
return _lldb.SBData_GetByteSize(self)
def GetByteOrder(self):
r"""GetByteOrder(SBData self) -> lldb::ByteOrder"""
return _lldb.SBData_GetByteOrder(self)
def SetByteOrder(self, endian):
r"""SetByteOrder(SBData self, lldb::ByteOrder endian)"""
return _lldb.SBData_SetByteOrder(self, endian)
def GetFloat(self, error, offset):
r"""GetFloat(SBData self, SBError error, lldb::offset_t offset) -> float"""
return _lldb.SBData_GetFloat(self, error, offset)
def GetDouble(self, error, offset):
r"""GetDouble(SBData self, SBError error, lldb::offset_t offset) -> double"""
return _lldb.SBData_GetDouble(self, error, offset)
def GetLongDouble(self, error, offset):
r"""GetLongDouble(SBData self, SBError error, lldb::offset_t offset) -> long double"""
return _lldb.SBData_GetLongDouble(self, error, offset)
def GetAddress(self, error, offset):
r"""GetAddress(SBData self, SBError error, lldb::offset_t offset) -> lldb::addr_t"""
return _lldb.SBData_GetAddress(self, error, offset)
def GetUnsignedInt8(self, error, offset):
r"""GetUnsignedInt8(SBData self, SBError error, lldb::offset_t offset) -> uint8_t"""
return _lldb.SBData_GetUnsignedInt8(self, error, offset)
def GetUnsignedInt16(self, error, offset):
r"""GetUnsignedInt16(SBData self, SBError error, lldb::offset_t offset) -> uint16_t"""
return _lldb.SBData_GetUnsignedInt16(self, error, offset)
def GetUnsignedInt32(self, error, offset):
r"""GetUnsignedInt32(SBData self, SBError error, lldb::offset_t offset) -> uint32_t"""
return _lldb.SBData_GetUnsignedInt32(self, error, offset)
def GetUnsignedInt64(self, error, offset):
r"""GetUnsignedInt64(SBData self, SBError error, lldb::offset_t offset) -> uint64_t"""
return _lldb.SBData_GetUnsignedInt64(self, error, offset)
def GetSignedInt8(self, error, offset):
r"""GetSignedInt8(SBData self, SBError error, lldb::offset_t offset) -> int8_t"""
return _lldb.SBData_GetSignedInt8(self, error, offset)
def GetSignedInt16(self, error, offset):
r"""GetSignedInt16(SBData self, SBError error, lldb::offset_t offset) -> int16_t"""
return _lldb.SBData_GetSignedInt16(self, error, offset)
def GetSignedInt32(self, error, offset):
r"""GetSignedInt32(SBData self, SBError error, lldb::offset_t offset) -> int32_t"""
return _lldb.SBData_GetSignedInt32(self, error, offset)
def GetSignedInt64(self, error, offset):
r"""GetSignedInt64(SBData self, SBError error, lldb::offset_t offset) -> int64_t"""
return _lldb.SBData_GetSignedInt64(self, error, offset)
def GetString(self, error, offset):
r"""GetString(SBData self, SBError error, lldb::offset_t offset) -> char const *"""
return _lldb.SBData_GetString(self, error, offset)
def ReadRawData(self, error, offset, buf):
r"""ReadRawData(SBData self, SBError error, lldb::offset_t offset, void * buf) -> size_t"""
return _lldb.SBData_ReadRawData(self, error, offset, buf)
def GetDescription(self, *args):
r"""GetDescription(SBData self, SBStream description, lldb::addr_t base_addr=18446744073709551615ULL) -> bool"""
return _lldb.SBData_GetDescription(self, *args)
def SetData(self, error, buf, endian, addr_size):
r"""SetData(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)"""
return _lldb.SBData_SetData(self, error, buf, endian, addr_size)
def SetDataWithOwnership(self, error, buf, endian, addr_size):
r"""SetDataWithOwnership(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)"""
return _lldb.SBData_SetDataWithOwnership(self, error, buf, endian, addr_size)
def Append(self, rhs):
r"""Append(SBData self, SBData rhs) -> bool"""
return _lldb.SBData_Append(self, rhs)
@staticmethod
def CreateDataFromCString(endian, addr_byte_size, data):
r"""CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, char const * data) -> SBData"""
return _lldb.SBData_CreateDataFromCString(endian, addr_byte_size, data)
@staticmethod
def CreateDataFromUInt64Array(endian, addr_byte_size, array):
r"""CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData"""
return _lldb.SBData_CreateDataFromUInt64Array(endian, addr_byte_size, array)
@staticmethod
def CreateDataFromUInt32Array(endian, addr_byte_size, array):
r"""CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData"""
return _lldb.SBData_CreateDataFromUInt32Array(endian, addr_byte_size, array)
@staticmethod
def CreateDataFromSInt64Array(endian, addr_byte_size, array):
r"""CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData"""
return _lldb.SBData_CreateDataFromSInt64Array(endian, addr_byte_size, array)
@staticmethod
def CreateDataFromSInt32Array(endian, addr_byte_size, array):
r"""CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData"""
return _lldb.SBData_CreateDataFromSInt32Array(endian, addr_byte_size, array)
@staticmethod
def CreateDataFromDoubleArray(endian, addr_byte_size, array):
r"""CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData"""
return _lldb.SBData_CreateDataFromDoubleArray(endian, addr_byte_size, array)
def SetDataFromCString(self, data):
r"""SetDataFromCString(SBData self, char const * data) -> bool"""
return _lldb.SBData_SetDataFromCString(self, data)
def SetDataFromUInt64Array(self, array):
r"""SetDataFromUInt64Array(SBData self, uint64_t * array) -> bool"""
return _lldb.SBData_SetDataFromUInt64Array(self, array)
def SetDataFromUInt32Array(self, array):
r"""SetDataFromUInt32Array(SBData self, uint32_t * array) -> bool"""
return _lldb.SBData_SetDataFromUInt32Array(self, array)
def SetDataFromSInt64Array(self, array):
r"""SetDataFromSInt64Array(SBData self, int64_t * array) -> bool"""
return _lldb.SBData_SetDataFromSInt64Array(self, array)
def SetDataFromSInt32Array(self, array):
r"""SetDataFromSInt32Array(SBData self, int32_t * array) -> bool"""
return _lldb.SBData_SetDataFromSInt32Array(self, array)
def SetDataFromDoubleArray(self, array):
r"""SetDataFromDoubleArray(SBData self, double * array) -> bool"""
return _lldb.SBData_SetDataFromDoubleArray(self, array)
def __repr__(self):
r"""__repr__(SBData self) -> std::string"""
return _lldb.SBData___repr__(self)
class read_data_helper:
def __init__(self, sbdata, readerfunc, item_size):
self.sbdata = sbdata
self.readerfunc = readerfunc
self.item_size = item_size
def __getitem__(self,key):
if isinstance(key,slice):
list = []
for x in range(*key.indices(self.__len__())):
list.append(self.__getitem__(x))
return list
if not (isinstance(key, int)):
raise TypeError('must be int')
key = key * self.item_size # SBData uses byte-based indexes, but we want to use itemsize-based indexes here
error = SBError()
my_data = self.readerfunc(self.sbdata,error,key)
if error.Fail():
raise IndexError(error.GetCString())
else:
return my_data
def __len__(self):
return int(self.sbdata.GetByteSize()/self.item_size)
def all(self):
return self[0:len(self)]
@classmethod
def CreateDataFromInt (cls, value, size = None, target = None, ptr_size = None, endian = None):
import sys
lldbmodule = sys.modules[cls.__module__]
lldbdict = lldbmodule.__dict__
if 'target' in lldbdict:
lldbtarget = lldbdict['target']
else:
lldbtarget = None
if target == None and lldbtarget != None and lldbtarget.IsValid():
target = lldbtarget
if ptr_size == None:
if target and target.IsValid():
ptr_size = target.addr_size
else:
ptr_size = 8
if endian == None:
if target and target.IsValid():
endian = target.byte_order
else:
endian = lldbdict['eByteOrderLittle']
if size == None:
if value > 2147483647:
size = 8
elif value < -2147483648:
size = 8
elif value > 4294967295:
size = 8
else:
size = 4
if size == 4:
if value < 0:
return SBData().CreateDataFromSInt32Array(endian, ptr_size, [value])
return SBData().CreateDataFromUInt32Array(endian, ptr_size, [value])
if size == 8:
if value < 0:
return SBData().CreateDataFromSInt64Array(endian, ptr_size, [value])
return SBData().CreateDataFromUInt64Array(endian, ptr_size, [value])
return None
def _make_helper(self, sbdata, getfunc, itemsize):
return self.read_data_helper(sbdata, getfunc, itemsize)
def _make_helper_uint8(self):
return self._make_helper(self, SBData.GetUnsignedInt8, 1)
def _make_helper_uint16(self):
return self._make_helper(self, SBData.GetUnsignedInt16, 2)
def _make_helper_uint32(self):
return self._make_helper(self, SBData.GetUnsignedInt32, 4)
def _make_helper_uint64(self):
return self._make_helper(self, SBData.GetUnsignedInt64, 8)
def _make_helper_sint8(self):
return self._make_helper(self, SBData.GetSignedInt8, 1)
def _make_helper_sint16(self):
return self._make_helper(self, SBData.GetSignedInt16, 2)
def _make_helper_sint32(self):
return self._make_helper(self, SBData.GetSignedInt32, 4)
def _make_helper_sint64(self):
return self._make_helper(self, SBData.GetSignedInt64, 8)
def _make_helper_float(self):
return self._make_helper(self, SBData.GetFloat, 4)
def _make_helper_double(self):
return self._make_helper(self, SBData.GetDouble, 8)
def _read_all_uint8(self):
return self._make_helper_uint8().all()
def _read_all_uint16(self):
return self._make_helper_uint16().all()
def _read_all_uint32(self):
return self._make_helper_uint32().all()
def _read_all_uint64(self):
return self._make_helper_uint64().all()
def _read_all_sint8(self):
return self._make_helper_sint8().all()
def _read_all_sint16(self):
return self._make_helper_sint16().all()
def _read_all_sint32(self):
return self._make_helper_sint32().all()
def _read_all_sint64(self):
return self._make_helper_sint64().all()
def _read_all_float(self):
return self._make_helper_float().all()
def _read_all_double(self):
return self._make_helper_double().all()
uint8 = property(_make_helper_uint8, None, doc='''A read only property that returns an array-like object out of which you can read uint8 values.''')
uint16 = property(_make_helper_uint16, None, doc='''A read only property that returns an array-like object out of which you can read uint16 values.''')
uint32 = property(_make_helper_uint32, None, doc='''A read only property that returns an array-like object out of which you can read uint32 values.''')
uint64 = property(_make_helper_uint64, None, doc='''A read only property that returns an array-like object out of which you can read uint64 values.''')
sint8 = property(_make_helper_sint8, None, doc='''A read only property that returns an array-like object out of which you can read sint8 values.''')
sint16 = property(_make_helper_sint16, None, doc='''A read only property that returns an array-like object out of which you can read sint16 values.''')
sint32 = property(_make_helper_sint32, None, doc='''A read only property that returns an array-like object out of which you can read sint32 values.''')
sint64 = property(_make_helper_sint64, None, doc='''A read only property that returns an array-like object out of which you can read sint64 values.''')
float = property(_make_helper_float, None, doc='''A read only property that returns an array-like object out of which you can read float values.''')
double = property(_make_helper_double, None, doc='''A read only property that returns an array-like object out of which you can read double values.''')
uint8s = property(_read_all_uint8, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint8 values.''')
uint16s = property(_read_all_uint16, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint16 values.''')
uint32s = property(_read_all_uint32, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint32 values.''')
uint64s = property(_read_all_uint64, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint64 values.''')
sint8s = property(_read_all_sint8, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint8 values.''')
sint16s = property(_read_all_sint16, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint16 values.''')
sint32s = property(_read_all_sint32, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint32 values.''')
sint64s = property(_read_all_sint64, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint64 values.''')
floats = property(_read_all_float, None, doc='''A read only property that returns an array with all the contents of this SBData represented as float values.''')
doubles = property(_read_all_double, None, doc='''A read only property that returns an array with all the contents of this SBData represented as double values.''')
byte_order = property(GetByteOrder, SetByteOrder, doc='''A read/write property getting and setting the endianness of this SBData (data.byte_order = lldb.eByteOrderLittle).''')
size = property(GetByteSize, None, doc='''A read only property that returns the size the same result as GetByteSize().''')
# Register SBData in _lldb:
_lldb.SBData_swigregister(SBData)
class SBDebugger(object):
r"""
SBDebugger is the primordial object that creates SBTargets and provides
access to them. It also manages the overall debugging experiences.
For example (from example/disasm.py),::
import lldb
import os
import sys
def disassemble_instructions (insts):
for i in insts:
print i
...
# Create a new debugger instance
debugger = lldb.SBDebugger.Create()
# When we step or continue, don't return from the function until the process
# stops. We do this by setting the async mode to false.
debugger.SetAsync (False)
# Create a target from a file and arch
print('Creating a target for '%s'' % exe)
target = debugger.CreateTargetWithFileAndArch (exe, lldb.LLDB_ARCH_DEFAULT)
if target:
# If the target is valid set a breakpoint at main
main_bp = target.BreakpointCreateByName (fname, target.GetExecutable().GetFilename());
print main_bp
# Launch the process. Since we specified synchronous mode, we won't return
# from this function until we hit the breakpoint at main
process = target.LaunchSimple (None, None, os.getcwd())
# Make sure the launch went ok
if process:
# Print some simple process info
state = process.GetState ()
print process
if state == lldb.eStateStopped:
# Get the first thread
thread = process.GetThreadAtIndex (0)
if thread:
# Print some simple thread info
print thread
# Get the first frame
frame = thread.GetFrameAtIndex (0)
if frame:
# Print some simple frame info
print frame
function = frame.GetFunction()
# See if we have debug info (a function)
if function:
# We do have a function, print some info for the function
print function
# Now get all instructions for this function and print them
insts = function.GetInstructions(target)
disassemble_instructions (insts)
else:
# See if we have a symbol in the symbol table for where we stopped
symbol = frame.GetSymbol();
if symbol:
# We do have a symbol, print some info for the symbol
print symbol
# Now get all instructions for this symbol and print them
insts = symbol.GetInstructions(target)
disassemble_instructions (insts)
registerList = frame.GetRegisters()
print('Frame registers (size of register set = %d):' % registerList.GetSize())
for value in registerList:
#print value
print('%s (number of children = %d):' % (value.GetName(), value.GetNumChildren()))
for child in value:
print('Name: ', child.GetName(), ' Value: ', child.GetValue())
print('Hit the breakpoint at main, enter to continue and wait for program to exit or 'Ctrl-D'/'quit' to terminate the program')
next = sys.stdin.readline()
if not next or next.rstrip('\n') == 'quit':
print('Terminating the inferior process...')
process.Kill()
else:
# Now continue to the program exit
process.Continue()
# When we return from the above function we will hopefully be at the
# program exit. Print out some process info
print process
elif state == lldb.eStateExited:
print('Didn't hit the breakpoint at main, program has exited...')
else:
print('Unexpected process state: %s, killing process...' % debugger.StateAsCString (state))
process.Kill()
Sometimes you need to create an empty target that will get filled in later. The most common use for this
is to attach to a process by name or pid where you don't know the executable up front. The most convenient way
to do this is: ::
target = debugger.CreateTarget('')
error = lldb.SBError()
process = target.AttachToProcessWithName(debugger.GetListener(), 'PROCESS_NAME', False, error)
or the equivalent arguments for :py:class:`SBTarget.AttachToProcessWithID` .
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
eBroadcastBitProgress = _lldb.SBDebugger_eBroadcastBitProgress
eBroadcastBitWarning = _lldb.SBDebugger_eBroadcastBitWarning
eBroadcastBitError = _lldb.SBDebugger_eBroadcastBitError
eBroadcastBitProgressCategory = _lldb.SBDebugger_eBroadcastBitProgressCategory
def __init__(self, *args):
r"""
__init__(SBDebugger self) -> SBDebugger
__init__(SBDebugger self, SBDebugger rhs) -> SBDebugger
"""
_lldb.SBDebugger_swiginit(self, _lldb.new_SBDebugger(*args))
__swig_destroy__ = _lldb.delete_SBDebugger
@staticmethod
def GetBroadcasterClass():
r"""GetBroadcasterClass() -> char const *"""
return _lldb.SBDebugger_GetBroadcasterClass()
def GetBroadcaster(self):
r"""GetBroadcaster(SBDebugger self) -> SBBroadcaster"""
return _lldb.SBDebugger_GetBroadcaster(self)
@staticmethod
def GetProgressFromEvent(event):
r"""GetProgressFromEvent(SBEvent event) -> char const *"""
return _lldb.SBDebugger_GetProgressFromEvent(event)
@staticmethod
def GetProgressDataFromEvent(event):
r"""GetProgressDataFromEvent(SBEvent event) -> SBStructuredData"""
return _lldb.SBDebugger_GetProgressDataFromEvent(event)
@staticmethod
def GetDiagnosticFromEvent(event):
r"""GetDiagnosticFromEvent(SBEvent event) -> SBStructuredData"""
return _lldb.SBDebugger_GetDiagnosticFromEvent(event)
@staticmethod
def Initialize():
r"""Initialize()"""
return _lldb.SBDebugger_Initialize()
@staticmethod
def InitializeWithErrorHandling():
r"""InitializeWithErrorHandling() -> SBError"""
return _lldb.SBDebugger_InitializeWithErrorHandling()
@staticmethod
def PrintStackTraceOnError():
r"""PrintStackTraceOnError()"""
return _lldb.SBDebugger_PrintStackTraceOnError()
@staticmethod
def PrintDiagnosticsOnError():
r"""PrintDiagnosticsOnError()"""
return _lldb.SBDebugger_PrintDiagnosticsOnError()
@staticmethod
def Terminate():
r"""Terminate()"""
return _lldb.SBDebugger_Terminate()
@staticmethod
def Create(*args):
r"""
Create() -> SBDebugger
Create(bool source_init_files) -> SBDebugger
Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger
"""
return _lldb.SBDebugger_Create(*args)
@staticmethod
def Destroy(debugger):
r"""Destroy(SBDebugger debugger)"""
return _lldb.SBDebugger_Destroy(debugger)
@staticmethod
def MemoryPressureDetected():
r"""MemoryPressureDetected()"""
return _lldb.SBDebugger_MemoryPressureDetected()
def __nonzero__(self):
return _lldb.SBDebugger___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBDebugger self) -> bool"""
return _lldb.SBDebugger_IsValid(self)
def Clear(self):
r"""Clear(SBDebugger self)"""
return _lldb.SBDebugger_Clear(self)
def GetSetting(self, setting=None):
r"""GetSetting(SBDebugger self, char const * setting=None) -> SBStructuredData"""
return _lldb.SBDebugger_GetSetting(self, setting)
def SetAsync(self, b):
r"""SetAsync(SBDebugger self, bool b)"""
return _lldb.SBDebugger_SetAsync(self, b)
def GetAsync(self):
r"""GetAsync(SBDebugger self) -> bool"""
return _lldb.SBDebugger_GetAsync(self)
def SkipLLDBInitFiles(self, b):
r"""SkipLLDBInitFiles(SBDebugger self, bool b)"""
return _lldb.SBDebugger_SkipLLDBInitFiles(self, b)
def SkipAppInitFiles(self, b):
r"""SkipAppInitFiles(SBDebugger self, bool b)"""
return _lldb.SBDebugger_SkipAppInitFiles(self, b)
def SetInputString(self, data):
r"""SetInputString(SBDebugger self, char const * data) -> SBError"""
return _lldb.SBDebugger_SetInputString(self, data)
def SetInputFile(self, *args):
r"""
SetInputFile(SBDebugger self, SBFile file) -> SBError
SetInputFile(SBDebugger self, lldb::FileSP file) -> SBError
"""
return _lldb.SBDebugger_SetInputFile(self, *args)
def SetOutputFile(self, *args):
r"""
SetOutputFile(SBDebugger self, SBFile file) -> SBError
SetOutputFile(SBDebugger self, lldb::FileSP file) -> SBError
"""
return _lldb.SBDebugger_SetOutputFile(self, *args)
def SetErrorFile(self, *args):
r"""
SetErrorFile(SBDebugger self, SBFile file) -> SBError
SetErrorFile(SBDebugger self, lldb::FileSP file) -> SBError
"""
return _lldb.SBDebugger_SetErrorFile(self, *args)
def GetInputFile(self):
r"""GetInputFile(SBDebugger self) -> SBFile"""
return _lldb.SBDebugger_GetInputFile(self)
def GetOutputFile(self):
r"""GetOutputFile(SBDebugger self) -> SBFile"""
return _lldb.SBDebugger_GetOutputFile(self)
def GetErrorFile(self):
r"""GetErrorFile(SBDebugger self) -> SBFile"""
return _lldb.SBDebugger_GetErrorFile(self)
def SaveInputTerminalState(self):
r"""SaveInputTerminalState(SBDebugger self)"""
return _lldb.SBDebugger_SaveInputTerminalState(self)
def RestoreInputTerminalState(self):
r"""RestoreInputTerminalState(SBDebugger self)"""
return _lldb.SBDebugger_RestoreInputTerminalState(self)
def GetCommandInterpreter(self):
r"""GetCommandInterpreter(SBDebugger self) -> SBCommandInterpreter"""
return _lldb.SBDebugger_GetCommandInterpreter(self)
def HandleCommand(self, command):
r"""HandleCommand(SBDebugger self, char const * command)"""
return _lldb.SBDebugger_HandleCommand(self, command)
def RequestInterrupt(self):
r"""RequestInterrupt(SBDebugger self)"""
return _lldb.SBDebugger_RequestInterrupt(self)
def CancelInterruptRequest(self):
r"""CancelInterruptRequest(SBDebugger self)"""
return _lldb.SBDebugger_CancelInterruptRequest(self)
def InterruptRequested(self):
r"""InterruptRequested(SBDebugger self) -> bool"""
return _lldb.SBDebugger_InterruptRequested(self)
def GetListener(self):
r"""GetListener(SBDebugger self) -> SBListener"""
return _lldb.SBDebugger_GetListener(self)
def HandleProcessEvent(self, *args):
r"""
HandleProcessEvent(SBDebugger self, SBProcess process, SBEvent event, SBFile out, SBFile err)
HandleProcessEvent(SBDebugger self, SBProcess process, SBEvent event, lldb::FileSP arg4, lldb::FileSP arg5)
"""
return _lldb.SBDebugger_HandleProcessEvent(self, *args)
def CreateTargetWithFileAndTargetTriple(self, filename, target_triple):
r"""CreateTargetWithFileAndTargetTriple(SBDebugger self, char const * filename, char const * target_triple) -> SBTarget"""
return _lldb.SBDebugger_CreateTargetWithFileAndTargetTriple(self, filename, target_triple)
def CreateTargetWithFileAndArch(self, filename, archname):
r"""CreateTargetWithFileAndArch(SBDebugger self, char const * filename, char const * archname) -> SBTarget"""
return _lldb.SBDebugger_CreateTargetWithFileAndArch(self, filename, archname)
def CreateTarget(self, *args):
r"""
CreateTarget(SBDebugger self, char const * filename, char const * target_triple, char const * platform_name, bool add_dependent_modules, SBError error) -> SBTarget
CreateTarget(SBDebugger self, char const * filename) -> SBTarget
"""
return _lldb.SBDebugger_CreateTarget(self, *args)
def GetDummyTarget(self):
r"""
GetDummyTarget(SBDebugger self) -> SBTarget
The dummy target holds breakpoints and breakpoint names that will prime newly created targets.
"""
return _lldb.SBDebugger_GetDummyTarget(self)
def DeleteTarget(self, target):
r"""
DeleteTarget(SBDebugger self, SBTarget target) -> bool
Return true if target is deleted from the target list of the debugger.
"""
return _lldb.SBDebugger_DeleteTarget(self, target)
def GetTargetAtIndex(self, idx):
r"""GetTargetAtIndex(SBDebugger self, uint32_t idx) -> SBTarget"""
return _lldb.SBDebugger_GetTargetAtIndex(self, idx)
def GetIndexOfTarget(self, target):
r"""GetIndexOfTarget(SBDebugger self, SBTarget target) -> uint32_t"""
return _lldb.SBDebugger_GetIndexOfTarget(self, target)
def FindTargetWithProcessID(self, pid):
r"""FindTargetWithProcessID(SBDebugger self, lldb::pid_t pid) -> SBTarget"""
return _lldb.SBDebugger_FindTargetWithProcessID(self, pid)
def FindTargetWithFileAndArch(self, filename, arch):
r"""FindTargetWithFileAndArch(SBDebugger self, char const * filename, char const * arch) -> SBTarget"""
return _lldb.SBDebugger_FindTargetWithFileAndArch(self, filename, arch)
def GetNumTargets(self):
r"""GetNumTargets(SBDebugger self) -> uint32_t"""
return _lldb.SBDebugger_GetNumTargets(self)
def GetSelectedTarget(self):
r"""GetSelectedTarget(SBDebugger self) -> SBTarget"""
return _lldb.SBDebugger_GetSelectedTarget(self)
def SetSelectedTarget(self, target):
r"""SetSelectedTarget(SBDebugger self, SBTarget target)"""
return _lldb.SBDebugger_SetSelectedTarget(self, target)
def GetSelectedPlatform(self):
r"""GetSelectedPlatform(SBDebugger self) -> SBPlatform"""
return _lldb.SBDebugger_GetSelectedPlatform(self)
def SetSelectedPlatform(self, platform):
r"""SetSelectedPlatform(SBDebugger self, SBPlatform platform)"""
return _lldb.SBDebugger_SetSelectedPlatform(self, platform)
def GetNumPlatforms(self):
r"""
GetNumPlatforms(SBDebugger self) -> uint32_t
Get the number of currently active platforms.
"""
return _lldb.SBDebugger_GetNumPlatforms(self)
def GetPlatformAtIndex(self, idx):
r"""
GetPlatformAtIndex(SBDebugger self, uint32_t idx) -> SBPlatform
Get one of the currently active platforms.
"""
return _lldb.SBDebugger_GetPlatformAtIndex(self, idx)
def GetNumAvailablePlatforms(self):
r"""
GetNumAvailablePlatforms(SBDebugger self) -> uint32_t
Get the number of available platforms.
"""
return _lldb.SBDebugger_GetNumAvailablePlatforms(self)
def GetAvailablePlatformInfoAtIndex(self, idx):
r"""
GetAvailablePlatformInfoAtIndex(SBDebugger self, uint32_t idx) -> SBStructuredData
Get the name and description of one of the available platforms.
@param idx Zero-based index of the platform for which info should be
retrieved, must be less than the value returned by
GetNumAvailablePlatforms().
"""
return _lldb.SBDebugger_GetAvailablePlatformInfoAtIndex(self, idx)
def GetSourceManager(self):
r"""GetSourceManager(SBDebugger self) -> SBSourceManager"""
return _lldb.SBDebugger_GetSourceManager(self)
def SetCurrentPlatform(self, platform_name):
r"""SetCurrentPlatform(SBDebugger self, char const * platform_name) -> SBError"""
return _lldb.SBDebugger_SetCurrentPlatform(self, platform_name)
def SetCurrentPlatformSDKRoot(self, sysroot):
r"""SetCurrentPlatformSDKRoot(SBDebugger self, char const * sysroot) -> bool"""
return _lldb.SBDebugger_SetCurrentPlatformSDKRoot(self, sysroot)
def SetUseExternalEditor(self, input):
r"""SetUseExternalEditor(SBDebugger self, bool input) -> bool"""
return _lldb.SBDebugger_SetUseExternalEditor(self, input)
def GetUseExternalEditor(self):
r"""GetUseExternalEditor(SBDebugger self) -> bool"""
return _lldb.SBDebugger_GetUseExternalEditor(self)
def SetUseColor(self, use_color):
r"""SetUseColor(SBDebugger self, bool use_color) -> bool"""
return _lldb.SBDebugger_SetUseColor(self, use_color)
def GetUseColor(self):
r"""GetUseColor(SBDebugger self) -> bool"""
return _lldb.SBDebugger_GetUseColor(self)
def SetUseSourceCache(self, use_source_cache):
r"""SetUseSourceCache(SBDebugger self, bool use_source_cache) -> bool"""
return _lldb.SBDebugger_SetUseSourceCache(self, use_source_cache)
def GetUseSourceCache(self):
r"""GetUseSourceCache(SBDebugger self) -> bool"""
return _lldb.SBDebugger_GetUseSourceCache(self)
@staticmethod
def GetDefaultArchitecture(arch_name, arch_name_len):
r"""GetDefaultArchitecture(char * arch_name, size_t arch_name_len) -> bool"""
return _lldb.SBDebugger_GetDefaultArchitecture(arch_name, arch_name_len)
@staticmethod
def SetDefaultArchitecture(arch_name):
r"""SetDefaultArchitecture(char const * arch_name) -> bool"""
return _lldb.SBDebugger_SetDefaultArchitecture(arch_name)
def GetScriptingLanguage(self, script_language_name):
r"""GetScriptingLanguage(SBDebugger self, char const * script_language_name) -> lldb::ScriptLanguage"""
return _lldb.SBDebugger_GetScriptingLanguage(self, script_language_name)
def GetScriptInterpreterInfo(self, arg2):
r"""GetScriptInterpreterInfo(SBDebugger self, lldb::ScriptLanguage arg2) -> SBStructuredData"""
return _lldb.SBDebugger_GetScriptInterpreterInfo(self, arg2)
@staticmethod
def GetVersionString():
r"""GetVersionString() -> char const *"""
return _lldb.SBDebugger_GetVersionString()
@staticmethod
def StateAsCString(state):
r"""StateAsCString(lldb::StateType state) -> char const *"""
return _lldb.SBDebugger_StateAsCString(state)
@staticmethod
def GetBuildConfiguration():
r"""GetBuildConfiguration() -> SBStructuredData"""
return _lldb.SBDebugger_GetBuildConfiguration()
@staticmethod
def StateIsRunningState(state):
r"""StateIsRunningState(lldb::StateType state) -> bool"""
return _lldb.SBDebugger_StateIsRunningState(state)
@staticmethod
def StateIsStoppedState(state):
r"""StateIsStoppedState(lldb::StateType state) -> bool"""
return _lldb.SBDebugger_StateIsStoppedState(state)
def EnableLog(self, channel, categories):
r"""EnableLog(SBDebugger self, char const * channel, char const ** categories) -> bool"""
return _lldb.SBDebugger_EnableLog(self, channel, categories)
def SetLoggingCallback(self, log_callback):
r"""SetLoggingCallback(SBDebugger self, lldb::LogOutputCallback log_callback)"""
return _lldb.SBDebugger_SetLoggingCallback(self, log_callback)
def SetDestroyCallback(self, destroy_callback):
r"""SetDestroyCallback(SBDebugger self, lldb::SBDebuggerDestroyCallback destroy_callback)"""
return _lldb.SBDebugger_SetDestroyCallback(self, destroy_callback)
def DispatchInput(self, data):
r"""DispatchInput(SBDebugger self, void const * data)"""
return _lldb.SBDebugger_DispatchInput(self, data)
def DispatchInputInterrupt(self):
r"""DispatchInputInterrupt(SBDebugger self)"""
return _lldb.SBDebugger_DispatchInputInterrupt(self)
def DispatchInputEndOfFile(self):
r"""DispatchInputEndOfFile(SBDebugger self)"""
return _lldb.SBDebugger_DispatchInputEndOfFile(self)
def GetInstanceName(self):
r"""GetInstanceName(SBDebugger self) -> char const *"""
return _lldb.SBDebugger_GetInstanceName(self)
@staticmethod
def FindDebuggerWithID(id):
r"""FindDebuggerWithID(int id) -> SBDebugger"""
return _lldb.SBDebugger_FindDebuggerWithID(id)
@staticmethod
def SetInternalVariable(var_name, value, debugger_instance_name):
r"""SetInternalVariable(char const * var_name, char const * value, char const * debugger_instance_name) -> SBError"""
return _lldb.SBDebugger_SetInternalVariable(var_name, value, debugger_instance_name)
@staticmethod
def GetInternalVariableValue(var_name, debugger_instance_name):
r"""GetInternalVariableValue(char const * var_name, char const * debugger_instance_name) -> SBStringList"""
return _lldb.SBDebugger_GetInternalVariableValue(var_name, debugger_instance_name)
def GetDescription(self, description):
r"""GetDescription(SBDebugger self, SBStream description) -> bool"""
return _lldb.SBDebugger_GetDescription(self, description)
def GetTerminalWidth(self):
r"""GetTerminalWidth(SBDebugger self) -> uint32_t"""
return _lldb.SBDebugger_GetTerminalWidth(self)
def SetTerminalWidth(self, term_width):
r"""SetTerminalWidth(SBDebugger self, uint32_t term_width)"""
return _lldb.SBDebugger_SetTerminalWidth(self, term_width)
def GetID(self):
r"""GetID(SBDebugger self) -> lldb::user_id_t"""
return _lldb.SBDebugger_GetID(self)
def GetPrompt(self):
r"""GetPrompt(SBDebugger self) -> char const *"""
return _lldb.SBDebugger_GetPrompt(self)
def SetPrompt(self, prompt):
r"""SetPrompt(SBDebugger self, char const * prompt)"""
return _lldb.SBDebugger_SetPrompt(self, prompt)
def GetReproducerPath(self):
r"""GetReproducerPath(SBDebugger self) -> char const *"""
return _lldb.SBDebugger_GetReproducerPath(self)
def GetScriptLanguage(self):
r"""GetScriptLanguage(SBDebugger self) -> lldb::ScriptLanguage"""
return _lldb.SBDebugger_GetScriptLanguage(self)
def SetScriptLanguage(self, script_lang):
r"""SetScriptLanguage(SBDebugger self, lldb::ScriptLanguage script_lang)"""
return _lldb.SBDebugger_SetScriptLanguage(self, script_lang)
def GetREPLLanguage(self):
r"""GetREPLLanguage(SBDebugger self) -> lldb::LanguageType"""
return _lldb.SBDebugger_GetREPLLanguage(self)
def SetREPLLanguage(self, repl_lang):
r"""SetREPLLanguage(SBDebugger self, lldb::LanguageType repl_lang)"""
return _lldb.SBDebugger_SetREPLLanguage(self, repl_lang)
def GetCloseInputOnEOF(self):
r"""GetCloseInputOnEOF(SBDebugger self) -> bool"""
return _lldb.SBDebugger_GetCloseInputOnEOF(self)
def SetCloseInputOnEOF(self, b):
r"""SetCloseInputOnEOF(SBDebugger self, bool b)"""
return _lldb.SBDebugger_SetCloseInputOnEOF(self, b)
def GetCategory(self, *args):
r"""
GetCategory(SBDebugger self, char const * category_name) -> SBTypeCategory
GetCategory(SBDebugger self, lldb::LanguageType lang_type) -> SBTypeCategory
"""
return _lldb.SBDebugger_GetCategory(self, *args)
def CreateCategory(self, category_name):
r"""CreateCategory(SBDebugger self, char const * category_name) -> SBTypeCategory"""
return _lldb.SBDebugger_CreateCategory(self, category_name)
def DeleteCategory(self, category_name):
r"""DeleteCategory(SBDebugger self, char const * category_name) -> bool"""
return _lldb.SBDebugger_DeleteCategory(self, category_name)
def GetNumCategories(self):
r"""GetNumCategories(SBDebugger self) -> uint32_t"""
return _lldb.SBDebugger_GetNumCategories(self)
def GetCategoryAtIndex(self, arg2):
r"""GetCategoryAtIndex(SBDebugger self, uint32_t arg2) -> SBTypeCategory"""
return _lldb.SBDebugger_GetCategoryAtIndex(self, arg2)
def GetDefaultCategory(self):
r"""GetDefaultCategory(SBDebugger self) -> SBTypeCategory"""
return _lldb.SBDebugger_GetDefaultCategory(self)
def GetFormatForType(self, arg2):
r"""GetFormatForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFormat"""
return _lldb.SBDebugger_GetFormatForType(self, arg2)
def GetSummaryForType(self, arg2):
r"""GetSummaryForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSummary"""
return _lldb.SBDebugger_GetSummaryForType(self, arg2)
def GetFilterForType(self, arg2):
r"""GetFilterForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFilter"""
return _lldb.SBDebugger_GetFilterForType(self, arg2)
def GetSyntheticForType(self, arg2):
r"""GetSyntheticForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic"""
return _lldb.SBDebugger_GetSyntheticForType(self, arg2)
def RunCommandInterpreter(self, auto_handle_events, spawn_thread, options, num_errors, quit_requested, stopped_for_crash):
r"""
RunCommandInterpreter(SBDebugger self, bool auto_handle_events, bool spawn_thread, SBCommandInterpreterRunOptions options, int & num_errors, bool & quit_requested, bool & stopped_for_crash)
Launch a command interpreter session. Commands are read from standard input or
from the input handle specified for the debugger object. Output/errors are
similarly redirected to standard output/error or the configured handles.
@param[in] auto_handle_events If true, automatically handle resulting events.
@param[in] spawn_thread If true, start a new thread for IO handling.
@param[in] options Parameter collection of type SBCommandInterpreterRunOptions.
@param[in] num_errors Initial error counter.
@param[in] quit_requested Initial quit request flag.
@param[in] stopped_for_crash Initial crash flag.
@return
A tuple with the number of errors encountered by the interpreter, a boolean
indicating whether quitting the interpreter was requested and another boolean
set to True in case of a crash.
Example: ::
# Start an interactive lldb session from a script (with a valid debugger object
# created beforehand):
n_errors, quit_requested, has_crashed = debugger.RunCommandInterpreter(True,
False, lldb.SBCommandInterpreterRunOptions(), 0, False, False)
"""
return _lldb.SBDebugger_RunCommandInterpreter(self, auto_handle_events, spawn_thread, options, num_errors, quit_requested, stopped_for_crash)
def RunREPL(self, language, repl_options):
r"""RunREPL(SBDebugger self, lldb::LanguageType language, char const * repl_options) -> SBError"""
return _lldb.SBDebugger_RunREPL(self, language, repl_options)
def LoadTraceFromFile(self, error, trace_description_file):
r"""LoadTraceFromFile(SBDebugger self, SBError error, SBFileSpec trace_description_file) -> SBTrace"""
return _lldb.SBDebugger_LoadTraceFromFile(self, error, trace_description_file)
def __repr__(self):
r"""__repr__(SBDebugger self) -> std::string"""
return _lldb.SBDebugger___repr__(self)
def SetOutputFileHandle(self, file, transfer_ownership):
"DEPRECATED, use SetOutputFile"
if file is None:
import sys
file = sys.stdout
self.SetOutputFile(SBFile.Create(file, borrow=True))
def SetInputFileHandle(self, file, transfer_ownership):
"DEPRECATED, use SetInputFile"
if file is None:
import sys
file = sys.stdin
self.SetInputFile(SBFile.Create(file, borrow=True))
def SetErrorFileHandle(self, file, transfer_ownership):
"DEPRECATED, use SetErrorFile"
if file is None:
import sys
file = sys.stderr
self.SetErrorFile(SBFile.Create(file, borrow=True))
def __iter__(self):
'''Iterate over all targets in a lldb.SBDebugger object.'''
return lldb_iter(self, 'GetNumTargets', 'GetTargetAtIndex')
def __len__(self):
'''Return the number of targets in a lldb.SBDebugger object.'''
return self.GetNumTargets()
def GetInputFileHandle(self):
r"""GetInputFileHandle(SBDebugger self) -> lldb::FileSP"""
return _lldb.SBDebugger_GetInputFileHandle(self)
def GetOutputFileHandle(self):
r"""GetOutputFileHandle(SBDebugger self) -> lldb::FileSP"""
return _lldb.SBDebugger_GetOutputFileHandle(self)
def GetErrorFileHandle(self):
r"""GetErrorFileHandle(SBDebugger self) -> lldb::FileSP"""
return _lldb.SBDebugger_GetErrorFileHandle(self)
# Register SBDebugger in _lldb:
_lldb.SBDebugger_swigregister(SBDebugger)
class SBDeclaration(object):
r"""Specifies an association with a line and column for a variable."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBDeclaration self) -> SBDeclaration
__init__(SBDeclaration self, SBDeclaration rhs) -> SBDeclaration
"""
_lldb.SBDeclaration_swiginit(self, _lldb.new_SBDeclaration(*args))
__swig_destroy__ = _lldb.delete_SBDeclaration
def __nonzero__(self):
return _lldb.SBDeclaration___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBDeclaration self) -> bool"""
return _lldb.SBDeclaration_IsValid(self)
def GetFileSpec(self):
r"""GetFileSpec(SBDeclaration self) -> SBFileSpec"""
return _lldb.SBDeclaration_GetFileSpec(self)
def GetLine(self):
r"""GetLine(SBDeclaration self) -> uint32_t"""
return _lldb.SBDeclaration_GetLine(self)
def GetColumn(self):
r"""GetColumn(SBDeclaration self) -> uint32_t"""
return _lldb.SBDeclaration_GetColumn(self)
def SetFileSpec(self, filespec):
r"""SetFileSpec(SBDeclaration self, SBFileSpec filespec)"""
return _lldb.SBDeclaration_SetFileSpec(self, filespec)
def SetLine(self, line):
r"""SetLine(SBDeclaration self, uint32_t line)"""
return _lldb.SBDeclaration_SetLine(self, line)
def SetColumn(self, column):
r"""SetColumn(SBDeclaration self, uint32_t column)"""
return _lldb.SBDeclaration_SetColumn(self, column)
def __eq__(self, rhs):
r"""__eq__(SBDeclaration self, SBDeclaration rhs) -> bool"""
return _lldb.SBDeclaration___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBDeclaration self, SBDeclaration rhs) -> bool"""
return _lldb.SBDeclaration___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBDeclaration self, SBStream description) -> bool"""
return _lldb.SBDeclaration_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBDeclaration self) -> std::string"""
return _lldb.SBDeclaration___repr__(self)
file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBDeclaration in _lldb:
_lldb.SBDeclaration_swigregister(SBDeclaration)
class SBError(object):
r"""
Represents a container for holding any error code.
For example (from test/python_api/hello_world/TestHelloWorld.py), ::
def hello_world_attach_with_id_api(self):
'''Create target, spawn a process, and attach to it by id.'''
target = self.dbg.CreateTarget(self.exe)
# Spawn a new process and don't display the stdout if not in TraceOn() mode.
import subprocess
popen = subprocess.Popen([self.exe, 'abc', 'xyz'],
stdout = open(os.devnull, 'w') if not self.TraceOn() else None)
listener = lldb.SBListener('my.attach.listener')
error = lldb.SBError()
process = target.AttachToProcessWithID(listener, popen.pid, error)
self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
# Let's check the stack traces of the attached process.
import lldbutil
stacktraces = lldbutil.print_stacktraces(process, string_buffer=True)
self.expect(stacktraces, exe=False,
substrs = ['main.c:%d' % self.line2,
'(int)argc=3'])
listener = lldb.SBListener('my.attach.listener')
error = lldb.SBError()
process = target.AttachToProcessWithID(listener, popen.pid, error)
self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
checks that after the attach, there is no error condition by asserting
that error.Success() is True and we get back a valid process object.
And (from test/python_api/event/TestEvent.py), ::
# Now launch the process, and do not stop at entry point.
error = lldb.SBError()
process = target.Launch(listener, None, None, None, None, None, None, 0, False, error)
self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
checks that after calling the target.Launch() method there's no error
condition and we get back a void process object.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBError self) -> SBError
__init__(SBError self, SBError rhs) -> SBError
__init__(SBError self, char const * message) -> SBError
"""
_lldb.SBError_swiginit(self, _lldb.new_SBError(*args))
__swig_destroy__ = _lldb.delete_SBError
def GetCString(self):
r"""GetCString(SBError self) -> char const *"""
return _lldb.SBError_GetCString(self)
def Clear(self):
r"""Clear(SBError self)"""
return _lldb.SBError_Clear(self)
def Fail(self):
r"""Fail(SBError self) -> bool"""
return _lldb.SBError_Fail(self)
def Success(self):
r"""Success(SBError self) -> bool"""
return _lldb.SBError_Success(self)
def GetError(self):
r"""GetError(SBError self) -> uint32_t"""
return _lldb.SBError_GetError(self)
def GetType(self):
r"""GetType(SBError self) -> lldb::ErrorType"""
return _lldb.SBError_GetType(self)
def SetError(self, err, type):
r"""SetError(SBError self, uint32_t err, lldb::ErrorType type)"""
return _lldb.SBError_SetError(self, err, type)
def SetErrorToErrno(self):
r"""SetErrorToErrno(SBError self)"""
return _lldb.SBError_SetErrorToErrno(self)
def SetErrorToGenericError(self):
r"""SetErrorToGenericError(SBError self)"""
return _lldb.SBError_SetErrorToGenericError(self)
def SetErrorString(self, err_str):
r"""SetErrorString(SBError self, char const * err_str)"""
return _lldb.SBError_SetErrorString(self, err_str)
def SetErrorStringWithFormat(self, format, str1=None, str2=None, str3=None):
r"""SetErrorStringWithFormat(SBError self, char const * format, char * str1=None, char * str2=None, char * str3=None) -> int"""
return _lldb.SBError_SetErrorStringWithFormat(self, format, str1, str2, str3)
def __nonzero__(self):
return _lldb.SBError___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBError self) -> bool"""
return _lldb.SBError_IsValid(self)
def GetDescription(self, description):
r"""GetDescription(SBError self, SBStream description) -> bool"""
return _lldb.SBError_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBError self) -> std::string"""
return _lldb.SBError___repr__(self)
value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
# Register SBError in _lldb:
_lldb.SBError_swigregister(SBError)
class SBEnvironment(object):
r"""
Represents the environment of a certain process.
Example: ::
for entry in lldb.debugger.GetSelectedTarget().GetEnvironment().GetEntries():
print(entry)
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBEnvironment self) -> SBEnvironment
__init__(SBEnvironment self, SBEnvironment rhs) -> SBEnvironment
"""
_lldb.SBEnvironment_swiginit(self, _lldb.new_SBEnvironment(*args))
__swig_destroy__ = _lldb.delete_SBEnvironment
def Get(self, name):
r"""Get(SBEnvironment self, char const * name) -> char const *"""
return _lldb.SBEnvironment_Get(self, name)
def GetNumValues(self):
r"""GetNumValues(SBEnvironment self) -> size_t"""
return _lldb.SBEnvironment_GetNumValues(self)
def GetNameAtIndex(self, index):
r"""GetNameAtIndex(SBEnvironment self, size_t index) -> char const *"""
return _lldb.SBEnvironment_GetNameAtIndex(self, index)
def GetValueAtIndex(self, index):
r"""GetValueAtIndex(SBEnvironment self, size_t index) -> char const *"""
return _lldb.SBEnvironment_GetValueAtIndex(self, index)
def GetEntries(self):
r"""GetEntries(SBEnvironment self) -> SBStringList"""
return _lldb.SBEnvironment_GetEntries(self)
def PutEntry(self, name_and_value):
r"""PutEntry(SBEnvironment self, char const * name_and_value)"""
return _lldb.SBEnvironment_PutEntry(self, name_and_value)
def SetEntries(self, entries, append):
r"""SetEntries(SBEnvironment self, SBStringList entries, bool append)"""
return _lldb.SBEnvironment_SetEntries(self, entries, append)
def Set(self, name, value, overwrite):
r"""Set(SBEnvironment self, char const * name, char const * value, bool overwrite) -> bool"""
return _lldb.SBEnvironment_Set(self, name, value, overwrite)
def Unset(self, name):
r"""Unset(SBEnvironment self, char const * name) -> bool"""
return _lldb.SBEnvironment_Unset(self, name)
def Clear(self):
r"""Clear(SBEnvironment self)"""
return _lldb.SBEnvironment_Clear(self)
# Register SBEnvironment in _lldb:
_lldb.SBEnvironment_swigregister(SBEnvironment)
class SBEvent(object):
r"""
API clients can register to receive events.
For example, check out the following output: ::
Try wait for event...
Event description: 0x103d0bb70 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = running}
Event data flavor: Process::ProcessEventData
Process state: running
Try wait for event...
Event description: 0x103a700a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = stopped}
Event data flavor: Process::ProcessEventData
Process state: stopped
Try wait for event...
Event description: 0x103d0d4a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = exited}
Event data flavor: Process::ProcessEventData
Process state: exited
Try wait for event...
timeout occurred waiting for event...
from test/python_api/event/TestEventspy: ::
def do_listen_for_and_print_event(self):
'''Create a listener and use SBEvent API to print the events received.'''
exe = os.path.join(os.getcwd(), 'a.out')
# Create a target by the debugger.
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
# Now launch the process, and do not stop at the entry point.
process = target.LaunchSimple(None, None, os.getcwd())
self.assertTrue(process.GetState() == lldb.eStateStopped,
PROCESS_STOPPED)
# Get a handle on the process's broadcaster.
broadcaster = process.GetBroadcaster()
# Create an empty event object.
event = lldb.SBEvent()
# Create a listener object and register with the broadcaster.
listener = lldb.SBListener('my listener')
rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged)
self.assertTrue(rc, 'AddListener successfully retruns')
traceOn = self.TraceOn()
if traceOn:
lldbutil.print_stacktraces(process)
# Create MyListeningThread class to wait for any kind of event.
import threading
class MyListeningThread(threading.Thread):
def run(self):
count = 0
# Let's only try at most 4 times to retrieve any kind of event.
# After that, the thread exits.
while not count > 3:
if traceOn:
print('Try wait for event...')
if listener.WaitForEventForBroadcasterWithType(5,
broadcaster,
lldb.SBProcess.eBroadcastBitStateChanged,
event):
if traceOn:
desc = lldbutil.get_description(event))
print('Event description:', desc)
print('Event data flavor:', event.GetDataFlavor())
print('Process state:', lldbutil.state_type_to_str(process.GetState()))
print()
else:
if traceOn:
print 'timeout occurred waiting for event...'
count = count + 1
return
# Let's start the listening thread to retrieve the events.
my_thread = MyListeningThread()
my_thread.start()
# Use Python API to continue the process. The listening thread should be
# able to receive the state changed events.
process.Continue()
# Use Python API to kill the process. The listening thread should be
# able to receive the state changed event, too.
process.Kill()
# Wait until the 'MyListeningThread' terminates.
my_thread.join()
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""__init__(self, int type, str data) -> SBEvent (make an event that contains a C string)__init__(self, int type, str data) -> SBEvent (make an event that contains a C string)__init__(self, int type, str data) -> SBEvent (make an event that contains a C string)"""
_lldb.SBEvent_swiginit(self, _lldb.new_SBEvent(*args))
__swig_destroy__ = _lldb.delete_SBEvent
def __nonzero__(self):
return _lldb.SBEvent___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBEvent self) -> bool"""
return _lldb.SBEvent_IsValid(self)
def GetDataFlavor(self):
r"""GetDataFlavor(SBEvent self) -> char const *"""
return _lldb.SBEvent_GetDataFlavor(self)
def GetType(self):
r"""GetType(SBEvent self) -> uint32_t"""
return _lldb.SBEvent_GetType(self)
def GetBroadcaster(self):
r"""GetBroadcaster(SBEvent self) -> SBBroadcaster"""
return _lldb.SBEvent_GetBroadcaster(self)
def GetBroadcasterClass(self):
r"""GetBroadcasterClass(SBEvent self) -> char const *"""
return _lldb.SBEvent_GetBroadcasterClass(self)
def BroadcasterMatchesRef(self, broadcaster):
r"""BroadcasterMatchesRef(SBEvent self, SBBroadcaster broadcaster) -> bool"""
return _lldb.SBEvent_BroadcasterMatchesRef(self, broadcaster)
def Clear(self):
r"""Clear(SBEvent self)"""
return _lldb.SBEvent_Clear(self)
@staticmethod
def GetCStringFromEvent(event):
r"""GetCStringFromEvent(SBEvent event) -> char const *"""
return _lldb.SBEvent_GetCStringFromEvent(event)
def GetDescription(self, *args):
r"""
GetDescription(SBEvent self, SBStream description) -> bool
GetDescription(SBEvent self, SBStream description) -> bool
"""
return _lldb.SBEvent_GetDescription(self, *args)
# Register SBEvent in _lldb:
_lldb.SBEvent_swigregister(SBEvent)
class SBExecutionContext(object):
r"""Describes the program context in which a command should be executed."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBExecutionContext self) -> SBExecutionContext
__init__(SBExecutionContext self, SBExecutionContext rhs) -> SBExecutionContext
__init__(SBExecutionContext self, SBTarget target) -> SBExecutionContext
__init__(SBExecutionContext self, SBProcess process) -> SBExecutionContext
__init__(SBExecutionContext self, SBThread thread) -> SBExecutionContext
__init__(SBExecutionContext self, SBFrame frame) -> SBExecutionContext
"""
_lldb.SBExecutionContext_swiginit(self, _lldb.new_SBExecutionContext(*args))
__swig_destroy__ = _lldb.delete_SBExecutionContext
def GetTarget(self):
r"""GetTarget(SBExecutionContext self) -> SBTarget"""
return _lldb.SBExecutionContext_GetTarget(self)
def GetProcess(self):
r"""GetProcess(SBExecutionContext self) -> SBProcess"""
return _lldb.SBExecutionContext_GetProcess(self)
def GetThread(self):
r"""GetThread(SBExecutionContext self) -> SBThread"""
return _lldb.SBExecutionContext_GetThread(self)
def GetFrame(self):
r"""GetFrame(SBExecutionContext self) -> SBFrame"""
return _lldb.SBExecutionContext_GetFrame(self)
target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')
frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''')
# Register SBExecutionContext in _lldb:
_lldb.SBExecutionContext_swigregister(SBExecutionContext)
class SBExpressionOptions(object):
r"""A container for options to use when evaluating expressions."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBExpressionOptions self) -> SBExpressionOptions
__init__(SBExpressionOptions self, SBExpressionOptions rhs) -> SBExpressionOptions
"""
_lldb.SBExpressionOptions_swiginit(self, _lldb.new_SBExpressionOptions(*args))
__swig_destroy__ = _lldb.delete_SBExpressionOptions
def GetCoerceResultToId(self):
r"""GetCoerceResultToId(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetCoerceResultToId(self)
def SetCoerceResultToId(self, coerce=True):
r"""
SetCoerceResultToId(SBExpressionOptions self, bool coerce=True)
Sets whether to coerce the expression result to ObjC id type after evaluation.
"""
return _lldb.SBExpressionOptions_SetCoerceResultToId(self, coerce)
def GetUnwindOnError(self):
r"""GetUnwindOnError(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetUnwindOnError(self)
def SetUnwindOnError(self, unwind=True):
r"""
SetUnwindOnError(SBExpressionOptions self, bool unwind=True)
Sets whether to unwind the expression stack on error.
"""
return _lldb.SBExpressionOptions_SetUnwindOnError(self, unwind)
def GetIgnoreBreakpoints(self):
r"""GetIgnoreBreakpoints(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetIgnoreBreakpoints(self)
def SetIgnoreBreakpoints(self, ignore=True):
r"""
SetIgnoreBreakpoints(SBExpressionOptions self, bool ignore=True)
Sets whether to ignore breakpoint hits while running expressions.
"""
return _lldb.SBExpressionOptions_SetIgnoreBreakpoints(self, ignore)
def GetFetchDynamicValue(self):
r"""GetFetchDynamicValue(SBExpressionOptions self) -> lldb::DynamicValueType"""
return _lldb.SBExpressionOptions_GetFetchDynamicValue(self)
def SetFetchDynamicValue(self, *args):
r"""
SetFetchDynamicValue(SBExpressionOptions self, lldb::DynamicValueType dynamic=eDynamicCanRunTarget)
Sets whether to cast the expression result to its dynamic type.
"""
return _lldb.SBExpressionOptions_SetFetchDynamicValue(self, *args)
def GetTimeoutInMicroSeconds(self):
r"""GetTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t"""
return _lldb.SBExpressionOptions_GetTimeoutInMicroSeconds(self)
def SetTimeoutInMicroSeconds(self, timeout=0):
r"""
SetTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0)
Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expression will finish.
"""
return _lldb.SBExpressionOptions_SetTimeoutInMicroSeconds(self, timeout)
def GetOneThreadTimeoutInMicroSeconds(self):
r"""GetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t"""
return _lldb.SBExpressionOptions_GetOneThreadTimeoutInMicroSeconds(self)
def SetOneThreadTimeoutInMicroSeconds(self, timeout=0):
r"""
SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0)
Sets the timeout in microseconds to run the expression on one thread before either timing out or trying all threads.
"""
return _lldb.SBExpressionOptions_SetOneThreadTimeoutInMicroSeconds(self, timeout)
def GetTryAllThreads(self):
r"""GetTryAllThreads(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetTryAllThreads(self)
def SetTryAllThreads(self, run_others=True):
r"""
SetTryAllThreads(SBExpressionOptions self, bool run_others=True)
Sets whether to run all threads if the expression does not complete on one thread.
"""
return _lldb.SBExpressionOptions_SetTryAllThreads(self, run_others)
def GetStopOthers(self):
r"""GetStopOthers(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetStopOthers(self)
def SetStopOthers(self, stop_others=True):
r"""
SetStopOthers(SBExpressionOptions self, bool stop_others=True)
Sets whether to stop other threads at all while running expressions. If false, TryAllThreads does nothing.
"""
return _lldb.SBExpressionOptions_SetStopOthers(self, stop_others)
def GetTrapExceptions(self):
r"""GetTrapExceptions(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetTrapExceptions(self)
def SetTrapExceptions(self, trap_exceptions=True):
r"""
SetTrapExceptions(SBExpressionOptions self, bool trap_exceptions=True)
Sets whether to abort expression evaluation if an exception is thrown while executing. Don't set this to false unless you know the function you are calling traps all exceptions itself.
"""
return _lldb.SBExpressionOptions_SetTrapExceptions(self, trap_exceptions)
def SetLanguage(self, *args):
r"""
SetLanguage(SBExpressionOptions self, lldb::LanguageType language)
SetLanguage(SBExpressionOptions self, lldb::SBSourceLanguageName name, uint32_t version)
Sets the language that LLDB should assume the expression is written in
"""
return _lldb.SBExpressionOptions_SetLanguage(self, *args)
def GetPlaygroundTransformEnabled(self):
r"""GetPlaygroundTransformEnabled(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetPlaygroundTransformEnabled(self)
def SetPlaygroundTransformEnabled(self, enable_playground_transform=True):
r"""SetPlaygroundTransformEnabled(SBExpressionOptions self, bool enable_playground_transform=True)"""
return _lldb.SBExpressionOptions_SetPlaygroundTransformEnabled(self, enable_playground_transform)
def GetPlaygroundTransformHighPerformance(self):
r"""GetPlaygroundTransformHighPerformance(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetPlaygroundTransformHighPerformance(self)
def SetPlaygroundTransformHighPerformance(self, playground_transforms_hp=True):
r"""SetPlaygroundTransformHighPerformance(SBExpressionOptions self, bool playground_transforms_hp=True)"""
return _lldb.SBExpressionOptions_SetPlaygroundTransformHighPerformance(self, playground_transforms_hp)
def GetREPLMode(self):
r"""GetREPLMode(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetREPLMode(self)
def SetREPLMode(self, enable_repl_mode=True):
r"""SetREPLMode(SBExpressionOptions self, bool enable_repl_mode=True)"""
return _lldb.SBExpressionOptions_SetREPLMode(self, enable_repl_mode)
def GetGenerateDebugInfo(self):
r"""GetGenerateDebugInfo(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetGenerateDebugInfo(self)
def SetGenerateDebugInfo(self, b=True):
r"""
SetGenerateDebugInfo(SBExpressionOptions self, bool b=True)
Sets whether to generate debug information for the expression and also controls if a SBModule is generated.
"""
return _lldb.SBExpressionOptions_SetGenerateDebugInfo(self, b)
def GetSuppressPersistentResult(self):
r"""GetSuppressPersistentResult(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetSuppressPersistentResult(self)
def SetSuppressPersistentResult(self, b=False):
r"""
SetSuppressPersistentResult(SBExpressionOptions self, bool b=False)
Sets whether to produce a persistent result that can be used in future expressions.
"""
return _lldb.SBExpressionOptions_SetSuppressPersistentResult(self, b)
def GetPrefix(self):
r"""
GetPrefix(SBExpressionOptions self) -> char const *
Gets the prefix to use for this expression.
"""
return _lldb.SBExpressionOptions_GetPrefix(self)
def SetPrefix(self, prefix):
r"""
SetPrefix(SBExpressionOptions self, char const * prefix)
Sets the prefix to use for this expression. This prefix gets inserted after the 'target.expr-prefix' prefix contents, but before the wrapped expression function body.
"""
return _lldb.SBExpressionOptions_SetPrefix(self, prefix)
def SetAutoApplyFixIts(self, b=True):
r"""
SetAutoApplyFixIts(SBExpressionOptions self, bool b=True)
Sets whether to auto-apply fix-it hints to the expression being evaluated.
"""
return _lldb.SBExpressionOptions_SetAutoApplyFixIts(self, b)
def GetAutoApplyFixIts(self):
r"""
GetAutoApplyFixIts(SBExpressionOptions self) -> bool
Gets whether to auto-apply fix-it hints to an expression.
"""
return _lldb.SBExpressionOptions_GetAutoApplyFixIts(self)
def SetRetriesWithFixIts(self, retries):
r"""
SetRetriesWithFixIts(SBExpressionOptions self, uint64_t retries)
Sets how often LLDB should retry applying fix-its to an expression.
"""
return _lldb.SBExpressionOptions_SetRetriesWithFixIts(self, retries)
def GetRetriesWithFixIts(self):
r"""
GetRetriesWithFixIts(SBExpressionOptions self) -> uint64_t
Gets how often LLDB will retry applying fix-its to an expression.
"""
return _lldb.SBExpressionOptions_GetRetriesWithFixIts(self)
def GetTopLevel(self):
r"""GetTopLevel(SBExpressionOptions self) -> bool"""
return _lldb.SBExpressionOptions_GetTopLevel(self)
def SetTopLevel(self, b=True):
r"""SetTopLevel(SBExpressionOptions self, bool b=True)"""
return _lldb.SBExpressionOptions_SetTopLevel(self, b)
def GetAllowJIT(self):
r"""
GetAllowJIT(SBExpressionOptions self) -> bool
Gets whether to JIT an expression if it cannot be interpreted.
"""
return _lldb.SBExpressionOptions_GetAllowJIT(self)
def SetAllowJIT(self, allow):
r"""
SetAllowJIT(SBExpressionOptions self, bool allow)
Sets whether to JIT an expression if it cannot be interpreted.
"""
return _lldb.SBExpressionOptions_SetAllowJIT(self, allow)
# Register SBExpressionOptions in _lldb:
_lldb.SBExpressionOptions_swigregister(SBExpressionOptions)
class SBFile(object):
r"""Represents a file."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBFile self) -> SBFile
__init__(SBFile self, lldb::FileSP file_sp) -> SBFile
__init__(SBFile self, int fd, char const * mode, bool transfer_ownership) -> SBFile
initialize a SBFile from a python file object
"""
_lldb.SBFile_swiginit(self, _lldb.new_SBFile(*args))
__swig_destroy__ = _lldb.delete_SBFile
def Read(self, buf):
r"""Read(buffer) -> SBError, bytes_read"""
return _lldb.SBFile_Read(self, buf)
def Write(self, buf):
r"""Write(buffer) -> SBError, written_read"""
return _lldb.SBFile_Write(self, buf)
def Flush(self):
r"""Flush(SBFile self) -> SBError"""
return _lldb.SBFile_Flush(self)
def IsValid(self):
r"""IsValid(SBFile self) -> bool"""
return _lldb.SBFile_IsValid(self)
def Close(self):
r"""Close(SBFile self) -> SBError"""
return _lldb.SBFile_Close(self)
def __nonzero__(self):
return _lldb.SBFile___nonzero__(self)
__bool__ = __nonzero__
def GetFile(self):
r"""
GetFile(SBFile self) -> lldb::FileSP
Convert this SBFile into a python io.IOBase file object.
If the SBFile is itself a wrapper around a python file object,
this will return that original object.
The file returned from here should be considered borrowed,
in the sense that you may read and write to it, and flush it,
etc, but you should not close it. If you want to close the
SBFile, call SBFile.Close().
If there is no underlying python file to unwrap, GetFile will
use the file descriptor, if available to create a new python
file object using ``open(fd, mode=..., closefd=False)``
"""
return _lldb.SBFile_GetFile(self)
@staticmethod
def MakeBorrowed(BORROWED):
r"""MakeBorrowed(lldb::FileSP BORROWED) -> SBFile"""
return _lldb.SBFile_MakeBorrowed(BORROWED)
@staticmethod
def MakeForcingIOMethods(FORCE_IO_METHODS):
r"""MakeForcingIOMethods(lldb::FileSP FORCE_IO_METHODS) -> SBFile"""
return _lldb.SBFile_MakeForcingIOMethods(FORCE_IO_METHODS)
@staticmethod
def MakeBorrowedForcingIOMethods(BORROWED_FORCE_IO_METHODS):
r"""MakeBorrowedForcingIOMethods(lldb::FileSP BORROWED_FORCE_IO_METHODS) -> SBFile"""
return _lldb.SBFile_MakeBorrowedForcingIOMethods(BORROWED_FORCE_IO_METHODS)
@classmethod
def Create(cls, file, borrow=False, force_io_methods=False):
"""
Create a SBFile from a python file object, with options.
If borrow is set then the underlying file will
not be closed when the SBFile is closed or destroyed.
If force_scripting_io is set then the python read/write
methods will be called even if a file descriptor is available.
"""
if borrow:
if force_io_methods:
return cls.MakeBorrowedForcingIOMethods(file)
else:
return cls.MakeBorrowed(file)
else:
if force_io_methods:
return cls.MakeForcingIOMethods(file)
else:
return cls(file)
# Register SBFile in _lldb:
_lldb.SBFile_swigregister(SBFile)
class SBFileSpec(object):
r"""
Represents a file specification that divides the path into a directory and
basename. The string values of the paths are put into uniqued string pools
for fast comparisons and efficient memory usage.
For example, the following code ::
lineEntry = context.GetLineEntry()
self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory',
exe=False,
substrs = [self.mydir])
self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename',
exe=False,
substrs = ['main.c'])
self.assertTrue(lineEntry.GetLine() == self.line,
'The line entry's line number should match ')
gets the line entry from the symbol context when a thread is stopped.
It gets the file spec corresponding to the line entry and checks that
the filename and the directory matches what we expect.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBFileSpec self) -> SBFileSpec
__init__(SBFileSpec self, SBFileSpec rhs) -> SBFileSpec
__init__(SBFileSpec self, char const * path) -> SBFileSpec
__init__(SBFileSpec self, char const * path, bool resolve) -> SBFileSpec
"""
_lldb.SBFileSpec_swiginit(self, _lldb.new_SBFileSpec(*args))
__swig_destroy__ = _lldb.delete_SBFileSpec
def __nonzero__(self):
return _lldb.SBFileSpec___nonzero__(self)
__bool__ = __nonzero__
def __eq__(self, rhs):
r"""__eq__(SBFileSpec self, SBFileSpec rhs) -> bool"""
return _lldb.SBFileSpec___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBFileSpec self, SBFileSpec rhs) -> bool"""
return _lldb.SBFileSpec___ne__(self, rhs)
def IsValid(self):
r"""IsValid(SBFileSpec self) -> bool"""
return _lldb.SBFileSpec_IsValid(self)
def Exists(self):
r"""Exists(SBFileSpec self) -> bool"""
return _lldb.SBFileSpec_Exists(self)
def ResolveExecutableLocation(self):
r"""ResolveExecutableLocation(SBFileSpec self) -> bool"""
return _lldb.SBFileSpec_ResolveExecutableLocation(self)
def GetFilename(self):
r"""GetFilename(SBFileSpec self) -> char const *"""
return _lldb.SBFileSpec_GetFilename(self)
def GetDirectory(self):
r"""GetDirectory(SBFileSpec self) -> char const *"""
return _lldb.SBFileSpec_GetDirectory(self)
def SetFilename(self, filename):
r"""SetFilename(SBFileSpec self, char const * filename)"""
return _lldb.SBFileSpec_SetFilename(self, filename)
def SetDirectory(self, directory):
r"""SetDirectory(SBFileSpec self, char const * directory)"""
return _lldb.SBFileSpec_SetDirectory(self, directory)
def GetPath(self, dst_path, dst_len):
r"""GetPath(SBFileSpec self, char * dst_path, size_t dst_len) -> uint32_t"""
return _lldb.SBFileSpec_GetPath(self, dst_path, dst_len)
@staticmethod
def ResolvePath(src_path, dst_path, dst_len):
r"""ResolvePath(char const * src_path, char * dst_path, size_t dst_len) -> int"""
return _lldb.SBFileSpec_ResolvePath(src_path, dst_path, dst_len)
def GetDescription(self, description):
r"""GetDescription(SBFileSpec self, SBStream description) -> bool"""
return _lldb.SBFileSpec_GetDescription(self, description)
def AppendPathComponent(self, file_or_directory):
r"""AppendPathComponent(SBFileSpec self, char const * file_or_directory)"""
return _lldb.SBFileSpec_AppendPathComponent(self, file_or_directory)
def __repr__(self):
r"""__repr__(SBFileSpec self) -> std::string"""
return _lldb.SBFileSpec___repr__(self)
fullpath = property(str, None, doc='''A read only property that returns the fullpath as a python string.''')
basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''')
dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''')
exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''')
# Register SBFileSpec in _lldb:
_lldb.SBFileSpec_swigregister(SBFileSpec)
class SBFileSpecList(object):
r"""Represents a list of :py:class:`SBFileSpec`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBFileSpecList self) -> SBFileSpecList
__init__(SBFileSpecList self, SBFileSpecList rhs) -> SBFileSpecList
"""
_lldb.SBFileSpecList_swiginit(self, _lldb.new_SBFileSpecList(*args))
__swig_destroy__ = _lldb.delete_SBFileSpecList
def GetSize(self):
r"""GetSize(SBFileSpecList self) -> uint32_t"""
return _lldb.SBFileSpecList_GetSize(self)
def GetDescription(self, description):
r"""GetDescription(SBFileSpecList self, SBStream description) -> bool"""
return _lldb.SBFileSpecList_GetDescription(self, description)
def Append(self, sb_file):
r"""Append(SBFileSpecList self, SBFileSpec sb_file)"""
return _lldb.SBFileSpecList_Append(self, sb_file)
def AppendIfUnique(self, sb_file):
r"""AppendIfUnique(SBFileSpecList self, SBFileSpec sb_file) -> bool"""
return _lldb.SBFileSpecList_AppendIfUnique(self, sb_file)
def Clear(self):
r"""Clear(SBFileSpecList self)"""
return _lldb.SBFileSpecList_Clear(self)
def FindFileIndex(self, idx, sb_file, full):
r"""FindFileIndex(SBFileSpecList self, uint32_t idx, SBFileSpec sb_file, bool full) -> uint32_t"""
return _lldb.SBFileSpecList_FindFileIndex(self, idx, sb_file, full)
def GetFileSpecAtIndex(self, idx):
r"""GetFileSpecAtIndex(SBFileSpecList self, uint32_t idx) -> SBFileSpec"""
return _lldb.SBFileSpecList_GetFileSpecAtIndex(self, idx)
# Register SBFileSpecList in _lldb:
_lldb.SBFileSpecList_swigregister(SBFileSpecList)
class SBFormat(object):
r"""Class that represents a format string that can be used to generate descriptions of objects like frames and threads. See https://lldb.llvm.org/use/formatting.html for more information."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBFormat self) -> SBFormat
__init__(SBFormat self, char const * format, SBError error) -> SBFormat
__init__(SBFormat self, SBFormat rhs) -> SBFormat
"""
_lldb.SBFormat_swiginit(self, _lldb.new_SBFormat(*args))
__swig_destroy__ = _lldb.delete_SBFormat
def __nonzero__(self):
return _lldb.SBFormat___nonzero__(self)
__bool__ = __nonzero__
# Register SBFormat in _lldb:
_lldb.SBFormat_swigregister(SBFormat)
class SBFrame(object):
r"""
Represents one of the stack frames associated with a thread.
SBThread contains SBFrame(s). For example (from test/lldbutil.py), ::
def print_stacktrace(thread, string_buffer = False):
'''Prints a simple stack trace of this thread.'''
...
for i in range(depth):
frame = thread.GetFrameAtIndex(i)
function = frame.GetFunction()
load_addr = addrs[i].GetLoadAddress(target)
if not function:
file_addr = addrs[i].GetFileAddress()
start_addr = frame.GetSymbol().GetStartAddress().GetFileAddress()
symbol_offset = file_addr - start_addr
print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format(
num=i, addr=load_addr, mod=mods[i], symbol=symbols[i], offset=symbol_offset)
else:
print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format(
num=i, addr=load_addr, mod=mods[i],
func='%s [inlined]' % funcs[i] if frame.IsInlined() else funcs[i],
file=files[i], line=lines[i],
args=get_args_as_string(frame, showFuncName=False) if not frame.IsInlined() else '()')
...
And, ::
for frame in thread:
print frame
See also SBThread.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBFrame self) -> SBFrame
__init__(SBFrame self, SBFrame rhs) -> SBFrame
"""
_lldb.SBFrame_swiginit(self, _lldb.new_SBFrame(*args))
__swig_destroy__ = _lldb.delete_SBFrame
def IsEqual(self, that):
r"""IsEqual(SBFrame self, SBFrame that) -> bool"""
return _lldb.SBFrame_IsEqual(self, that)
def __nonzero__(self):
return _lldb.SBFrame___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBFrame self) -> bool"""
return _lldb.SBFrame_IsValid(self)
def GetFrameID(self):
r"""GetFrameID(SBFrame self) -> uint32_t"""
return _lldb.SBFrame_GetFrameID(self)
def GetCFA(self):
r"""
GetCFA(SBFrame self) -> lldb::addr_t
Get the Canonical Frame Address for this stack frame.
This is the DWARF standard's definition of a CFA, a stack address
that remains constant throughout the lifetime of the function.
Returns an lldb::addr_t stack address, or LLDB_INVALID_ADDRESS if
the CFA cannot be determined.
"""
return _lldb.SBFrame_GetCFA(self)
def GetPC(self):
r"""GetPC(SBFrame self) -> lldb::addr_t"""
return _lldb.SBFrame_GetPC(self)
def SetPC(self, new_pc):
r"""SetPC(SBFrame self, lldb::addr_t new_pc) -> bool"""
return _lldb.SBFrame_SetPC(self, new_pc)
def GetSP(self):
r"""GetSP(SBFrame self) -> lldb::addr_t"""
return _lldb.SBFrame_GetSP(self)
def GetFP(self):
r"""GetFP(SBFrame self) -> lldb::addr_t"""
return _lldb.SBFrame_GetFP(self)
def GetPCAddress(self):
r"""GetPCAddress(SBFrame self) -> SBAddress"""
return _lldb.SBFrame_GetPCAddress(self)
def GetSymbolContext(self, resolve_scope):
r"""GetSymbolContext(SBFrame self, uint32_t resolve_scope) -> SBSymbolContext"""
return _lldb.SBFrame_GetSymbolContext(self, resolve_scope)
def GetModule(self):
r"""GetModule(SBFrame self) -> SBModule"""
return _lldb.SBFrame_GetModule(self)
def GetCompileUnit(self):
r"""GetCompileUnit(SBFrame self) -> SBCompileUnit"""
return _lldb.SBFrame_GetCompileUnit(self)
def GetFunction(self):
r"""GetFunction(SBFrame self) -> SBFunction"""
return _lldb.SBFrame_GetFunction(self)
def GetSymbol(self):
r"""GetSymbol(SBFrame self) -> SBSymbol"""
return _lldb.SBFrame_GetSymbol(self)
def GetBlock(self):
r"""
GetBlock(SBFrame self) -> SBBlock
Gets the deepest block that contains the frame PC.
See also GetFrameBlock().
"""
return _lldb.SBFrame_GetBlock(self)
def GetDisplayFunctionName(self):
r"""GetDisplayFunctionName(SBFrame self) -> char const *"""
return _lldb.SBFrame_GetDisplayFunctionName(self)
def GetFunctionName(self, *args):
r"""
GetFunctionName(SBFrame self) -> char const
GetFunctionName(SBFrame self) -> char const *
Get the appropriate function name for this frame. Inlined functions in
LLDB are represented by Blocks that have inlined function information, so
just looking at the SBFunction or SBSymbol for a frame isn't enough.
This function will return the appropriate function, symbol or inlined
function name for the frame.
This function returns:
- the name of the inlined function (if there is one)
- the name of the concrete function (if there is one)
- the name of the symbol (if there is one)
- NULL
See also IsInlined().
"""
return _lldb.SBFrame_GetFunctionName(self, *args)
def GuessLanguage(self):
r"""
GuessLanguage(SBFrame self) -> lldb::LanguageType
Returns the language of the frame's SBFunction, or if there.
is no SBFunction, guess the language from the mangled name.
.
"""
return _lldb.SBFrame_GuessLanguage(self)
def IsSwiftThunk(self):
r"""IsSwiftThunk(SBFrame self) -> bool"""
return _lldb.SBFrame_IsSwiftThunk(self)
def GetLanguageSpecificData(self):
r"""GetLanguageSpecificData(SBFrame self) -> SBStructuredData"""
return _lldb.SBFrame_GetLanguageSpecificData(self)
def IsInlined(self, *args):
r"""
IsInlined(SBFrame self) -> bool
IsInlined(SBFrame self) -> bool
Return true if this frame represents an inlined function.
See also GetFunctionName().
"""
return _lldb.SBFrame_IsInlined(self, *args)
def IsArtificial(self, *args):
r"""
IsArtificial(SBFrame self) -> bool
IsArtificial(SBFrame self) -> bool
Return true if this frame is artificial (e.g a frame synthesized to
capture a tail call). Local variables may not be available in an artificial
frame.
"""
return _lldb.SBFrame_IsArtificial(self, *args)
def EvaluateExpression(self, *args):
r"""
EvaluateExpression(SBFrame self, char const * expr) -> SBValue
EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic) -> SBValue
EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic, bool unwind_on_error) -> SBValue
EvaluateExpression(SBFrame self, char const * expr, SBExpressionOptions options) -> SBValue
The version that doesn't supply a 'use_dynamic' value will use the
target's default.
"""
return _lldb.SBFrame_EvaluateExpression(self, *args)
def GetFrameBlock(self):
r"""
GetFrameBlock(SBFrame self) -> SBBlock
Gets the lexical block that defines the stack frame. Another way to think
of this is it will return the block that contains all of the variables
for a stack frame. Inlined functions are represented as SBBlock objects
that have inlined function information: the name of the inlined function,
where it was called from. The block that is returned will be the first
block at or above the block for the PC (SBFrame::GetBlock()) that defines
the scope of the frame. When a function contains no inlined functions,
this will be the top most lexical block that defines the function.
When a function has inlined functions and the PC is currently
in one of those inlined functions, this method will return the inlined
block that defines this frame. If the PC isn't currently in an inlined
function, the lexical block that defines the function is returned.
"""
return _lldb.SBFrame_GetFrameBlock(self)
def GetLineEntry(self):
r"""GetLineEntry(SBFrame self) -> SBLineEntry"""
return _lldb.SBFrame_GetLineEntry(self)
def GetThread(self):
r"""GetThread(SBFrame self) -> SBThread"""
return _lldb.SBFrame_GetThread(self)
def Disassemble(self):
r"""Disassemble(SBFrame self) -> char const *"""
return _lldb.SBFrame_Disassemble(self)
def Clear(self):
r"""Clear(SBFrame self)"""
return _lldb.SBFrame_Clear(self)
def __eq__(self, rhs):
r"""__eq__(SBFrame self, SBFrame rhs) -> bool"""
return _lldb.SBFrame___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBFrame self, SBFrame rhs) -> bool"""
return _lldb.SBFrame___ne__(self, rhs)
def GetVariables(self, *args):
r"""
GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only) -> SBValueList
GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only, lldb::DynamicValueType use_dynamic) -> SBValueList
GetVariables(SBFrame self, SBVariablesOptions options) -> SBValueList
The version that doesn't supply a 'use_dynamic' value will use the
target's default.
"""
return _lldb.SBFrame_GetVariables(self, *args)
def GetRegisters(self):
r"""GetRegisters(SBFrame self) -> SBValueList"""
return _lldb.SBFrame_GetRegisters(self)
def FindRegister(self, name):
r"""FindRegister(SBFrame self, char const * name) -> SBValue"""
return _lldb.SBFrame_FindRegister(self, name)
def FindVariable(self, *args):
r"""
FindVariable(SBFrame self, char const * var_name) -> SBValue
FindVariable(SBFrame self, char const * var_name, lldb::DynamicValueType use_dynamic) -> SBValue
The version that doesn't supply a 'use_dynamic' value will use the
target's default.
"""
return _lldb.SBFrame_FindVariable(self, *args)
def GetValueForVariablePath(self, *args):
r"""
GetValueForVariablePath(SBFrame self, char const * var_expr_cstr, lldb::DynamicValueType use_dynamic) -> SBValue
GetValueForVariablePath(SBFrame self, char const * var_path) -> SBValue
Get a lldb.SBValue for a variable path.
Variable paths can include access to pointer or instance members: ::
rect_ptr->origin.y
pt.x
Pointer dereferences: ::
*this->foo_ptr
**argv
Address of: ::
&pt
&my_array[3].x
Array accesses and treating pointers as arrays: ::
int_array[1]
pt_ptr[22].x
Unlike `EvaluateExpression()` which returns :py:class:`SBValue` objects
with constant copies of the values at the time of evaluation,
the result of this function is a value that will continue to
track the current value of the value as execution progresses
in the current frame.
"""
return _lldb.SBFrame_GetValueForVariablePath(self, *args)
def FindValue(self, *args):
r"""
FindValue(SBFrame self, char const * name, lldb::ValueType value_type) -> SBValue
FindValue(SBFrame self, char const * name, lldb::ValueType value_type, lldb::DynamicValueType use_dynamic) -> SBValue
Find variables, register sets, registers, or persistent variables using
the frame as the scope.
The version that doesn't supply a ``use_dynamic`` value will use the
target's default.
"""
return _lldb.SBFrame_FindValue(self, *args)
def GetDescription(self, description):
r"""GetDescription(SBFrame self, SBStream description) -> bool"""
return _lldb.SBFrame_GetDescription(self, description)
def GetDescriptionWithFormat(self, format, output):
r"""GetDescriptionWithFormat(SBFrame self, SBFormat format, SBStream output) -> SBError"""
return _lldb.SBFrame_GetDescriptionWithFormat(self, format, output)
def __repr__(self):
r"""__repr__(SBFrame self) -> std::string"""
return _lldb.SBFrame___repr__(self)
def get_all_variables(self):
return self.GetVariables(True,True,True,True)
def get_parent_frame(self):
parent_idx = self.idx + 1
if parent_idx >= 0 and parent_idx < len(self.thread.frame):
return self.thread.frame[parent_idx]
else:
return SBFrame()
def get_arguments(self):
return self.GetVariables(True,False,False,False)
def get_locals(self):
return self.GetVariables(False,True,False,False)
def get_statics(self):
return self.GetVariables(False,False,True,False)
def var(self, var_expr_path):
'''Calls through to lldb.SBFrame.GetValueForVariablePath() and returns
a value that represents the variable expression path'''
return self.GetValueForVariablePath(var_expr_path)
def get_registers_access(self):
class registers_access(object):
'''A helper object that exposes a flattened view of registers, masking away the notion of register sets for easy scripting.'''
def __init__(self, regs):
self.regs = regs
def __getitem__(self, key):
if type(key) is str:
for i in range(0,len(self.regs)):
rs = self.regs[i]
for j in range (0,rs.num_children):
reg = rs.GetChildAtIndex(j)
if reg.name == key: return reg
else:
return lldb.SBValue()
return registers_access(self.registers)
pc = property(GetPC, SetPC)
addr = property(GetPCAddress, None, doc='''A read only property that returns the program counter (PC) as a section offset address (lldb.SBAddress).''')
fp = property(GetFP, None, doc='''A read only property that returns the frame pointer (FP) as an unsigned integer.''')
sp = property(GetSP, None, doc='''A read only property that returns the stack pointer (SP) as an unsigned integer.''')
module = property(GetModule, None, doc='''A read only property that returns an lldb object that represents the module (lldb.SBModule) for this stack frame.''')
compile_unit = property(GetCompileUnit, None, doc='''A read only property that returns an lldb object that represents the compile unit (lldb.SBCompileUnit) for this stack frame.''')
function = property(GetFunction, None, doc='''A read only property that returns an lldb object that represents the function (lldb.SBFunction) for this stack frame.''')
symbol = property(GetSymbol, None, doc='''A read only property that returns an lldb object that represents the symbol (lldb.SBSymbol) for this stack frame.''')
block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the block (lldb.SBBlock) for this stack frame.''')
is_inlined = property(IsInlined, None, doc='''A read only property that returns an boolean that indicates if the block frame is an inlined function.''')
name = property(GetFunctionName, None, doc='''A read only property that retuns the name for the function that this frame represents. Inlined stack frame might have a concrete function that differs from the name of the inlined function (a named lldb.SBBlock).''')
line_entry = property(GetLineEntry, None, doc='''A read only property that returns an lldb object that represents the line table entry (lldb.SBLineEntry) for this stack frame.''')
thread = property(GetThread, None, doc='''A read only property that returns an lldb object that represents the thread (lldb.SBThread) for this stack frame.''')
disassembly = property(Disassemble, None, doc='''A read only property that returns the disassembly for this stack frame as a python string.''')
idx = property(GetFrameID, None, doc='''A read only property that returns the zero based stack frame index.''')
variables = property(get_all_variables, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the variables in this stack frame.''')
vars = property(get_all_variables, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the variables in this stack frame.''')
locals = property(get_locals, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the local variables in this stack frame.''')
args = property(get_arguments, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the argument variables in this stack frame.''')
arguments = property(get_arguments, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the argument variables in this stack frame.''')
statics = property(get_statics, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the static variables in this stack frame.''')
registers = property(GetRegisters, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the CPU registers for this stack frame.''')
regs = property(GetRegisters, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the CPU registers for this stack frame.''')
register = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame.''')
reg = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame''')
parent = property(get_parent_frame, None, doc='''A read only property that returns the parent (caller) frame of the current frame.''')
# Register SBFrame in _lldb:
_lldb.SBFrame_swigregister(SBFrame)
class SBFunction(object):
r"""
Represents a generic function, which can be inlined or not.
For example (from test/lldbutil.py, but slightly modified for doc purpose),::
...
frame = thread.GetFrameAtIndex(i)
addr = frame.GetPCAddress()
load_addr = addr.GetLoadAddress(target)
function = frame.GetFunction()
mod_name = frame.GetModule().GetFileSpec().GetFilename()
if not function:
# No debug info for 'function'.
symbol = frame.GetSymbol()
file_addr = addr.GetFileAddress()
start_addr = symbol.GetStartAddress().GetFileAddress()
symbol_name = symbol.GetName()
symbol_offset = file_addr - start_addr
print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format(
num=i, addr=load_addr, mod=mod_name, symbol=symbol_name, offset=symbol_offset)
else:
# Debug info is available for 'function'.
func_name = frame.GetFunctionName()
file_name = frame.GetLineEntry().GetFileSpec().GetFilename()
line_num = frame.GetLineEntry().GetLine()
print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format(
num=i, addr=load_addr, mod=mod_name,
func='%s [inlined]' % func_name] if frame.IsInlined() else func_name,
file=file_name, line=line_num, args=get_args_as_string(frame, showFuncName=False))
...
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBFunction self) -> SBFunction
__init__(SBFunction self, SBFunction rhs) -> SBFunction
"""
_lldb.SBFunction_swiginit(self, _lldb.new_SBFunction(*args))
__swig_destroy__ = _lldb.delete_SBFunction
def __nonzero__(self):
return _lldb.SBFunction___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBFunction self) -> bool"""
return _lldb.SBFunction_IsValid(self)
def GetName(self):
r"""GetName(SBFunction self) -> char const *"""
return _lldb.SBFunction_GetName(self)
def GetDisplayName(self):
r"""GetDisplayName(SBFunction self) -> char const *"""
return _lldb.SBFunction_GetDisplayName(self)
def GetMangledName(self):
r"""GetMangledName(SBFunction self) -> char const *"""
return _lldb.SBFunction_GetMangledName(self)
def GetInstructions(self, *args):
r"""
GetInstructions(SBFunction self, SBTarget target) -> SBInstructionList
GetInstructions(SBFunction self, SBTarget target, char const * flavor) -> SBInstructionList
"""
return _lldb.SBFunction_GetInstructions(self, *args)
def GetStartAddress(self):
r"""GetStartAddress(SBFunction self) -> SBAddress"""
return _lldb.SBFunction_GetStartAddress(self)
def GetEndAddress(self):
r"""GetEndAddress(SBFunction self) -> SBAddress"""
return _lldb.SBFunction_GetEndAddress(self)
def GetArgumentName(self, arg_idx):
r"""GetArgumentName(SBFunction self, uint32_t arg_idx) -> char const *"""
return _lldb.SBFunction_GetArgumentName(self, arg_idx)
def GetPrologueByteSize(self):
r"""GetPrologueByteSize(SBFunction self) -> uint32_t"""
return _lldb.SBFunction_GetPrologueByteSize(self)
def GetType(self):
r"""GetType(SBFunction self) -> SBType"""
return _lldb.SBFunction_GetType(self)
def GetBlock(self):
r"""GetBlock(SBFunction self) -> SBBlock"""
return _lldb.SBFunction_GetBlock(self)
def GetLanguage(self):
r"""GetLanguage(SBFunction self) -> lldb::LanguageType"""
return _lldb.SBFunction_GetLanguage(self)
def GetIsOptimized(self):
r"""
GetIsOptimized(SBFunction self) -> bool
Returns true if the function was compiled with optimization.
Optimization, in this case, is meant to indicate that the debugger
experience may be confusing for the user -- variables optimized away,
stepping jumping between source lines -- and the driver may want to
provide some guidance to the user about this.
Returns false if unoptimized, or unknown.
"""
return _lldb.SBFunction_GetIsOptimized(self)
def GetCanThrow(self):
r"""GetCanThrow(SBFunction self) -> bool"""
return _lldb.SBFunction_GetCanThrow(self)
def __eq__(self, rhs):
r"""__eq__(SBFunction self, SBFunction rhs) -> bool"""
return _lldb.SBFunction___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBFunction self, SBFunction rhs) -> bool"""
return _lldb.SBFunction___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBFunction self, SBStream description) -> bool"""
return _lldb.SBFunction_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBFunction self) -> std::string"""
return _lldb.SBFunction___repr__(self)
def get_instructions_from_current_target (self):
return self.GetInstructions (target)
addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this function.''')
end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this function.''')
block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the top level lexical block (lldb.SBBlock) for this function.''')
instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this function.''')
mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''')
name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''')
prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the return type (lldb.SBType) for this function.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBFunction in _lldb:
_lldb.SBFunction_swigregister(SBFunction)
class SBHostOS(object):
r"""Provides information about the host system."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
def GetProgramFileSpec():
r"""GetProgramFileSpec() -> SBFileSpec"""
return _lldb.SBHostOS_GetProgramFileSpec()
@staticmethod
def GetLLDBPythonPath():
r"""GetLLDBPythonPath() -> SBFileSpec"""
return _lldb.SBHostOS_GetLLDBPythonPath()
@staticmethod
def GetLLDBPath(path_type):
r"""GetLLDBPath(lldb::PathType path_type) -> SBFileSpec"""
return _lldb.SBHostOS_GetLLDBPath(path_type)
@staticmethod
def GetUserHomeDirectory():
r"""GetUserHomeDirectory() -> SBFileSpec"""
return _lldb.SBHostOS_GetUserHomeDirectory()
@staticmethod
def ThreadCreated(name):
r"""ThreadCreated(char const * name)"""
return _lldb.SBHostOS_ThreadCreated(name)
@staticmethod
def ThreadCreate(name, thread_function, thread_arg, err):
r"""ThreadCreate(char const * name, lldb::thread_func_t thread_function, void * thread_arg, SBError err) -> lldb::thread_t"""
return _lldb.SBHostOS_ThreadCreate(name, thread_function, thread_arg, err)
@staticmethod
def ThreadCancel(thread, err):
r"""ThreadCancel(lldb::thread_t thread, SBError err) -> bool"""
return _lldb.SBHostOS_ThreadCancel(thread, err)
@staticmethod
def ThreadDetach(thread, err):
r"""ThreadDetach(lldb::thread_t thread, SBError err) -> bool"""
return _lldb.SBHostOS_ThreadDetach(thread, err)
@staticmethod
def ThreadJoin(thread, result, err):
r"""ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool"""
return _lldb.SBHostOS_ThreadJoin(thread, result, err)
def __init__(self):
r"""__init__(SBHostOS self) -> SBHostOS"""
_lldb.SBHostOS_swiginit(self, _lldb.new_SBHostOS())
__swig_destroy__ = _lldb.delete_SBHostOS
# Register SBHostOS in _lldb:
_lldb.SBHostOS_swigregister(SBHostOS)
class SBInstruction(object):
r"""Represents a (machine language) instruction."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBInstruction self) -> SBInstruction
__init__(SBInstruction self, SBInstruction rhs) -> SBInstruction
"""
_lldb.SBInstruction_swiginit(self, _lldb.new_SBInstruction(*args))
__swig_destroy__ = _lldb.delete_SBInstruction
def __nonzero__(self):
return _lldb.SBInstruction___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBInstruction self) -> bool"""
return _lldb.SBInstruction_IsValid(self)
def GetAddress(self):
r"""GetAddress(SBInstruction self) -> SBAddress"""
return _lldb.SBInstruction_GetAddress(self)
def GetMnemonic(self, target):
r"""GetMnemonic(SBInstruction self, SBTarget target) -> char const *"""
return _lldb.SBInstruction_GetMnemonic(self, target)
def GetOperands(self, target):
r"""GetOperands(SBInstruction self, SBTarget target) -> char const *"""
return _lldb.SBInstruction_GetOperands(self, target)
def GetComment(self, target):
r"""GetComment(SBInstruction self, SBTarget target) -> char const *"""
return _lldb.SBInstruction_GetComment(self, target)
def GetControlFlowKind(self, target):
r"""GetControlFlowKind(SBInstruction self, SBTarget target) -> lldb::InstructionControlFlowKind"""
return _lldb.SBInstruction_GetControlFlowKind(self, target)
def GetData(self, target):
r"""GetData(SBInstruction self, SBTarget target) -> SBData"""
return _lldb.SBInstruction_GetData(self, target)
def GetByteSize(self):
r"""GetByteSize(SBInstruction self) -> size_t"""
return _lldb.SBInstruction_GetByteSize(self)
def DoesBranch(self):
r"""DoesBranch(SBInstruction self) -> bool"""
return _lldb.SBInstruction_DoesBranch(self)
def HasDelaySlot(self):
r"""HasDelaySlot(SBInstruction self) -> bool"""
return _lldb.SBInstruction_HasDelaySlot(self)
def CanSetBreakpoint(self):
r"""CanSetBreakpoint(SBInstruction self) -> bool"""
return _lldb.SBInstruction_CanSetBreakpoint(self)
def Print(self, *args):
r"""
Print(SBInstruction self, SBFile out)
Print(SBInstruction self, lldb::FileSP BORROWED)
"""
return _lldb.SBInstruction_Print(self, *args)
def GetDescription(self, description):
r"""GetDescription(SBInstruction self, SBStream description) -> bool"""
return _lldb.SBInstruction_GetDescription(self, description)
def EmulateWithFrame(self, frame, evaluate_options):
r"""EmulateWithFrame(SBInstruction self, SBFrame frame, uint32_t evaluate_options) -> bool"""
return _lldb.SBInstruction_EmulateWithFrame(self, frame, evaluate_options)
def DumpEmulation(self, triple):
r"""DumpEmulation(SBInstruction self, char const * triple) -> bool"""
return _lldb.SBInstruction_DumpEmulation(self, triple)
def TestEmulation(self, output_stream, test_file):
r"""TestEmulation(SBInstruction self, SBStream output_stream, char const * test_file) -> bool"""
return _lldb.SBInstruction_TestEmulation(self, output_stream, test_file)
def __repr__(self):
r"""__repr__(SBInstruction self) -> std::string"""
return _lldb.SBInstruction___repr__(self)
def __mnemonic_property__ (self):
return self.GetMnemonic (target)
def __operands_property__ (self):
return self.GetOperands (target)
def __comment_property__ (self):
return self.GetComment (target)
def __file_addr_property__ (self):
return self.GetAddress ().GetFileAddress()
def __load_adrr_property__ (self):
return self.GetComment (target)
mnemonic = property(__mnemonic_property__, None, doc='''A read only property that returns the mnemonic for this instruction as a string.''')
operands = property(__operands_property__, None, doc='''A read only property that returns the operands for this instruction as a string.''')
comment = property(__comment_property__, None, doc='''A read only property that returns the comment for this instruction as a string.''')
addr = property(GetAddress, None, doc='''A read only property that returns an lldb object that represents the address (lldb.SBAddress) for this instruction.''')
size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes for this instruction as an integer.''')
is_branch = property(DoesBranch, None, doc='''A read only property that returns a boolean value that indicates if this instruction is a branch instruction.''')
# Register SBInstruction in _lldb:
_lldb.SBInstruction_swigregister(SBInstruction)
class SBInstructionList(object):
r"""
Represents a list of machine instructions. SBFunction and SBSymbol have
GetInstructions() methods which return SBInstructionList instances.
SBInstructionList supports instruction (:py:class:`SBInstruction` instance) iteration.
For example (see also :py:class:`SBDebugger` for a more complete example), ::
def disassemble_instructions (insts):
for i in insts:
print i
defines a function which takes an SBInstructionList instance and prints out
the machine instructions in assembly format.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBInstructionList self) -> SBInstructionList
__init__(SBInstructionList self, SBInstructionList rhs) -> SBInstructionList
"""
_lldb.SBInstructionList_swiginit(self, _lldb.new_SBInstructionList(*args))
__swig_destroy__ = _lldb.delete_SBInstructionList
def __nonzero__(self):
return _lldb.SBInstructionList___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBInstructionList self) -> bool"""
return _lldb.SBInstructionList_IsValid(self)
def GetSize(self):
r"""GetSize(SBInstructionList self) -> size_t"""
return _lldb.SBInstructionList_GetSize(self)
def GetInstructionAtIndex(self, idx):
r"""GetInstructionAtIndex(SBInstructionList self, uint32_t idx) -> SBInstruction"""
return _lldb.SBInstructionList_GetInstructionAtIndex(self, idx)
def GetInstructionsCount(self, start, end, canSetBreakpoint=False):
r"""GetInstructionsCount(SBInstructionList self, SBAddress start, SBAddress end, bool canSetBreakpoint=False) -> size_t"""
return _lldb.SBInstructionList_GetInstructionsCount(self, start, end, canSetBreakpoint)
def Clear(self):
r"""Clear(SBInstructionList self)"""
return _lldb.SBInstructionList_Clear(self)
def AppendInstruction(self, inst):
r"""AppendInstruction(SBInstructionList self, SBInstruction inst)"""
return _lldb.SBInstructionList_AppendInstruction(self, inst)
def Print(self, *args):
r"""
Print(SBInstructionList self, SBFile out)
Print(SBInstructionList self, lldb::FileSP BORROWED)
"""
return _lldb.SBInstructionList_Print(self, *args)
def GetDescription(self, description):
r"""GetDescription(SBInstructionList self, SBStream description) -> bool"""
return _lldb.SBInstructionList_GetDescription(self, description)
def DumpEmulationForAllInstructions(self, triple):
r"""DumpEmulationForAllInstructions(SBInstructionList self, char const * triple) -> bool"""
return _lldb.SBInstructionList_DumpEmulationForAllInstructions(self, triple)
def __repr__(self):
r"""__repr__(SBInstructionList self) -> std::string"""
return _lldb.SBInstructionList___repr__(self)
def __iter__(self):
'''Iterate over all instructions in a lldb.SBInstructionList
object.'''
return lldb_iter(self, 'GetSize', 'GetInstructionAtIndex')
def __len__(self):
'''Access len of the instruction list.'''
return int(self.GetSize())
def __getitem__(self, key):
'''Access instructions by integer index for array access or by lldb.SBAddress to find an instruction that matches a section offset address object.'''
if type(key) is int:
# Find an instruction by index
count = len(self)
if -count <= key < count:
key %= count
return self.GetInstructionAtIndex(key)
elif type(key) is SBAddress:
# Find an instruction using a lldb.SBAddress object
lookup_file_addr = key.file_addr
closest_inst = None
for idx in range(self.GetSize()):
inst = self.GetInstructionAtIndex(idx)
inst_file_addr = inst.addr.file_addr
if inst_file_addr == lookup_file_addr:
return inst
elif inst_file_addr > lookup_file_addr:
return closest_inst
else:
closest_inst = inst
return None
# Register SBInstructionList in _lldb:
_lldb.SBInstructionList_swigregister(SBInstructionList)
eLanguageNameAda = _lldb.eLanguageNameAda
eLanguageNameBLISS = _lldb.eLanguageNameBLISS
eLanguageNameC = _lldb.eLanguageNameC
eLanguageNameC_plus_plus = _lldb.eLanguageNameC_plus_plus
eLanguageNameCobol = _lldb.eLanguageNameCobol
eLanguageNameCrystal = _lldb.eLanguageNameCrystal
eLanguageNameD = _lldb.eLanguageNameD
eLanguageNameDylan = _lldb.eLanguageNameDylan
eLanguageNameFortran = _lldb.eLanguageNameFortran
eLanguageNameGo = _lldb.eLanguageNameGo
eLanguageNameHaskell = _lldb.eLanguageNameHaskell
eLanguageNameJava = _lldb.eLanguageNameJava
eLanguageNameJulia = _lldb.eLanguageNameJulia
eLanguageNameKotlin = _lldb.eLanguageNameKotlin
eLanguageNameModula2 = _lldb.eLanguageNameModula2
eLanguageNameModula3 = _lldb.eLanguageNameModula3
eLanguageNameObjC = _lldb.eLanguageNameObjC
eLanguageNameObjC_plus_plus = _lldb.eLanguageNameObjC_plus_plus
eLanguageNameOCaml = _lldb.eLanguageNameOCaml
eLanguageNameOpenCL_C = _lldb.eLanguageNameOpenCL_C
eLanguageNamePascal = _lldb.eLanguageNamePascal
eLanguageNamePLI = _lldb.eLanguageNamePLI
eLanguageNamePython = _lldb.eLanguageNamePython
eLanguageNameRenderScript = _lldb.eLanguageNameRenderScript
eLanguageNameRust = _lldb.eLanguageNameRust
eLanguageNameSwift = _lldb.eLanguageNameSwift
eLanguageNameUPC = _lldb.eLanguageNameUPC
eLanguageNameZig = _lldb.eLanguageNameZig
eLanguageNameAssembly = _lldb.eLanguageNameAssembly
eLanguageNameC_sharp = _lldb.eLanguageNameC_sharp
eLanguageNameMojo = _lldb.eLanguageNameMojo
eLanguageNameGLSL = _lldb.eLanguageNameGLSL
eLanguageNameGLSL_ES = _lldb.eLanguageNameGLSL_ES
eLanguageNameHLSL = _lldb.eLanguageNameHLSL
eLanguageNameOpenCL_CPP = _lldb.eLanguageNameOpenCL_CPP
eLanguageNameCPP_for_OpenCL = _lldb.eLanguageNameCPP_for_OpenCL
eLanguageNameSYCL = _lldb.eLanguageNameSYCL
eLanguageNameRuby = _lldb.eLanguageNameRuby
eLanguageNameMove = _lldb.eLanguageNameMove
eLanguageNameHylo = _lldb.eLanguageNameHylo
class SBLanguageRuntime(object):
r"""Utility functions for :ref:`LanguageType`"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
def GetLanguageTypeFromString(string):
r"""GetLanguageTypeFromString(char const * string) -> lldb::LanguageType"""
return _lldb.SBLanguageRuntime_GetLanguageTypeFromString(string)
@staticmethod
def GetNameForLanguageType(language):
r"""GetNameForLanguageType(lldb::LanguageType language) -> char const *"""
return _lldb.SBLanguageRuntime_GetNameForLanguageType(language)
def __init__(self):
r"""__init__(SBLanguageRuntime self) -> SBLanguageRuntime"""
_lldb.SBLanguageRuntime_swiginit(self, _lldb.new_SBLanguageRuntime())
__swig_destroy__ = _lldb.delete_SBLanguageRuntime
# Register SBLanguageRuntime in _lldb:
_lldb.SBLanguageRuntime_swigregister(SBLanguageRuntime)
class SBLaunchInfo(object):
r"""Describes how a target or program should be launched."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, argv):
r"""__init__(SBLaunchInfo self, char const ** argv) -> SBLaunchInfo"""
_lldb.SBLaunchInfo_swiginit(self, _lldb.new_SBLaunchInfo(argv))
__swig_destroy__ = _lldb.delete_SBLaunchInfo
def GetProcessID(self):
r"""GetProcessID(SBLaunchInfo self) -> lldb::pid_t"""
return _lldb.SBLaunchInfo_GetProcessID(self)
def GetUserID(self):
r"""GetUserID(SBLaunchInfo self) -> uint32_t"""
return _lldb.SBLaunchInfo_GetUserID(self)
def GetGroupID(self):
r"""GetGroupID(SBLaunchInfo self) -> uint32_t"""
return _lldb.SBLaunchInfo_GetGroupID(self)
def UserIDIsValid(self):
r"""UserIDIsValid(SBLaunchInfo self) -> bool"""
return _lldb.SBLaunchInfo_UserIDIsValid(self)
def GroupIDIsValid(self):
r"""GroupIDIsValid(SBLaunchInfo self) -> bool"""
return _lldb.SBLaunchInfo_GroupIDIsValid(self)
def SetUserID(self, uid):
r"""SetUserID(SBLaunchInfo self, uint32_t uid)"""
return _lldb.SBLaunchInfo_SetUserID(self, uid)
def SetGroupID(self, gid):
r"""SetGroupID(SBLaunchInfo self, uint32_t gid)"""
return _lldb.SBLaunchInfo_SetGroupID(self, gid)
def GetExecutableFile(self):
r"""GetExecutableFile(SBLaunchInfo self) -> SBFileSpec"""
return _lldb.SBLaunchInfo_GetExecutableFile(self)
def SetExecutableFile(self, exe_file, add_as_first_arg):
r"""SetExecutableFile(SBLaunchInfo self, SBFileSpec exe_file, bool add_as_first_arg)"""
return _lldb.SBLaunchInfo_SetExecutableFile(self, exe_file, add_as_first_arg)
def GetListener(self):
r"""GetListener(SBLaunchInfo self) -> SBListener"""
return _lldb.SBLaunchInfo_GetListener(self)
def SetListener(self, listener):
r"""SetListener(SBLaunchInfo self, SBListener listener)"""
return _lldb.SBLaunchInfo_SetListener(self, listener)
def GetShadowListener(self):
r"""GetShadowListener(SBLaunchInfo self) -> SBListener"""
return _lldb.SBLaunchInfo_GetShadowListener(self)
def SetShadowListener(self, listener):
r"""SetShadowListener(SBLaunchInfo self, SBListener listener)"""
return _lldb.SBLaunchInfo_SetShadowListener(self, listener)
def GetNumArguments(self):
r"""GetNumArguments(SBLaunchInfo self) -> uint32_t"""
return _lldb.SBLaunchInfo_GetNumArguments(self)
def GetArgumentAtIndex(self, idx):
r"""GetArgumentAtIndex(SBLaunchInfo self, uint32_t idx) -> char const *"""
return _lldb.SBLaunchInfo_GetArgumentAtIndex(self, idx)
def SetArguments(self, argv, append):
r"""SetArguments(SBLaunchInfo self, char const ** argv, bool append)"""
return _lldb.SBLaunchInfo_SetArguments(self, argv, append)
def GetNumEnvironmentEntries(self):
r"""GetNumEnvironmentEntries(SBLaunchInfo self) -> uint32_t"""
return _lldb.SBLaunchInfo_GetNumEnvironmentEntries(self)
def GetEnvironmentEntryAtIndex(self, idx):
r"""GetEnvironmentEntryAtIndex(SBLaunchInfo self, uint32_t idx) -> char const *"""
return _lldb.SBLaunchInfo_GetEnvironmentEntryAtIndex(self, idx)
def SetEnvironmentEntries(self, envp, append):
r"""SetEnvironmentEntries(SBLaunchInfo self, char const ** envp, bool append)"""
return _lldb.SBLaunchInfo_SetEnvironmentEntries(self, envp, append)
def SetEnvironment(self, env, append):
r"""SetEnvironment(SBLaunchInfo self, SBEnvironment env, bool append)"""
return _lldb.SBLaunchInfo_SetEnvironment(self, env, append)
def GetEnvironment(self):
r"""GetEnvironment(SBLaunchInfo self) -> SBEnvironment"""
return _lldb.SBLaunchInfo_GetEnvironment(self)
def Clear(self):
r"""Clear(SBLaunchInfo self)"""
return _lldb.SBLaunchInfo_Clear(self)
def GetWorkingDirectory(self):
r"""GetWorkingDirectory(SBLaunchInfo self) -> char const *"""
return _lldb.SBLaunchInfo_GetWorkingDirectory(self)
def SetWorkingDirectory(self, working_dir):
r"""SetWorkingDirectory(SBLaunchInfo self, char const * working_dir)"""
return _lldb.SBLaunchInfo_SetWorkingDirectory(self, working_dir)
def GetLaunchFlags(self):
r"""GetLaunchFlags(SBLaunchInfo self) -> uint32_t"""
return _lldb.SBLaunchInfo_GetLaunchFlags(self)
def SetLaunchFlags(self, flags):
r"""SetLaunchFlags(SBLaunchInfo self, uint32_t flags)"""
return _lldb.SBLaunchInfo_SetLaunchFlags(self, flags)
def GetProcessPluginName(self):
r"""GetProcessPluginName(SBLaunchInfo self) -> char const *"""
return _lldb.SBLaunchInfo_GetProcessPluginName(self)
def SetProcessPluginName(self, plugin_name):
r"""SetProcessPluginName(SBLaunchInfo self, char const * plugin_name)"""
return _lldb.SBLaunchInfo_SetProcessPluginName(self, plugin_name)
def GetShell(self):
r"""GetShell(SBLaunchInfo self) -> char const *"""
return _lldb.SBLaunchInfo_GetShell(self)
def SetShell(self, path):
r"""SetShell(SBLaunchInfo self, char const * path)"""
return _lldb.SBLaunchInfo_SetShell(self, path)
def GetShellExpandArguments(self):
r"""GetShellExpandArguments(SBLaunchInfo self) -> bool"""
return _lldb.SBLaunchInfo_GetShellExpandArguments(self)
def SetShellExpandArguments(self, expand):
r"""SetShellExpandArguments(SBLaunchInfo self, bool expand)"""
return _lldb.SBLaunchInfo_SetShellExpandArguments(self, expand)
def GetResumeCount(self):
r"""GetResumeCount(SBLaunchInfo self) -> uint32_t"""
return _lldb.SBLaunchInfo_GetResumeCount(self)
def SetResumeCount(self, c):
r"""SetResumeCount(SBLaunchInfo self, uint32_t c)"""
return _lldb.SBLaunchInfo_SetResumeCount(self, c)
def AddCloseFileAction(self, fd):
r"""AddCloseFileAction(SBLaunchInfo self, int fd) -> bool"""
return _lldb.SBLaunchInfo_AddCloseFileAction(self, fd)
def AddDuplicateFileAction(self, fd, dup_fd):
r"""AddDuplicateFileAction(SBLaunchInfo self, int fd, int dup_fd) -> bool"""
return _lldb.SBLaunchInfo_AddDuplicateFileAction(self, fd, dup_fd)
def AddOpenFileAction(self, fd, path, read, write):
r"""AddOpenFileAction(SBLaunchInfo self, int fd, char const * path, bool read, bool write) -> bool"""
return _lldb.SBLaunchInfo_AddOpenFileAction(self, fd, path, read, write)
def AddSuppressFileAction(self, fd, read, write):
r"""AddSuppressFileAction(SBLaunchInfo self, int fd, bool read, bool write) -> bool"""
return _lldb.SBLaunchInfo_AddSuppressFileAction(self, fd, read, write)
def SetLaunchEventData(self, data):
r"""SetLaunchEventData(SBLaunchInfo self, char const * data)"""
return _lldb.SBLaunchInfo_SetLaunchEventData(self, data)
def GetLaunchEventData(self):
r"""GetLaunchEventData(SBLaunchInfo self) -> char const *"""
return _lldb.SBLaunchInfo_GetLaunchEventData(self)
def GetDetachOnError(self):
r"""GetDetachOnError(SBLaunchInfo self) -> bool"""
return _lldb.SBLaunchInfo_GetDetachOnError(self)
def SetDetachOnError(self, enable):
r"""SetDetachOnError(SBLaunchInfo self, bool enable)"""
return _lldb.SBLaunchInfo_SetDetachOnError(self, enable)
def GetScriptedProcessClassName(self):
r"""GetScriptedProcessClassName(SBLaunchInfo self) -> char const *"""
return _lldb.SBLaunchInfo_GetScriptedProcessClassName(self)
def SetScriptedProcessClassName(self, class_name):
r"""SetScriptedProcessClassName(SBLaunchInfo self, char const * class_name)"""
return _lldb.SBLaunchInfo_SetScriptedProcessClassName(self, class_name)
def GetScriptedProcessDictionary(self):
r"""GetScriptedProcessDictionary(SBLaunchInfo self) -> SBStructuredData"""
return _lldb.SBLaunchInfo_GetScriptedProcessDictionary(self)
def SetScriptedProcessDictionary(self, dict):
r"""SetScriptedProcessDictionary(SBLaunchInfo self, SBStructuredData dict)"""
return _lldb.SBLaunchInfo_SetScriptedProcessDictionary(self, dict)
# Register SBLaunchInfo in _lldb:
_lldb.SBLaunchInfo_swigregister(SBLaunchInfo)
class SBLineEntry(object):
r"""
Specifies an association with a contiguous range of instructions and
a source file location.
:py:class:`SBCompileUnit` contains SBLineEntry(s). For example, ::
for lineEntry in compileUnit:
print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
lineEntry.GetLine()))
print('start addr: %s' % str(lineEntry.GetStartAddress()))
print('end addr: %s' % str(lineEntry.GetEndAddress()))
produces: ::
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20
start addr: a.out[0x100000d98]
end addr: a.out[0x100000da3]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21
start addr: a.out[0x100000da3]
end addr: a.out[0x100000da9]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22
start addr: a.out[0x100000da9]
end addr: a.out[0x100000db6]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23
start addr: a.out[0x100000db6]
end addr: a.out[0x100000dbc]
...
See also :py:class:`SBCompileUnit` .
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBLineEntry self) -> SBLineEntry
__init__(SBLineEntry self, SBLineEntry rhs) -> SBLineEntry
"""
_lldb.SBLineEntry_swiginit(self, _lldb.new_SBLineEntry(*args))
__swig_destroy__ = _lldb.delete_SBLineEntry
def GetStartAddress(self):
r"""GetStartAddress(SBLineEntry self) -> SBAddress"""
return _lldb.SBLineEntry_GetStartAddress(self)
def GetEndAddress(self):
r"""GetEndAddress(SBLineEntry self) -> SBAddress"""
return _lldb.SBLineEntry_GetEndAddress(self)
def __nonzero__(self):
return _lldb.SBLineEntry___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBLineEntry self) -> bool"""
return _lldb.SBLineEntry_IsValid(self)
def GetFileSpec(self):
r"""GetFileSpec(SBLineEntry self) -> SBFileSpec"""
return _lldb.SBLineEntry_GetFileSpec(self)
def GetLine(self):
r"""GetLine(SBLineEntry self) -> uint32_t"""
return _lldb.SBLineEntry_GetLine(self)
def GetColumn(self):
r"""GetColumn(SBLineEntry self) -> uint32_t"""
return _lldb.SBLineEntry_GetColumn(self)
def SetFileSpec(self, filespec):
r"""SetFileSpec(SBLineEntry self, SBFileSpec filespec)"""
return _lldb.SBLineEntry_SetFileSpec(self, filespec)
def SetLine(self, line):
r"""SetLine(SBLineEntry self, uint32_t line)"""
return _lldb.SBLineEntry_SetLine(self, line)
def SetColumn(self, column):
r"""SetColumn(SBLineEntry self, uint32_t column)"""
return _lldb.SBLineEntry_SetColumn(self, column)
def __eq__(self, rhs):
r"""__eq__(SBLineEntry self, SBLineEntry rhs) -> bool"""
return _lldb.SBLineEntry___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBLineEntry self, SBLineEntry rhs) -> bool"""
return _lldb.SBLineEntry___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBLineEntry self, SBStream description) -> bool"""
return _lldb.SBLineEntry_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBLineEntry self) -> std::string"""
return _lldb.SBLineEntry___repr__(self)
file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')
addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this line entry.''')
end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this line entry.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBLineEntry in _lldb:
_lldb.SBLineEntry_swigregister(SBLineEntry)
class SBListener(object):
r"""
API clients can register its own listener to debugger events.
See also :py:class:`SBEvent` for example usage of creating and adding a listener.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBListener self) -> SBListener
__init__(SBListener self, char const * name) -> SBListener
__init__(SBListener self, SBListener rhs) -> SBListener
"""
_lldb.SBListener_swiginit(self, _lldb.new_SBListener(*args))
__swig_destroy__ = _lldb.delete_SBListener
def AddEvent(self, event):
r"""AddEvent(SBListener self, SBEvent event)"""
return _lldb.SBListener_AddEvent(self, event)
def Clear(self):
r"""Clear(SBListener self)"""
return _lldb.SBListener_Clear(self)
def __nonzero__(self):
return _lldb.SBListener___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBListener self) -> bool"""
return _lldb.SBListener_IsValid(self)
def StartListeningForEventClass(self, debugger, broadcaster_class, event_mask):
r"""StartListeningForEventClass(SBListener self, SBDebugger debugger, char const * broadcaster_class, uint32_t event_mask) -> uint32_t"""
return _lldb.SBListener_StartListeningForEventClass(self, debugger, broadcaster_class, event_mask)
def StopListeningForEventClass(self, debugger, broadcaster_class, event_mask):
r"""StopListeningForEventClass(SBListener self, SBDebugger debugger, char const * broadcaster_class, uint32_t event_mask) -> bool"""
return _lldb.SBListener_StopListeningForEventClass(self, debugger, broadcaster_class, event_mask)
def StartListeningForEvents(self, broadcaster, event_mask):
r"""StartListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> uint32_t"""
return _lldb.SBListener_StartListeningForEvents(self, broadcaster, event_mask)
def StopListeningForEvents(self, broadcaster, event_mask):
r"""StopListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> bool"""
return _lldb.SBListener_StopListeningForEvents(self, broadcaster, event_mask)
def WaitForEvent(self, num_seconds, event):
r"""WaitForEvent(SBListener self, uint32_t num_seconds, SBEvent event) -> bool"""
return _lldb.SBListener_WaitForEvent(self, num_seconds, event)
def WaitForEventForBroadcaster(self, num_seconds, broadcaster, sb_event):
r"""WaitForEventForBroadcaster(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, SBEvent sb_event) -> bool"""
return _lldb.SBListener_WaitForEventForBroadcaster(self, num_seconds, broadcaster, sb_event)
def WaitForEventForBroadcasterWithType(self, num_seconds, broadcaster, event_type_mask, sb_event):
r"""WaitForEventForBroadcasterWithType(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool"""
return _lldb.SBListener_WaitForEventForBroadcasterWithType(self, num_seconds, broadcaster, event_type_mask, sb_event)
def PeekAtNextEvent(self, sb_event):
r"""PeekAtNextEvent(SBListener self, SBEvent sb_event) -> bool"""
return _lldb.SBListener_PeekAtNextEvent(self, sb_event)
def PeekAtNextEventForBroadcaster(self, broadcaster, sb_event):
r"""PeekAtNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool"""
return _lldb.SBListener_PeekAtNextEventForBroadcaster(self, broadcaster, sb_event)
def PeekAtNextEventForBroadcasterWithType(self, broadcaster, event_type_mask, sb_event):
r"""PeekAtNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool"""
return _lldb.SBListener_PeekAtNextEventForBroadcasterWithType(self, broadcaster, event_type_mask, sb_event)
def GetNextEvent(self, sb_event):
r"""GetNextEvent(SBListener self, SBEvent sb_event) -> bool"""
return _lldb.SBListener_GetNextEvent(self, sb_event)
def GetNextEventForBroadcaster(self, broadcaster, sb_event):
r"""GetNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool"""
return _lldb.SBListener_GetNextEventForBroadcaster(self, broadcaster, sb_event)
def GetNextEventForBroadcasterWithType(self, broadcaster, event_type_mask, sb_event):
r"""GetNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool"""
return _lldb.SBListener_GetNextEventForBroadcasterWithType(self, broadcaster, event_type_mask, sb_event)
def HandleBroadcastEvent(self, event):
r"""HandleBroadcastEvent(SBListener self, SBEvent event) -> bool"""
return _lldb.SBListener_HandleBroadcastEvent(self, event)
# Register SBListener in _lldb:
_lldb.SBListener_swigregister(SBListener)
class SBMemoryRegionInfo(object):
r"""API clients can get information about memory regions in processes."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBMemoryRegionInfo self) -> SBMemoryRegionInfo
__init__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> SBMemoryRegionInfo
__init__(SBMemoryRegionInfo self, char const * name, lldb::addr_t begin, lldb::addr_t end, uint32_t permissions, bool mapped, bool stack_memory=False) -> SBMemoryRegionInfo
"""
_lldb.SBMemoryRegionInfo_swiginit(self, _lldb.new_SBMemoryRegionInfo(*args))
__swig_destroy__ = _lldb.delete_SBMemoryRegionInfo
def Clear(self):
r"""Clear(SBMemoryRegionInfo self)"""
return _lldb.SBMemoryRegionInfo_Clear(self)
def GetRegionBase(self):
r"""GetRegionBase(SBMemoryRegionInfo self) -> lldb::addr_t"""
return _lldb.SBMemoryRegionInfo_GetRegionBase(self)
def GetRegionEnd(self):
r"""GetRegionEnd(SBMemoryRegionInfo self) -> lldb::addr_t"""
return _lldb.SBMemoryRegionInfo_GetRegionEnd(self)
def IsReadable(self):
r"""IsReadable(SBMemoryRegionInfo self) -> bool"""
return _lldb.SBMemoryRegionInfo_IsReadable(self)
def IsWritable(self):
r"""IsWritable(SBMemoryRegionInfo self) -> bool"""
return _lldb.SBMemoryRegionInfo_IsWritable(self)
def IsExecutable(self):
r"""IsExecutable(SBMemoryRegionInfo self) -> bool"""
return _lldb.SBMemoryRegionInfo_IsExecutable(self)
def IsMapped(self):
r"""IsMapped(SBMemoryRegionInfo self) -> bool"""
return _lldb.SBMemoryRegionInfo_IsMapped(self)
def GetName(self):
r"""GetName(SBMemoryRegionInfo self) -> char const *"""
return _lldb.SBMemoryRegionInfo_GetName(self)
def HasDirtyMemoryPageList(self):
r"""
HasDirtyMemoryPageList(SBMemoryRegionInfo self) -> bool
Returns whether this memory region has a list of modified (dirty)
pages available or not. When calling GetNumDirtyPages(), you will
have 0 returned for both "dirty page list is not known" and
"empty dirty page list" (that is, no modified pages in this
memory region). You must use this method to disambiguate.
"""
return _lldb.SBMemoryRegionInfo_HasDirtyMemoryPageList(self)
def GetNumDirtyPages(self):
r"""
GetNumDirtyPages(SBMemoryRegionInfo self) -> uint32_t
Return the number of dirty (modified) memory pages in this
memory region, if available. You must use the
SBMemoryRegionInfo::HasDirtyMemoryPageList() method to
determine if a dirty memory list is available; it will depend
on the target system can provide this information.
"""
return _lldb.SBMemoryRegionInfo_GetNumDirtyPages(self)
def GetDirtyPageAddressAtIndex(self, idx):
r"""
GetDirtyPageAddressAtIndex(SBMemoryRegionInfo self, uint32_t idx) -> lldb::addr_t
Return the address of a modified, or dirty, page of memory.
If the provided index is out of range, or this memory region
does not have dirty page information, LLDB_INVALID_ADDRESS
is returned.
"""
return _lldb.SBMemoryRegionInfo_GetDirtyPageAddressAtIndex(self, idx)
def GetPageSize(self):
r"""
GetPageSize(SBMemoryRegionInfo self) -> int
Return the size of pages in this memory region. 0 will be returned
if this information was unavailable.
"""
return _lldb.SBMemoryRegionInfo_GetPageSize(self)
def __eq__(self, rhs):
r"""__eq__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool"""
return _lldb.SBMemoryRegionInfo___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool"""
return _lldb.SBMemoryRegionInfo___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBMemoryRegionInfo self, SBStream description) -> bool"""
return _lldb.SBMemoryRegionInfo_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBMemoryRegionInfo self) -> std::string"""
return _lldb.SBMemoryRegionInfo___repr__(self)
# Register SBMemoryRegionInfo in _lldb:
_lldb.SBMemoryRegionInfo_swigregister(SBMemoryRegionInfo)
class SBMemoryRegionInfoList(object):
r"""Represents a list of :py:class:`SBMemoryRegionInfo`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBMemoryRegionInfoList self) -> SBMemoryRegionInfoList
__init__(SBMemoryRegionInfoList self, SBMemoryRegionInfoList rhs) -> SBMemoryRegionInfoList
"""
_lldb.SBMemoryRegionInfoList_swiginit(self, _lldb.new_SBMemoryRegionInfoList(*args))
__swig_destroy__ = _lldb.delete_SBMemoryRegionInfoList
def GetSize(self):
r"""GetSize(SBMemoryRegionInfoList self) -> uint32_t"""
return _lldb.SBMemoryRegionInfoList_GetSize(self)
def GetMemoryRegionContainingAddress(self, addr, region_info):
r"""GetMemoryRegionContainingAddress(SBMemoryRegionInfoList self, lldb::addr_t addr, SBMemoryRegionInfo region_info) -> bool"""
return _lldb.SBMemoryRegionInfoList_GetMemoryRegionContainingAddress(self, addr, region_info)
def GetMemoryRegionAtIndex(self, idx, region_info):
r"""GetMemoryRegionAtIndex(SBMemoryRegionInfoList self, uint32_t idx, SBMemoryRegionInfo region_info) -> bool"""
return _lldb.SBMemoryRegionInfoList_GetMemoryRegionAtIndex(self, idx, region_info)
def Append(self, *args):
r"""
Append(SBMemoryRegionInfoList self, SBMemoryRegionInfo region)
Append(SBMemoryRegionInfoList self, SBMemoryRegionInfoList region_list)
"""
return _lldb.SBMemoryRegionInfoList_Append(self, *args)
def Clear(self):
r"""Clear(SBMemoryRegionInfoList self)"""
return _lldb.SBMemoryRegionInfoList_Clear(self)
# Register SBMemoryRegionInfoList in _lldb:
_lldb.SBMemoryRegionInfoList_swigregister(SBMemoryRegionInfoList)
class SBModule(object):
r"""
Represents an executable image and its associated object and symbol files.
The module is designed to be able to select a single slice of an
executable image as it would appear on disk and during program
execution.
You can retrieve SBModule from :py:class:`SBSymbolContext` , which in turn is available
from SBFrame.
SBModule supports symbol iteration, for example, ::
for symbol in module:
name = symbol.GetName()
saddr = symbol.GetStartAddress()
eaddr = symbol.GetEndAddress()
and rich comparison methods which allow the API program to use, ::
if thisModule == thatModule:
print('This module is the same as that module')
to test module equality. A module also contains object file sections, namely
:py:class:`SBSection` . SBModule supports section iteration through section_iter(), for
example, ::
print('Number of sections: %d' % module.GetNumSections())
for sec in module.section_iter():
print(sec)
And to iterate the symbols within a SBSection, use symbol_in_section_iter(), ::
# Iterates the text section and prints each symbols within each sub-section.
for subsec in text_sec:
print(INDENT + repr(subsec))
for sym in exe_module.symbol_in_section_iter(subsec):
print(INDENT2 + repr(sym))
print(INDENT2 + 'symbol type: %s' % symbol_type_to_str(sym.GetType()))
produces this following output: ::
[0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text
id = {0x00000004}, name = 'mask_access(MaskAction, unsigned int)', range = [0x00000001000017c0-0x0000000100001870)
symbol type: code
id = {0x00000008}, name = 'thread_func(void*)', range = [0x0000000100001870-0x00000001000019b0)
symbol type: code
id = {0x0000000c}, name = 'main', range = [0x00000001000019b0-0x0000000100001d5c)
symbol type: code
id = {0x00000023}, name = 'start', address = 0x0000000100001780
symbol type: code
[0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs
id = {0x00000024}, name = '__stack_chk_fail', range = [0x0000000100001d5c-0x0000000100001d62)
symbol type: trampoline
id = {0x00000028}, name = 'exit', range = [0x0000000100001d62-0x0000000100001d68)
symbol type: trampoline
id = {0x00000029}, name = 'fflush', range = [0x0000000100001d68-0x0000000100001d6e)
symbol type: trampoline
id = {0x0000002a}, name = 'fgets', range = [0x0000000100001d6e-0x0000000100001d74)
symbol type: trampoline
id = {0x0000002b}, name = 'printf', range = [0x0000000100001d74-0x0000000100001d7a)
symbol type: trampoline
id = {0x0000002c}, name = 'pthread_create', range = [0x0000000100001d7a-0x0000000100001d80)
symbol type: trampoline
id = {0x0000002d}, name = 'pthread_join', range = [0x0000000100001d80-0x0000000100001d86)
symbol type: trampoline
id = {0x0000002e}, name = 'pthread_mutex_lock', range = [0x0000000100001d86-0x0000000100001d8c)
symbol type: trampoline
id = {0x0000002f}, name = 'pthread_mutex_unlock', range = [0x0000000100001d8c-0x0000000100001d92)
symbol type: trampoline
id = {0x00000030}, name = 'rand', range = [0x0000000100001d92-0x0000000100001d98)
symbol type: trampoline
id = {0x00000031}, name = 'strtoul', range = [0x0000000100001d98-0x0000000100001d9e)
symbol type: trampoline
id = {0x00000032}, name = 'usleep', range = [0x0000000100001d9e-0x0000000100001da4)
symbol type: trampoline
[0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper
[0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring
[0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info
[0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBModule self) -> SBModule
__init__(SBModule self, SBModule rhs) -> SBModule
__init__(SBModule self, SBModuleSpec module_spec) -> SBModule
__init__(SBModule self, SBProcess process, lldb::addr_t header_addr) -> SBModule
"""
_lldb.SBModule_swiginit(self, _lldb.new_SBModule(*args))
__swig_destroy__ = _lldb.delete_SBModule
def __nonzero__(self):
return _lldb.SBModule___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBModule self) -> bool"""
return _lldb.SBModule_IsValid(self)
def Clear(self):
r"""Clear(SBModule self)"""
return _lldb.SBModule_Clear(self)
def IsFileBacked(self):
r"""
IsFileBacked(SBModule self) -> bool
Check if the module is file backed.
@return
True, if the module is backed by an object file on disk.
False, if the module is backed by an object file in memory.
"""
return _lldb.SBModule_IsFileBacked(self)
def GetFileSpec(self):
r"""
GetFileSpec(SBModule self) -> SBFileSpec
Get const accessor for the module file specification.
This function returns the file for the module on the host system
that is running LLDB. This can differ from the path on the
platform since we might be doing remote debugging.
@return
A const reference to the file specification object.
"""
return _lldb.SBModule_GetFileSpec(self)
def GetPlatformFileSpec(self):
r"""
GetPlatformFileSpec(SBModule self) -> SBFileSpec
Get accessor for the module platform file specification.
Platform file refers to the path of the module as it is known on
the remote system on which it is being debugged. For local
debugging this is always the same as Module::GetFileSpec(). But
remote debugging might mention a file '/usr/lib/liba.dylib'
which might be locally downloaded and cached. In this case the
platform file could be something like:
'/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib'
The file could also be cached in a local developer kit directory.
@return
A const reference to the file specification object.
"""
return _lldb.SBModule_GetPlatformFileSpec(self)
def SetPlatformFileSpec(self, platform_file):
r"""SetPlatformFileSpec(SBModule self, SBFileSpec platform_file) -> bool"""
return _lldb.SBModule_SetPlatformFileSpec(self, platform_file)
def GetRemoteInstallFileSpec(self):
r"""GetRemoteInstallFileSpec(SBModule self) -> SBFileSpec"""
return _lldb.SBModule_GetRemoteInstallFileSpec(self)
def SetRemoteInstallFileSpec(self, file):
r"""SetRemoteInstallFileSpec(SBModule self, SBFileSpec file) -> bool"""
return _lldb.SBModule_SetRemoteInstallFileSpec(self, file)
def GetByteOrder(self):
r"""GetByteOrder(SBModule self) -> lldb::ByteOrder"""
return _lldb.SBModule_GetByteOrder(self)
def GetAddressByteSize(self):
r"""GetAddressByteSize(SBModule self) -> uint32_t"""
return _lldb.SBModule_GetAddressByteSize(self)
def GetTriple(self):
r"""GetTriple(SBModule self) -> char const *"""
return _lldb.SBModule_GetTriple(self)
def GetUUIDBytes(self):
r"""GetUUIDBytes(SBModule self) -> uint8_t const *"""
return _lldb.SBModule_GetUUIDBytes(self)
def GetUUIDString(self):
r"""
GetUUIDString(SBModule self) -> char const *
Returns the UUID of the module as a Python string.
"""
return _lldb.SBModule_GetUUIDString(self)
def __eq__(self, rhs):
r"""__eq__(SBModule self, SBModule rhs) -> bool"""
return _lldb.SBModule___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBModule self, SBModule rhs) -> bool"""
return _lldb.SBModule___ne__(self, rhs)
def FindSection(self, sect_name):
r"""FindSection(SBModule self, char const * sect_name) -> SBSection"""
return _lldb.SBModule_FindSection(self, sect_name)
def ResolveFileAddress(self, vm_addr):
r"""ResolveFileAddress(SBModule self, lldb::addr_t vm_addr) -> SBAddress"""
return _lldb.SBModule_ResolveFileAddress(self, vm_addr)
def ResolveSymbolContextForAddress(self, addr, resolve_scope):
r"""ResolveSymbolContextForAddress(SBModule self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext"""
return _lldb.SBModule_ResolveSymbolContextForAddress(self, addr, resolve_scope)
def GetDescription(self, description):
r"""GetDescription(SBModule self, SBStream description) -> bool"""
return _lldb.SBModule_GetDescription(self, description)
def GetNumCompileUnits(self):
r"""GetNumCompileUnits(SBModule self) -> uint32_t"""
return _lldb.SBModule_GetNumCompileUnits(self)
def GetCompileUnitAtIndex(self, arg2):
r"""GetCompileUnitAtIndex(SBModule self, uint32_t arg2) -> SBCompileUnit"""
return _lldb.SBModule_GetCompileUnitAtIndex(self, arg2)
def FindCompileUnits(self, sb_file_spec):
r"""
FindCompileUnits(SBModule self, SBFileSpec sb_file_spec) -> SBSymbolContextList
Find compile units related to this module and passed source
file.
@param[in] sb_file_spec
A :py:class:`SBFileSpec` object that contains source file
specification.
@return
A :py:class:`SBSymbolContextList` that gets filled in with all of
the symbol contexts for all the matches.
"""
return _lldb.SBModule_FindCompileUnits(self, sb_file_spec)
def GetNumSymbols(self):
r"""GetNumSymbols(SBModule self) -> size_t"""
return _lldb.SBModule_GetNumSymbols(self)
def GetSymbolAtIndex(self, idx):
r"""GetSymbolAtIndex(SBModule self, size_t idx) -> SBSymbol"""
return _lldb.SBModule_GetSymbolAtIndex(self, idx)
def FindSymbol(self, *args):
r"""FindSymbol(SBModule self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbol"""
return _lldb.SBModule_FindSymbol(self, *args)
def FindSymbols(self, *args):
r"""FindSymbols(SBModule self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList"""
return _lldb.SBModule_FindSymbols(self, *args)
def GetNumSections(self):
r"""GetNumSections(SBModule self) -> size_t"""
return _lldb.SBModule_GetNumSections(self)
def GetSectionAtIndex(self, idx):
r"""GetSectionAtIndex(SBModule self, size_t idx) -> SBSection"""
return _lldb.SBModule_GetSectionAtIndex(self, idx)
def FindFunctions(self, *args):
r"""
FindFunctions(SBModule self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList
Find functions by name.
@param[in] name
The name of the function we are looking for.
@param[in] name_type_mask
A logical OR of one or more FunctionNameType enum bits that
indicate what kind of names should be used when doing the
lookup. Bits include fully qualified names, base names,
C++ methods, or ObjC selectors.
See FunctionNameType for more details.
@return
A symbol context list that gets filled in with all of the
matches.
"""
return _lldb.SBModule_FindFunctions(self, *args)
def FindGlobalVariables(self, target, name, max_matches):
r"""
FindGlobalVariables(SBModule self, SBTarget target, char const * name, uint32_t max_matches) -> SBValueList
Find global and static variables by name.
@param[in] target
A valid SBTarget instance representing the debuggee.
@param[in] name
The name of the global or static variable we are looking
for.
@param[in] max_matches
Allow the number of matches to be limited to max_matches.
@return
A list of matched variables in an SBValueList.
"""
return _lldb.SBModule_FindGlobalVariables(self, target, name, max_matches)
def FindFirstGlobalVariable(self, target, name):
r"""
FindFirstGlobalVariable(SBModule self, SBTarget target, char const * name) -> SBValue
Find the first global (or static) variable by name.
@param[in] target
A valid SBTarget instance representing the debuggee.
@param[in] name
The name of the global or static variable we are looking
for.
@return
An SBValue that gets filled in with the found variable (if any).
"""
return _lldb.SBModule_FindFirstGlobalVariable(self, target, name)
def FindFirstType(self, name):
r"""FindFirstType(SBModule self, char const * name) -> SBType"""
return _lldb.SBModule_FindFirstType(self, name)
def FindTypes(self, type):
r"""FindTypes(SBModule self, char const * type) -> SBTypeList"""
return _lldb.SBModule_FindTypes(self, type)
def GetTypeByID(self, uid):
r"""GetTypeByID(SBModule self, lldb::user_id_t uid) -> SBType"""
return _lldb.SBModule_GetTypeByID(self, uid)
def GetBasicType(self, type):
r"""GetBasicType(SBModule self, lldb::BasicType type) -> SBType"""
return _lldb.SBModule_GetBasicType(self, type)
def GetTypes(self, *args):
r"""
GetTypes(SBModule self, uint32_t type_mask=eTypeClassAny) -> SBTypeList
Get all types matching type_mask from debug info in this
module.
@param[in] type_mask
A bitfield that consists of one or more bits logically OR'ed
together from the lldb::TypeClass enumeration. This allows
you to request only structure types, or only class, struct
and union types. Passing in lldb::eTypeClassAny will return
all types found in the debug information for this module.
@return
A list of types in this module that match type_mask
"""
return _lldb.SBModule_GetTypes(self, *args)
def GetVersion(self):
r"""GetVersion(SBModule self) -> uint32_t"""
return _lldb.SBModule_GetVersion(self)
def GetSymbolFileSpec(self):
r"""GetSymbolFileSpec(SBModule self) -> SBFileSpec"""
return _lldb.SBModule_GetSymbolFileSpec(self)
def GetObjectFileHeaderAddress(self):
r"""GetObjectFileHeaderAddress(SBModule self) -> SBAddress"""
return _lldb.SBModule_GetObjectFileHeaderAddress(self)
def GetObjectFileEntryPointAddress(self):
r"""GetObjectFileEntryPointAddress(SBModule self) -> SBAddress"""
return _lldb.SBModule_GetObjectFileEntryPointAddress(self)
def IsTypeSystemCompatible(self, language):
r"""IsTypeSystemCompatible(SBModule self, lldb::LanguageType language) -> SBError"""
return _lldb.SBModule_IsTypeSystemCompatible(self, language)
@staticmethod
def GetNumberAllocatedModules():
r"""
GetNumberAllocatedModules() -> uint32_t
Returns the number of modules in the module cache. This is an
implementation detail exposed for testing and should not be relied upon.
@return
The number of modules in the module cache.
"""
return _lldb.SBModule_GetNumberAllocatedModules()
@staticmethod
def GarbageCollectAllocatedModules():
r"""
GarbageCollectAllocatedModules()
Removes all modules which are no longer needed by any part of LLDB from
the module cache.
This is an implementation detail exposed for testing and should not be
relied upon. Use SBDebugger::MemoryPressureDetected instead to reduce
LLDB's memory consumption during execution.
"""
return _lldb.SBModule_GarbageCollectAllocatedModules()
def __repr__(self):
r"""__repr__(SBModule self) -> std::string"""
return _lldb.SBModule___repr__(self)
def __len__(self):
'''Return the number of symbols in a lldb.SBModule object.'''
return self.GetNumSymbols()
def __iter__(self):
'''Iterate over all symbols in a lldb.SBModule object.'''
return lldb_iter(self, 'GetNumSymbols', 'GetSymbolAtIndex')
def section_iter(self):
'''Iterate over all sections in a lldb.SBModule object.'''
return lldb_iter(self, 'GetNumSections', 'GetSectionAtIndex')
def compile_unit_iter(self):
'''Iterate over all compile units in a lldb.SBModule object.'''
return lldb_iter(self, 'GetNumCompileUnits', 'GetCompileUnitAtIndex')
def symbol_in_section_iter(self, section):
'''Given a module and its contained section, returns an iterator on the
symbols within the section.'''
for sym in self:
if in_range(sym, section):
yield sym
class symbols_access(object):
re_compile_type = type(re.compile('.'))
'''A helper object that will lazily hand out lldb.SBSymbol objects for a module when supplied an index, name, or regular expression.'''
def __init__(self, sbmodule):
self.sbmodule = sbmodule
def __len__(self):
if self.sbmodule:
return int(self.sbmodule.GetNumSymbols())
return 0
def __getitem__(self, key):
count = len(self)
if type(key) is int:
if -count <= key < count:
key %= count
return self.sbmodule.GetSymbolAtIndex(key)
elif type(key) is str:
matches = []
sc_list = self.sbmodule.FindSymbols(key)
for sc in sc_list:
symbol = sc.symbol
if symbol:
matches.append(symbol)
return matches
elif isinstance(key, self.re_compile_type):
matches = []
for idx in range(count):
symbol = self.sbmodule.GetSymbolAtIndex(idx)
added = False
name = symbol.name
if name:
re_match = key.search(name)
if re_match:
matches.append(symbol)
added = True
if not added:
mangled = symbol.mangled
if mangled:
re_match = key.search(mangled)
if re_match:
matches.append(symbol)
return matches
else:
print("error: unsupported item type: %s" % type(key))
return None
def get_symbols_access_object(self):
'''An accessor function that returns a symbols_access() object which allows lazy symbol access from a lldb.SBModule object.'''
return self.symbols_access (self)
def get_compile_units_access_object (self):
'''An accessor function that returns a compile_units_access() object which allows lazy compile unit access from a lldb.SBModule object.'''
return self.compile_units_access (self)
def get_symbols_array(self):
'''An accessor function that returns a list() that contains all symbols in a lldb.SBModule object.'''
symbols = []
for idx in range(self.num_symbols):
symbols.append(self.GetSymbolAtIndex(idx))
return symbols
class sections_access(object):
re_compile_type = type(re.compile('.'))
'''A helper object that will lazily hand out lldb.SBSection objects for a module when supplied an index, name, or regular expression.'''
def __init__(self, sbmodule):
self.sbmodule = sbmodule
def __len__(self):
if self.sbmodule:
return int(self.sbmodule.GetNumSections())
return 0
def __getitem__(self, key):
count = len(self)
if type(key) is int:
if -count <= key < count:
key %= count
return self.sbmodule.GetSectionAtIndex(key)
elif type(key) is str:
for idx in range(count):
section = self.sbmodule.GetSectionAtIndex(idx)
if section.name == key:
return section
elif isinstance(key, self.re_compile_type):
matches = []
for idx in range(count):
section = self.sbmodule.GetSectionAtIndex(idx)
name = section.name
if name:
re_match = key.search(name)
if re_match:
matches.append(section)
return matches
else:
print("error: unsupported item type: %s" % type(key))
return None
class compile_units_access(object):
re_compile_type = type(re.compile('.'))
'''A helper object that will lazily hand out lldb.SBCompileUnit objects for a module when supplied an index, full or partial path, or regular expression.'''
def __init__(self, sbmodule):
self.sbmodule = sbmodule
def __len__(self):
if self.sbmodule:
return int(self.sbmodule.GetNumCompileUnits())
return 0
def __getitem__(self, key):
count = len(self)
if type(key) is int:
if -count <= key < count:
key %= count
return self.sbmodule.GetCompileUnitAtIndex(key)
elif type(key) is str:
is_full_path = key[0] == '/'
for idx in range(count):
comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx)
if is_full_path:
if comp_unit.file.fullpath == key:
return comp_unit
else:
if comp_unit.file.basename == key:
return comp_unit
elif isinstance(key, self.re_compile_type):
matches = []
for idx in range(count):
comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx)
fullpath = comp_unit.file.fullpath
if fullpath:
re_match = key.search(fullpath)
if re_match:
matches.append(comp_unit)
return matches
else:
print("error: unsupported item type: %s" % type(key))
return None
def get_sections_access_object(self):
'''An accessor function that returns a sections_access() object which allows lazy section array access.'''
return self.sections_access (self)
def get_sections_array(self):
'''An accessor function that returns an array object that contains all sections in this module object.'''
if not hasattr(self, 'sections_array'):
self.sections_array = []
for idx in range(self.num_sections):
self.sections_array.append(self.GetSectionAtIndex(idx))
return self.sections_array
def get_compile_units_array(self):
'''An accessor function that returns an array object that contains all compile_units in this module object.'''
if not hasattr(self, 'compile_units_array'):
self.compile_units_array = []
for idx in range(self.GetNumCompileUnits()):
self.compile_units_array.append(self.GetCompileUnitAtIndex(idx))
return self.compile_units_array
symbols = property(get_symbols_array, None, doc='''A read only property that returns a list() of lldb.SBSymbol objects contained in this module.''')
symbol = property(get_symbols_access_object, None, doc='''A read only property that can be used to access symbols by index ("symbol = module.symbol[0]"), name ("symbols = module.symbol['main']"), or using a regular expression ("symbols = module.symbol[re.compile(...)]"). The return value is a single lldb.SBSymbol object for array access, and a list() of lldb.SBSymbol objects for name and regular expression access''')
sections = property(get_sections_array, None, doc='''A read only property that returns a list() of lldb.SBSection objects contained in this module.''')
compile_units = property(get_compile_units_array, None, doc='''A read only property that returns a list() of lldb.SBCompileUnit objects contained in this module.''')
section = property(get_sections_access_object, None, doc='''A read only property that can be used to access symbols by index ("section = module.section[0]"), name ("sections = module.section[\'main\']"), or using a regular expression ("sections = module.section[re.compile(...)]"). The return value is a single lldb.SBSection object for array access, and a list() of lldb.SBSection objects for name and regular expression access''')
section = property(get_sections_access_object, None, doc='''A read only property that can be used to access compile units by index ("compile_unit = module.compile_unit[0]"), name ("compile_unit = module.compile_unit[\'main.cpp\']"), or using a regular expression ("compile_unit = module.compile_unit[re.compile(...)]"). The return value is a single lldb.SBCompileUnit object for array access or by full or partial path, and a list() of lldb.SBCompileUnit objects regular expressions.''')
def get_uuid(self):
return uuid.UUID (self.GetUUIDString())
uuid = property(get_uuid, None, doc='''A read only property that returns a standard python uuid.UUID object that represents the UUID of this module.''')
file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented where it is being debugged.''')
platform_file = property(GetPlatformFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented on the current host system.''')
byte_order = property(GetByteOrder, None, doc='''A read only property that returns an lldb enumeration value (lldb.eByteOrderLittle, lldb.eByteOrderBig, lldb.eByteOrderInvalid) that represents the byte order for this module.''')
addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this module.''')
triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this module.''')
num_symbols = property(GetNumSymbols, None, doc='''A read only property that returns number of symbols in the module symbol table as an integer.''')
num_sections = property(GetNumSections, None, doc='''A read only property that returns number of sections in the module as an integer.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBModule in _lldb:
_lldb.SBModule_swigregister(SBModule)
class SBModuleSpec(object):
r"""Proxy of C++ lldb::SBModuleSpec class."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBModuleSpec self) -> SBModuleSpec
__init__(SBModuleSpec self, SBModuleSpec rhs) -> SBModuleSpec
"""
_lldb.SBModuleSpec_swiginit(self, _lldb.new_SBModuleSpec(*args))
__swig_destroy__ = _lldb.delete_SBModuleSpec
def __nonzero__(self):
return _lldb.SBModuleSpec___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBModuleSpec self) -> bool"""
return _lldb.SBModuleSpec_IsValid(self)
def Clear(self):
r"""Clear(SBModuleSpec self)"""
return _lldb.SBModuleSpec_Clear(self)
def GetFileSpec(self):
r"""
GetFileSpec(SBModuleSpec self) -> SBFileSpec
Get const accessor for the module file.
This function returns the file for the module on the host system
that is running LLDB. This can differ from the path on the
platform since we might be doing remote debugging.
@return
A const reference to the file specification object.
"""
return _lldb.SBModuleSpec_GetFileSpec(self)
def SetFileSpec(self, fspec):
r"""SetFileSpec(SBModuleSpec self, SBFileSpec fspec)"""
return _lldb.SBModuleSpec_SetFileSpec(self, fspec)
def GetPlatformFileSpec(self):
r"""
GetPlatformFileSpec(SBModuleSpec self) -> SBFileSpec
Get accessor for the module platform file.
Platform file refers to the path of the module as it is known on
the remote system on which it is being debugged. For local
debugging this is always the same as Module::GetFileSpec(). But
remote debugging might mention a file '/usr/lib/liba.dylib'
which might be locally downloaded and cached. In this case the
platform file could be something like:
'/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib'
The file could also be cached in a local developer kit directory.
@return
A const reference to the file specification object.
"""
return _lldb.SBModuleSpec_GetPlatformFileSpec(self)
def SetPlatformFileSpec(self, fspec):
r"""SetPlatformFileSpec(SBModuleSpec self, SBFileSpec fspec)"""
return _lldb.SBModuleSpec_SetPlatformFileSpec(self, fspec)
def GetSymbolFileSpec(self):
r"""GetSymbolFileSpec(SBModuleSpec self) -> SBFileSpec"""
return _lldb.SBModuleSpec_GetSymbolFileSpec(self)
def SetSymbolFileSpec(self, fspec):
r"""SetSymbolFileSpec(SBModuleSpec self, SBFileSpec fspec)"""
return _lldb.SBModuleSpec_SetSymbolFileSpec(self, fspec)
def GetObjectName(self):
r"""GetObjectName(SBModuleSpec self) -> char const *"""
return _lldb.SBModuleSpec_GetObjectName(self)
def SetObjectName(self, name):
r"""SetObjectName(SBModuleSpec self, char const * name)"""
return _lldb.SBModuleSpec_SetObjectName(self, name)
def GetTriple(self):
r"""GetTriple(SBModuleSpec self) -> char const *"""
return _lldb.SBModuleSpec_GetTriple(self)
def SetTriple(self, triple):
r"""SetTriple(SBModuleSpec self, char const * triple)"""
return _lldb.SBModuleSpec_SetTriple(self, triple)
def GetUUIDBytes(self):
r"""GetUUIDBytes(SBModuleSpec self) -> uint8_t const *"""
return _lldb.SBModuleSpec_GetUUIDBytes(self)
def GetUUIDLength(self):
r"""GetUUIDLength(SBModuleSpec self) -> size_t"""
return _lldb.SBModuleSpec_GetUUIDLength(self)
def SetUUIDBytes(self, uuid, uuid_len):
r"""SetUUIDBytes(SBModuleSpec self, uint8_t const * uuid, size_t uuid_len) -> bool"""
return _lldb.SBModuleSpec_SetUUIDBytes(self, uuid, uuid_len)
def GetObjectOffset(self):
r"""GetObjectOffset(SBModuleSpec self) -> uint64_t"""
return _lldb.SBModuleSpec_GetObjectOffset(self)
def SetObjectOffset(self, object_offset):
r"""SetObjectOffset(SBModuleSpec self, uint64_t object_offset)"""
return _lldb.SBModuleSpec_SetObjectOffset(self, object_offset)
def GetObjectSize(self):
r"""GetObjectSize(SBModuleSpec self) -> uint64_t"""
return _lldb.SBModuleSpec_GetObjectSize(self)
def SetObjectSize(self, object_size):
r"""SetObjectSize(SBModuleSpec self, uint64_t object_size)"""
return _lldb.SBModuleSpec_SetObjectSize(self, object_size)
def GetDescription(self, description):
r"""GetDescription(SBModuleSpec self, SBStream description) -> bool"""
return _lldb.SBModuleSpec_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBModuleSpec self) -> std::string"""
return _lldb.SBModuleSpec___repr__(self)
# Register SBModuleSpec in _lldb:
_lldb.SBModuleSpec_swigregister(SBModuleSpec)
class SBModuleSpecList(object):
r"""Represents a list of :py:class:`SBModuleSpec`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBModuleSpecList self) -> SBModuleSpecList
__init__(SBModuleSpecList self, SBModuleSpecList rhs) -> SBModuleSpecList
"""
_lldb.SBModuleSpecList_swiginit(self, _lldb.new_SBModuleSpecList(*args))
__swig_destroy__ = _lldb.delete_SBModuleSpecList
@staticmethod
def GetModuleSpecifications(path):
r"""GetModuleSpecifications(char const * path) -> SBModuleSpecList"""
return _lldb.SBModuleSpecList_GetModuleSpecifications(path)
def Append(self, *args):
r"""
Append(SBModuleSpecList self, SBModuleSpec spec)
Append(SBModuleSpecList self, SBModuleSpecList spec_list)
"""
return _lldb.SBModuleSpecList_Append(self, *args)
def FindFirstMatchingSpec(self, match_spec):
r"""FindFirstMatchingSpec(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpec"""
return _lldb.SBModuleSpecList_FindFirstMatchingSpec(self, match_spec)
def FindMatchingSpecs(self, match_spec):
r"""FindMatchingSpecs(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpecList"""
return _lldb.SBModuleSpecList_FindMatchingSpecs(self, match_spec)
def GetSize(self):
r"""GetSize(SBModuleSpecList self) -> size_t"""
return _lldb.SBModuleSpecList_GetSize(self)
def GetSpecAtIndex(self, i):
r"""GetSpecAtIndex(SBModuleSpecList self, size_t i) -> SBModuleSpec"""
return _lldb.SBModuleSpecList_GetSpecAtIndex(self, i)
def GetDescription(self, description):
r"""GetDescription(SBModuleSpecList self, SBStream description) -> bool"""
return _lldb.SBModuleSpecList_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBModuleSpecList self) -> std::string"""
return _lldb.SBModuleSpecList___repr__(self)
# Register SBModuleSpecList in _lldb:
_lldb.SBModuleSpecList_swigregister(SBModuleSpecList)
class SBPlatformConnectOptions(object):
r"""Describes how :py:class:`SBPlatform.ConnectRemote` connects to a remote platform."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBPlatformConnectOptions self, char const * url) -> SBPlatformConnectOptions
__init__(SBPlatformConnectOptions self, SBPlatformConnectOptions rhs) -> SBPlatformConnectOptions
"""
_lldb.SBPlatformConnectOptions_swiginit(self, _lldb.new_SBPlatformConnectOptions(*args))
__swig_destroy__ = _lldb.delete_SBPlatformConnectOptions
def GetURL(self):
r"""GetURL(SBPlatformConnectOptions self) -> char const *"""
return _lldb.SBPlatformConnectOptions_GetURL(self)
def SetURL(self, url):
r"""SetURL(SBPlatformConnectOptions self, char const * url)"""
return _lldb.SBPlatformConnectOptions_SetURL(self, url)
def GetRsyncEnabled(self):
r"""GetRsyncEnabled(SBPlatformConnectOptions self) -> bool"""
return _lldb.SBPlatformConnectOptions_GetRsyncEnabled(self)
def EnableRsync(self, options, remote_path_prefix, omit_remote_hostname):
r"""EnableRsync(SBPlatformConnectOptions self, char const * options, char const * remote_path_prefix, bool omit_remote_hostname)"""
return _lldb.SBPlatformConnectOptions_EnableRsync(self, options, remote_path_prefix, omit_remote_hostname)
def DisableRsync(self):
r"""DisableRsync(SBPlatformConnectOptions self)"""
return _lldb.SBPlatformConnectOptions_DisableRsync(self)
def GetLocalCacheDirectory(self):
r"""GetLocalCacheDirectory(SBPlatformConnectOptions self) -> char const *"""
return _lldb.SBPlatformConnectOptions_GetLocalCacheDirectory(self)
def SetLocalCacheDirectory(self, path):
r"""SetLocalCacheDirectory(SBPlatformConnectOptions self, char const * path)"""
return _lldb.SBPlatformConnectOptions_SetLocalCacheDirectory(self, path)
# Register SBPlatformConnectOptions in _lldb:
_lldb.SBPlatformConnectOptions_swigregister(SBPlatformConnectOptions)
class SBPlatformShellCommand(object):
r"""Represents a shell command that can be run by :py:class:`SBPlatform.Run`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBPlatformShellCommand self, char const * shell, char const * shell_command) -> SBPlatformShellCommand
__init__(SBPlatformShellCommand self, char const * shell_command) -> SBPlatformShellCommand
__init__(SBPlatformShellCommand self, SBPlatformShellCommand rhs) -> SBPlatformShellCommand
"""
_lldb.SBPlatformShellCommand_swiginit(self, _lldb.new_SBPlatformShellCommand(*args))
__swig_destroy__ = _lldb.delete_SBPlatformShellCommand
def Clear(self):
r"""Clear(SBPlatformShellCommand self)"""
return _lldb.SBPlatformShellCommand_Clear(self)
def GetShell(self):
r"""GetShell(SBPlatformShellCommand self) -> char const *"""
return _lldb.SBPlatformShellCommand_GetShell(self)
def SetShell(self, shell):
r"""SetShell(SBPlatformShellCommand self, char const * shell)"""
return _lldb.SBPlatformShellCommand_SetShell(self, shell)
def GetCommand(self):
r"""GetCommand(SBPlatformShellCommand self) -> char const *"""
return _lldb.SBPlatformShellCommand_GetCommand(self)
def SetCommand(self, shell_command):
r"""SetCommand(SBPlatformShellCommand self, char const * shell_command)"""
return _lldb.SBPlatformShellCommand_SetCommand(self, shell_command)
def GetWorkingDirectory(self):
r"""GetWorkingDirectory(SBPlatformShellCommand self) -> char const *"""
return _lldb.SBPlatformShellCommand_GetWorkingDirectory(self)
def SetWorkingDirectory(self, path):
r"""SetWorkingDirectory(SBPlatformShellCommand self, char const * path)"""
return _lldb.SBPlatformShellCommand_SetWorkingDirectory(self, path)
def GetTimeoutSeconds(self):
r"""GetTimeoutSeconds(SBPlatformShellCommand self) -> uint32_t"""
return _lldb.SBPlatformShellCommand_GetTimeoutSeconds(self)
def SetTimeoutSeconds(self, sec):
r"""SetTimeoutSeconds(SBPlatformShellCommand self, uint32_t sec)"""
return _lldb.SBPlatformShellCommand_SetTimeoutSeconds(self, sec)
def GetSignal(self):
r"""GetSignal(SBPlatformShellCommand self) -> int"""
return _lldb.SBPlatformShellCommand_GetSignal(self)
def GetStatus(self):
r"""GetStatus(SBPlatformShellCommand self) -> int"""
return _lldb.SBPlatformShellCommand_GetStatus(self)
def GetOutput(self):
r"""GetOutput(SBPlatformShellCommand self) -> char const *"""
return _lldb.SBPlatformShellCommand_GetOutput(self)
# Register SBPlatformShellCommand in _lldb:
_lldb.SBPlatformShellCommand_swigregister(SBPlatformShellCommand)
class SBPlatform(object):
r"""
A class that represents a platform that can represent the current host or a remote host debug platform.
The SBPlatform class represents the current host, or a remote host.
It can be connected to a remote platform in order to provide ways
to remotely launch and attach to processes, upload/download files,
create directories, run remote shell commands, find locally cached
versions of files from the remote system, and much more.
SBPlatform objects can be created and then used to connect to a remote
platform which allows the SBPlatform to be used to get a list of the
current processes on the remote host, attach to one of those processes,
install programs on the remote system, attach and launch processes,
and much more.
Every :py:class:`SBTarget` has a corresponding SBPlatform. The platform can be
specified upon target creation, or the currently selected platform
will attempt to be used when creating the target automatically as long
as the currently selected platform matches the target architecture
and executable type. If the architecture or executable type do not match,
a suitable platform will be found automatically.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBPlatform self) -> SBPlatform
__init__(SBPlatform self, char const * platform_name) -> SBPlatform
__init__(SBPlatform self, SBPlatform rhs) -> SBPlatform
"""
_lldb.SBPlatform_swiginit(self, _lldb.new_SBPlatform(*args))
__swig_destroy__ = _lldb.delete_SBPlatform
@staticmethod
def GetHostPlatform():
r"""GetHostPlatform() -> SBPlatform"""
return _lldb.SBPlatform_GetHostPlatform()
def __nonzero__(self):
return _lldb.SBPlatform___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBPlatform self) -> bool"""
return _lldb.SBPlatform_IsValid(self)
def Clear(self):
r"""Clear(SBPlatform self)"""
return _lldb.SBPlatform_Clear(self)
def GetWorkingDirectory(self):
r"""GetWorkingDirectory(SBPlatform self) -> char const *"""
return _lldb.SBPlatform_GetWorkingDirectory(self)
def SetWorkingDirectory(self, path):
r"""SetWorkingDirectory(SBPlatform self, char const * path) -> bool"""
return _lldb.SBPlatform_SetWorkingDirectory(self, path)
def GetName(self):
r"""GetName(SBPlatform self) -> char const *"""
return _lldb.SBPlatform_GetName(self)
def ConnectRemote(self, connect_options):
r"""ConnectRemote(SBPlatform self, SBPlatformConnectOptions connect_options) -> SBError"""
return _lldb.SBPlatform_ConnectRemote(self, connect_options)
def DisconnectRemote(self):
r"""DisconnectRemote(SBPlatform self)"""
return _lldb.SBPlatform_DisconnectRemote(self)
def IsConnected(self):
r"""IsConnected(SBPlatform self) -> bool"""
return _lldb.SBPlatform_IsConnected(self)
def GetTriple(self):
r"""GetTriple(SBPlatform self) -> char const *"""
return _lldb.SBPlatform_GetTriple(self)
def GetHostname(self):
r"""GetHostname(SBPlatform self) -> char const *"""
return _lldb.SBPlatform_GetHostname(self)
def GetOSBuild(self):
r"""GetOSBuild(SBPlatform self) -> char const *"""
return _lldb.SBPlatform_GetOSBuild(self)
def GetOSDescription(self):
r"""GetOSDescription(SBPlatform self) -> char const *"""
return _lldb.SBPlatform_GetOSDescription(self)
def GetOSMajorVersion(self):
r"""GetOSMajorVersion(SBPlatform self) -> uint32_t"""
return _lldb.SBPlatform_GetOSMajorVersion(self)
def GetOSMinorVersion(self):
r"""GetOSMinorVersion(SBPlatform self) -> uint32_t"""
return _lldb.SBPlatform_GetOSMinorVersion(self)
def GetOSUpdateVersion(self):
r"""GetOSUpdateVersion(SBPlatform self) -> uint32_t"""
return _lldb.SBPlatform_GetOSUpdateVersion(self)
def SetSDKRoot(self, sysroot):
r"""SetSDKRoot(SBPlatform self, char const * sysroot)"""
return _lldb.SBPlatform_SetSDKRoot(self, sysroot)
def Put(self, src, dst):
r"""Put(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError"""
return _lldb.SBPlatform_Put(self, src, dst)
def Get(self, src, dst):
r"""Get(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError"""
return _lldb.SBPlatform_Get(self, src, dst)
def Install(self, src, dst):
r"""Install(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError"""
return _lldb.SBPlatform_Install(self, src, dst)
def Run(self, shell_command):
r"""Run(SBPlatform self, SBPlatformShellCommand shell_command) -> SBError"""
return _lldb.SBPlatform_Run(self, shell_command)
def Launch(self, launch_info):
r"""Launch(SBPlatform self, SBLaunchInfo launch_info) -> SBError"""
return _lldb.SBPlatform_Launch(self, launch_info)
def Kill(self, pid):
r"""Kill(SBPlatform self, lldb::pid_t const pid) -> SBError"""
return _lldb.SBPlatform_Kill(self, pid)
def MakeDirectory(self, *args):
r"""MakeDirectory(SBPlatform self, char const * path, uint32_t file_permissions=eFilePermissionsDirectoryDefault) -> SBError"""
return _lldb.SBPlatform_MakeDirectory(self, *args)
def GetFilePermissions(self, path):
r"""GetFilePermissions(SBPlatform self, char const * path) -> uint32_t"""
return _lldb.SBPlatform_GetFilePermissions(self, path)
def SetFilePermissions(self, path, file_permissions):
r"""SetFilePermissions(SBPlatform self, char const * path, uint32_t file_permissions) -> SBError"""
return _lldb.SBPlatform_SetFilePermissions(self, path, file_permissions)
def GetUnixSignals(self):
r"""GetUnixSignals(SBPlatform self) -> SBUnixSignals"""
return _lldb.SBPlatform_GetUnixSignals(self)
def GetEnvironment(self):
r"""GetEnvironment(SBPlatform self) -> SBEnvironment"""
return _lldb.SBPlatform_GetEnvironment(self)
def SetLocateModuleCallback(self, callback):
r"""SetLocateModuleCallback(SBPlatform self, lldb::SBPlatformLocateModuleCallback callback) -> SBError"""
return _lldb.SBPlatform_SetLocateModuleCallback(self, callback)
# Register SBPlatform in _lldb:
_lldb.SBPlatform_swigregister(SBPlatform)
class SBProcess(object):
r"""
Represents the process associated with the target program.
SBProcess supports thread iteration. For example (from test/lldbutil.py), ::
# ==================================================
# Utility functions related to Threads and Processes
# ==================================================
def get_stopped_threads(process, reason):
'''Returns the thread(s) with the specified stop reason in a list.
The list can be empty if no such thread exists.
'''
threads = []
for t in process:
if t.GetStopReason() == reason:
threads.append(t)
return threads
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
eBroadcastBitStateChanged = _lldb.SBProcess_eBroadcastBitStateChanged
eBroadcastBitInterrupt = _lldb.SBProcess_eBroadcastBitInterrupt
eBroadcastBitSTDOUT = _lldb.SBProcess_eBroadcastBitSTDOUT
eBroadcastBitSTDERR = _lldb.SBProcess_eBroadcastBitSTDERR
eBroadcastBitProfileData = _lldb.SBProcess_eBroadcastBitProfileData
eBroadcastBitStructuredData = _lldb.SBProcess_eBroadcastBitStructuredData
def __init__(self, *args):
r"""
__init__(SBProcess self) -> SBProcess
__init__(SBProcess self, SBProcess rhs) -> SBProcess
"""
_lldb.SBProcess_swiginit(self, _lldb.new_SBProcess(*args))
__swig_destroy__ = _lldb.delete_SBProcess
@staticmethod
def GetBroadcasterClassName():
r"""GetBroadcasterClassName() -> char const *"""
return _lldb.SBProcess_GetBroadcasterClassName()
def GetPluginName(self):
r"""GetPluginName(SBProcess self) -> char const *"""
return _lldb.SBProcess_GetPluginName(self)
def GetShortPluginName(self):
r"""GetShortPluginName(SBProcess self) -> char const *"""
return _lldb.SBProcess_GetShortPluginName(self)
def Clear(self):
r"""Clear(SBProcess self)"""
return _lldb.SBProcess_Clear(self)
def __nonzero__(self):
return _lldb.SBProcess___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBProcess self) -> bool"""
return _lldb.SBProcess_IsValid(self)
def GetTarget(self):
r"""GetTarget(SBProcess self) -> SBTarget"""
return _lldb.SBProcess_GetTarget(self)
def GetByteOrder(self):
r"""GetByteOrder(SBProcess self) -> lldb::ByteOrder"""
return _lldb.SBProcess_GetByteOrder(self)
def PutSTDIN(self, src):
r"""
PutSTDIN(SBProcess self, char const * src) -> size_t
Writes data into the current process's stdin. API client specifies a Python
string as the only argument.
"""
return _lldb.SBProcess_PutSTDIN(self, src)
def GetSTDOUT(self, dst):
r"""
GetSTDOUT(SBProcess self, char * dst) -> size_t
Reads data from the current process's stdout stream. API client specifies
the size of the buffer to read data into. It returns the byte buffer in a
Python string.
"""
return _lldb.SBProcess_GetSTDOUT(self, dst)
def GetSTDERR(self, dst):
r"""
GetSTDERR(SBProcess self, char * dst) -> size_t
Reads data from the current process's stderr stream. API client specifies
the size of the buffer to read data into. It returns the byte buffer in a
Python string.
"""
return _lldb.SBProcess_GetSTDERR(self, dst)
def GetAsyncProfileData(self, dst):
r"""GetAsyncProfileData(SBProcess self, char * dst) -> size_t"""
return _lldb.SBProcess_GetAsyncProfileData(self, dst)
def ReportEventState(self, *args):
r"""
ReportEventState(SBProcess self, SBEvent event, SBFile file)
ReportEventState(SBProcess self, SBEvent event, lldb::FileSP BORROWED)
"""
return _lldb.SBProcess_ReportEventState(self, *args)
def AppendEventStateReport(self, event, result):
r"""AppendEventStateReport(SBProcess self, SBEvent event, SBCommandReturnObject result)"""
return _lldb.SBProcess_AppendEventStateReport(self, event, result)
def RemoteAttachToProcessWithID(self, pid, error):
r"""
RemoteAttachToProcessWithID(SBProcess self, lldb::pid_t pid, SBError error) -> bool
Remote connection related functions. These will fail if the
process is not in eStateConnected. They are intended for use
when connecting to an externally managed debugserver instance.
"""
return _lldb.SBProcess_RemoteAttachToProcessWithID(self, pid, error)
def RemoteLaunch(self, argv, envp, stdin_path, stdout_path, stderr_path, working_directory, launch_flags, stop_at_entry, error):
r"""
RemoteLaunch(SBProcess self, char const ** argv, char const ** envp, char const * stdin_path, char const * stdout_path, char const * stderr_path, char const * working_directory, uint32_t launch_flags, bool stop_at_entry, SBError error) -> bool
See SBTarget.Launch for argument description and usage.
"""
return _lldb.SBProcess_RemoteLaunch(self, argv, envp, stdin_path, stdout_path, stderr_path, working_directory, launch_flags, stop_at_entry, error)
def GetNumThreads(self):
r"""GetNumThreads(SBProcess self) -> uint32_t"""
return _lldb.SBProcess_GetNumThreads(self)
def GetThreadAtIndex(self, index):
r"""
GetThreadAtIndex(SBProcess self, size_t index) -> SBThread
Returns the INDEX'th thread from the list of current threads. The index
of a thread is only valid for the current stop. For a persistent thread
identifier use either the thread ID or the IndexID. See help on SBThread
for more details.
"""
return _lldb.SBProcess_GetThreadAtIndex(self, index)
def GetThreadByID(self, sb_thread_id):
r"""
GetThreadByID(SBProcess self, lldb::tid_t sb_thread_id) -> SBThread
Returns the thread with the given thread ID.
"""
return _lldb.SBProcess_GetThreadByID(self, sb_thread_id)
def GetThreadByIndexID(self, index_id):
r"""
GetThreadByIndexID(SBProcess self, uint32_t index_id) -> SBThread
Returns the thread with the given thread IndexID.
"""
return _lldb.SBProcess_GetThreadByIndexID(self, index_id)
def GetSelectedThread(self):
r"""
GetSelectedThread(SBProcess self) -> SBThread
Returns the currently selected thread.
"""
return _lldb.SBProcess_GetSelectedThread(self)
def CreateOSPluginThread(self, tid, context):
r"""
CreateOSPluginThread(SBProcess self, lldb::tid_t tid, lldb::addr_t context) -> SBThread
Lazily create a thread on demand through the current OperatingSystem plug-in, if the current OperatingSystem plug-in supports it.
"""
return _lldb.SBProcess_CreateOSPluginThread(self, tid, context)
def SetSelectedThread(self, thread):
r"""SetSelectedThread(SBProcess self, SBThread thread) -> bool"""
return _lldb.SBProcess_SetSelectedThread(self, thread)
def SetSelectedThreadByID(self, tid):
r"""SetSelectedThreadByID(SBProcess self, lldb::tid_t tid) -> bool"""
return _lldb.SBProcess_SetSelectedThreadByID(self, tid)
def SetSelectedThreadByIndexID(self, index_id):
r"""SetSelectedThreadByIndexID(SBProcess self, uint32_t index_id) -> bool"""
return _lldb.SBProcess_SetSelectedThreadByIndexID(self, index_id)
def GetNumQueues(self):
r"""GetNumQueues(SBProcess self) -> uint32_t"""
return _lldb.SBProcess_GetNumQueues(self)
def GetQueueAtIndex(self, index):
r"""GetQueueAtIndex(SBProcess self, size_t index) -> SBQueue"""
return _lldb.SBProcess_GetQueueAtIndex(self, index)
def GetState(self):
r"""GetState(SBProcess self) -> lldb::StateType"""
return _lldb.SBProcess_GetState(self)
def GetExitStatus(self):
r"""GetExitStatus(SBProcess self) -> int"""
return _lldb.SBProcess_GetExitStatus(self)
def GetExitDescription(self):
r"""GetExitDescription(SBProcess self) -> char const *"""
return _lldb.SBProcess_GetExitDescription(self)
def GetProcessID(self):
r"""
GetProcessID(SBProcess self) -> lldb::pid_t
Returns the process ID of the process.
"""
return _lldb.SBProcess_GetProcessID(self)
def GetUniqueID(self):
r"""
GetUniqueID(SBProcess self) -> uint32_t
Returns an integer ID that is guaranteed to be unique across all process instances. This is not the process ID, just a unique integer for comparison and caching purposes.
"""
return _lldb.SBProcess_GetUniqueID(self)
def GetAddressByteSize(self):
r"""GetAddressByteSize(SBProcess self) -> uint32_t"""
return _lldb.SBProcess_GetAddressByteSize(self)
def Destroy(self):
r"""
Destroy(SBProcess self) -> SBError
Kills the process and shuts down all threads that were spawned to
track and monitor process.
"""
return _lldb.SBProcess_Destroy(self)
def Continue(self):
r"""Continue(SBProcess self) -> SBError"""
return _lldb.SBProcess_Continue(self)
def Stop(self):
r"""Stop(SBProcess self) -> SBError"""
return _lldb.SBProcess_Stop(self)
def Kill(self):
r"""
Kill(SBProcess self) -> SBError
Same as Destroy(self).
"""
return _lldb.SBProcess_Kill(self)
def Detach(self, *args):
r"""
Detach(SBProcess self) -> SBError
Detach(SBProcess self, bool keep_stopped) -> SBError
"""
return _lldb.SBProcess_Detach(self, *args)
def Signal(self, signal):
r"""
Signal(SBProcess self, int signal) -> SBError
Sends the process a unix signal.
"""
return _lldb.SBProcess_Signal(self, signal)
def GetUnixSignals(self):
r"""GetUnixSignals(SBProcess self) -> SBUnixSignals"""
return _lldb.SBProcess_GetUnixSignals(self)
def SendAsyncInterrupt(self):
r"""SendAsyncInterrupt(SBProcess self)"""
return _lldb.SBProcess_SendAsyncInterrupt(self)
def GetStopID(self, include_expression_stops=False):
r"""
GetStopID(SBProcess self, bool include_expression_stops=False) -> uint32_t
Returns a stop id that will increase every time the process executes. If
include_expression_stops is true, then stops caused by expression evaluation
will cause the returned value to increase, otherwise the counter returned will
only increase when execution is continued explicitly by the user. Note, the value
will always increase, but may increase by more than one per stop.
"""
return _lldb.SBProcess_GetStopID(self, include_expression_stops)
def GetStopEventForStopID(self, stop_id):
r"""GetStopEventForStopID(SBProcess self, uint32_t stop_id) -> SBEvent"""
return _lldb.SBProcess_GetStopEventForStopID(self, stop_id)
def ForceScriptedState(self, new_state):
r"""ForceScriptedState(SBProcess self, lldb::StateType new_state)"""
return _lldb.SBProcess_ForceScriptedState(self, new_state)
def ReadMemory(self, addr, buf, error):
r"""
ReadMemory(SBProcess self, lldb::addr_t addr, void * buf, SBError error) -> size_t
Reads memory from the current process's address space and removes any
traps that may have been inserted into the memory. It returns the byte
buffer in a Python string. Example: ::
# Read 4 bytes from address 'addr' and assume error.Success() is True.
content = process.ReadMemory(addr, 4, error)
new_bytes = bytearray(content)
"""
return _lldb.SBProcess_ReadMemory(self, addr, buf, error)
def WriteMemory(self, addr, buf, error):
r"""
WriteMemory(SBProcess self, lldb::addr_t addr, void const * buf, SBError error) -> size_t
Writes memory to the current process's address space and maintains any
traps that might be present due to software breakpoints. Example: ::
# Create a Python string from the byte array.
new_value = str(bytes)
result = process.WriteMemory(addr, new_value, error)
if not error.Success() or result != len(bytes):
print('SBProcess.WriteMemory() failed!')
"""
return _lldb.SBProcess_WriteMemory(self, addr, buf, error)
def ReadCStringFromMemory(self, addr, char_buf, error):
r"""
ReadCStringFromMemory(SBProcess self, lldb::addr_t addr, void * char_buf, SBError error) -> size_t
Reads a NUL terminated C string from the current process's address space.
It returns a python string of the exact length, or truncates the string if
the maximum character limit is reached. Example: ::
# Read a C string of at most 256 bytes from address '0x1000'
error = lldb.SBError()
cstring = process.ReadCStringFromMemory(0x1000, 256, error)
if error.Success():
print('cstring: ', cstring)
else
print('error: ', error)
"""
return _lldb.SBProcess_ReadCStringFromMemory(self, addr, char_buf, error)
def ReadUnsignedFromMemory(self, addr, byte_size, error):
r"""
ReadUnsignedFromMemory(SBProcess self, lldb::addr_t addr, uint32_t byte_size, SBError error) -> uint64_t
Reads an unsigned integer from memory given a byte size and an address.
Returns the unsigned integer that was read. Example: ::
# Read a 4 byte unsigned integer from address 0x1000
error = lldb.SBError()
uint = ReadUnsignedFromMemory(0x1000, 4, error)
if error.Success():
print('integer: %u' % uint)
else
print('error: ', error)
"""
return _lldb.SBProcess_ReadUnsignedFromMemory(self, addr, byte_size, error)
def ReadPointerFromMemory(self, addr, error):
r"""
ReadPointerFromMemory(SBProcess self, lldb::addr_t addr, SBError error) -> lldb::addr_t
Reads a pointer from memory from an address and returns the value. Example: ::
# Read a pointer from address 0x1000
error = lldb.SBError()
ptr = ReadPointerFromMemory(0x1000, error)
if error.Success():
print('pointer: 0x%x' % ptr)
else
print('error: ', error)
"""
return _lldb.SBProcess_ReadPointerFromMemory(self, addr, error)
@staticmethod
def GetStateFromEvent(event):
r"""GetStateFromEvent(SBEvent event) -> lldb::StateType"""
return _lldb.SBProcess_GetStateFromEvent(event)
@staticmethod
def GetRestartedFromEvent(event):
r"""GetRestartedFromEvent(SBEvent event) -> bool"""
return _lldb.SBProcess_GetRestartedFromEvent(event)
@staticmethod
def GetNumRestartedReasonsFromEvent(event):
r"""GetNumRestartedReasonsFromEvent(SBEvent event) -> size_t"""
return _lldb.SBProcess_GetNumRestartedReasonsFromEvent(event)
@staticmethod
def GetRestartedReasonAtIndexFromEvent(event, idx):
r"""GetRestartedReasonAtIndexFromEvent(SBEvent event, size_t idx) -> char const *"""
return _lldb.SBProcess_GetRestartedReasonAtIndexFromEvent(event, idx)
@staticmethod
def GetProcessFromEvent(event):
r"""GetProcessFromEvent(SBEvent event) -> SBProcess"""
return _lldb.SBProcess_GetProcessFromEvent(event)
@staticmethod
def GetInterruptedFromEvent(event):
r"""GetInterruptedFromEvent(SBEvent event) -> bool"""
return _lldb.SBProcess_GetInterruptedFromEvent(event)
@staticmethod
def GetStructuredDataFromEvent(event):
r"""GetStructuredDataFromEvent(SBEvent event) -> SBStructuredData"""
return _lldb.SBProcess_GetStructuredDataFromEvent(event)
@staticmethod
def EventIsProcessEvent(event):
r"""EventIsProcessEvent(SBEvent event) -> bool"""
return _lldb.SBProcess_EventIsProcessEvent(event)
@staticmethod
def EventIsStructuredDataEvent(event):
r"""EventIsStructuredDataEvent(SBEvent event) -> bool"""
return _lldb.SBProcess_EventIsStructuredDataEvent(event)
def GetBroadcaster(self):
r"""GetBroadcaster(SBProcess self) -> SBBroadcaster"""
return _lldb.SBProcess_GetBroadcaster(self)
@staticmethod
def GetBroadcasterClass():
r"""
GetBroadcasterClass() -> char const *
Get default process broadcaster class name (lldb.process).
"""
return _lldb.SBProcess_GetBroadcasterClass()
def GetDescription(self, description):
r"""GetDescription(SBProcess self, SBStream description) -> bool"""
return _lldb.SBProcess_GetDescription(self, description)
def GetExtendedCrashInformation(self):
r"""
GetExtendedCrashInformation(SBProcess self) -> SBStructuredData
Returns the process' extended crash information.
"""
return _lldb.SBProcess_GetExtendedCrashInformation(self)
def GetNumSupportedHardwareWatchpoints(self, error):
r"""GetNumSupportedHardwareWatchpoints(SBProcess self, SBError error) -> uint32_t"""
return _lldb.SBProcess_GetNumSupportedHardwareWatchpoints(self, error)
def LoadImage(self, *args):
r"""
LoadImage(SBProcess self, SBFileSpec remote_image_spec, SBError error) -> uint32_t
LoadImage(SBProcess self, SBFileSpec local_image_spec, SBFileSpec remote_image_spec, SBError error) -> uint32_t
"""
return _lldb.SBProcess_LoadImage(self, *args)
def LoadImageUsingPaths(self, image_spec, paths, loaded_path, error):
r"""
LoadImageUsingPaths(SBProcess self, SBFileSpec image_spec, SBStringList paths, SBFileSpec loaded_path, SBError error) -> uint32_t
Load the library whose filename is given by image_spec looking in all the
paths supplied in the paths argument. If successful, return a token that
can be passed to UnloadImage and fill loaded_path with the path that was
successfully loaded. On failure, return
lldb.LLDB_INVALID_IMAGE_TOKEN.
"""
return _lldb.SBProcess_LoadImageUsingPaths(self, image_spec, paths, loaded_path, error)
def UnloadImage(self, image_token):
r"""UnloadImage(SBProcess self, uint32_t image_token) -> SBError"""
return _lldb.SBProcess_UnloadImage(self, image_token)
def SendEventData(self, data):
r"""SendEventData(SBProcess self, char const * data) -> SBError"""
return _lldb.SBProcess_SendEventData(self, data)
def GetNumExtendedBacktraceTypes(self):
r"""
GetNumExtendedBacktraceTypes(SBProcess self) -> uint32_t
Return the number of different thread-origin extended backtraces
this process can support as a uint32_t.
When the process is stopped and you have an SBThread, lldb may be
able to show a backtrace of when that thread was originally created,
or the work item was enqueued to it (in the case of a libdispatch
queue).
"""
return _lldb.SBProcess_GetNumExtendedBacktraceTypes(self)
def GetExtendedBacktraceTypeAtIndex(self, idx):
r"""
GetExtendedBacktraceTypeAtIndex(SBProcess self, uint32_t idx) -> char const *
Takes an index argument, returns the name of one of the thread-origin
extended backtrace methods as a str.
"""
return _lldb.SBProcess_GetExtendedBacktraceTypeAtIndex(self, idx)
def GetHistoryThreads(self, addr):
r"""GetHistoryThreads(SBProcess self, lldb::addr_t addr) -> SBThreadCollection"""
return _lldb.SBProcess_GetHistoryThreads(self, addr)
def IsInstrumentationRuntimePresent(self, type):
r"""IsInstrumentationRuntimePresent(SBProcess self, lldb::InstrumentationRuntimeType type) -> bool"""
return _lldb.SBProcess_IsInstrumentationRuntimePresent(self, type)
def SaveCore(self, *args):
r"""
SaveCore(SBProcess self, char const * file_name, char const * flavor, lldb::SaveCoreStyle core_style) -> SBError
SaveCore(SBProcess self, char const * file_name) -> SBError
"""
return _lldb.SBProcess_SaveCore(self, *args)
def GetMemoryRegionInfo(self, load_addr, region_info):
r"""GetMemoryRegionInfo(SBProcess self, lldb::addr_t load_addr, SBMemoryRegionInfo region_info) -> SBError"""
return _lldb.SBProcess_GetMemoryRegionInfo(self, load_addr, region_info)
def GetMemoryRegions(self):
r"""GetMemoryRegions(SBProcess self) -> SBMemoryRegionInfoList"""
return _lldb.SBProcess_GetMemoryRegions(self)
def GetProcessInfo(self):
r"""
GetProcessInfo(SBProcess self) -> SBProcessInfo
Get information about the process.
Valid process info will only be returned when the process is alive,
use IsValid() to check if the info returned is valid. ::
process_info = process.GetProcessInfo()
if process_info.IsValid():
process_info.GetProcessID()
"""
return _lldb.SBProcess_GetProcessInfo(self)
def GetCoreFile(self):
r"""GetCoreFile(SBProcess self) -> SBFileSpec"""
return _lldb.SBProcess_GetCoreFile(self)
def GetAddressMask(self, *args):
r"""
GetAddressMask(SBProcess self, lldb::AddressMaskType type, lldb::AddressMaskRange addr_range=eAddressMaskRangeLow) -> lldb::addr_t
Get the current address mask in this Process of a given type.
There are lldb.eAddressMaskTypeCode and lldb.eAddressMaskTypeData address
masks, and on most Targets, the the Data address mask is more general
because there are no alignment restrictions, as there can be with Code
addresses.
lldb.eAddressMaskTypeAny may be used to get the most general mask.
The bits which are not used for addressing are set to 1 in the returned
mask.
In an unusual environment with different address masks for high and low
memory, this may also be specified. This is uncommon, default is
lldb.eAddressMaskRangeLow.
"""
return _lldb.SBProcess_GetAddressMask(self, *args)
def SetAddressMask(self, *args):
r"""
SetAddressMask(SBProcess self, lldb::AddressMaskType type, lldb::addr_t mask, lldb::AddressMaskRange addr_range=eAddressMaskRangeLow)
Set the current address mask in this Process for a given type,
lldb.eAddressMaskTypeCode or lldb.eAddressMaskTypeData. Bits that are not
used for addressing should be set to 1 in the mask.
When setting all masks, lldb.eAddressMaskTypeAll may be specified.
In an unusual environment with different address masks for high and low
memory, this may also be specified. This is uncommon, default is
lldb.eAddressMaskRangeLow.
"""
return _lldb.SBProcess_SetAddressMask(self, *args)
def SetAddressableBits(self, *args):
r"""
SetAddressableBits(SBProcess self, lldb::AddressMaskType type, uint32_t num_bits, lldb::AddressMaskRange addr_range=eAddressMaskRangeLow)
Set the number of low bits relevant for addressing in this Process
for a given type, lldb.eAddressMaskTypeCode or lldb.eAddressMaskTypeData.
When setting all masks, lldb.eAddressMaskTypeAll may be specified.
In an unusual environment with different address masks for high and low
memory, the address range may also be specified. This is uncommon,
default is lldb.eAddressMaskRangeLow.
"""
return _lldb.SBProcess_SetAddressableBits(self, *args)
def FixAddress(self, *args):
r"""
FixAddress(SBProcess self, lldb::addr_t addr, lldb::AddressMaskType type=eAddressMaskTypeAny) -> lldb::addr_t
Given a virtual address, clear the bits that are not used for addressing
(and may be used for metadata, memory tagging, point authentication, etc).
By default the most general mask, lldb.eAddressMaskTypeAny is used to
process the address, but lldb.eAddressMaskTypeData and
lldb.eAddressMaskTypeCode may be specified if the type of address is known.
"""
return _lldb.SBProcess_FixAddress(self, *args)
def AllocateMemory(self, size, permissions, error):
r"""
AllocateMemory(SBProcess self, size_t size, uint32_t permissions, SBError error) -> lldb::addr_t
Allocates a block of memory within the process, with size and
access permissions specified in the arguments. The permissions
argument is an or-combination of zero or more of
lldb.ePermissionsWritable, lldb.ePermissionsReadable, and
lldb.ePermissionsExecutable. Returns the address
of the allocated buffer in the process, or
lldb.LLDB_INVALID_ADDRESS if the allocation failed.
"""
return _lldb.SBProcess_AllocateMemory(self, size, permissions, error)
def DeallocateMemory(self, ptr):
r"""
DeallocateMemory(SBProcess self, lldb::addr_t ptr) -> SBError
Deallocates the block of memory (previously allocated using
AllocateMemory) given in the argument.
"""
return _lldb.SBProcess_DeallocateMemory(self, ptr)
def GetScriptedImplementation(self):
r"""
GetScriptedImplementation(SBProcess self) -> SBScriptObject
Returns the implementation object of the process plugin if available. None
otherwise.
"""
return _lldb.SBProcess_GetScriptedImplementation(self)
def __repr__(self):
r"""__repr__(SBProcess self) -> std::string"""
return _lldb.SBProcess___repr__(self)
def WriteMemoryAsCString(self, addr, str, error):
'''
WriteMemoryAsCString(self, addr, str, error):
This functions the same as `WriteMemory` except a null-terminator is appended
to the end of the buffer if it is not there already.
'''
if not str or len(str) == 0:
return 0
if not str[-1] == '\0':
str += '\0'
return self.WriteMemory(addr, str, error)
def __get_is_alive__(self):
'''Returns "True" if the process is currently alive, "False" otherwise'''
s = self.GetState()
if (s == eStateAttaching or
s == eStateLaunching or
s == eStateStopped or
s == eStateRunning or
s == eStateStepping or
s == eStateCrashed or
s == eStateSuspended):
return True
return False
def __get_is_running__(self):
'''Returns "True" if the process is currently running, "False" otherwise'''
state = self.GetState()
if state == eStateRunning or state == eStateStepping:
return True
return False
def __get_is_stopped__(self):
'''Returns "True" if the process is currently stopped, "False" otherwise'''
state = self.GetState()
if state == eStateStopped or state == eStateCrashed or state == eStateSuspended:
return True
return False
class threads_access(object):
'''A helper object that will lazily hand out thread for a process when supplied an index.'''
def __init__(self, sbprocess):
self.sbprocess = sbprocess
def __len__(self):
if self.sbprocess:
return int(self.sbprocess.GetNumThreads())
return 0
def __getitem__(self, key):
if isinstance(key, int):
count = len(self)
if -count <= key < count:
key %= count
return self.sbprocess.GetThreadAtIndex(key)
return None
def get_threads_access_object(self):
'''An accessor function that returns a modules_access() object which allows lazy thread access from a lldb.SBProcess object.'''
return self.threads_access (self)
def get_process_thread_list(self):
'''An accessor function that returns a list() that contains all threads in a lldb.SBProcess object.'''
threads = []
accessor = self.get_threads_access_object()
for idx in range(len(accessor)):
threads.append(accessor[idx])
return threads
def __iter__(self):
'''Iterate over all threads in a lldb.SBProcess object.'''
return lldb_iter(self, 'GetNumThreads', 'GetThreadAtIndex')
def __len__(self):
'''Return the number of threads in a lldb.SBProcess object.'''
return self.GetNumThreads()
threads = property(get_process_thread_list, None, doc='''A read only property that returns a list() of lldb.SBThread objects for this process.''')
thread = property(get_threads_access_object, None, doc='''A read only property that returns an object that can access threads by thread index (thread = lldb.process.thread[12]).''')
is_alive = property(__get_is_alive__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently alive.''')
is_running = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently running.''')
is_stopped = property(__get_is_stopped__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently stopped.''')
id = property(GetProcessID, None, doc='''A read only property that returns the process ID as an integer.''')
target = property(GetTarget, None, doc='''A read only property that an lldb object that represents the target (lldb.SBTarget) that owns this process.''')
num_threads = property(GetNumThreads, None, doc='''A read only property that returns the number of threads in this process as an integer.''')
selected_thread = property(GetSelectedThread, SetSelectedThread, doc='''A read/write property that gets/sets the currently selected thread in this process. The getter returns a lldb.SBThread object and the setter takes an lldb.SBThread object.''')
state = property(GetState, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eState") that represents the current state of this process (running, stopped, exited, etc.).''')
exit_state = property(GetExitStatus, None, doc='''A read only property that returns an exit status as an integer of this process when the process state is lldb.eStateExited.''')
exit_description = property(GetExitDescription, None, doc='''A read only property that returns an exit description as a string of this process when the process state is lldb.eStateExited.''')
broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this process.''')
# Register SBProcess in _lldb:
_lldb.SBProcess_swigregister(SBProcess)
class SBProcessInfo(object):
r"""
Describes an existing process and any discoverable information that pertains to
that process.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBProcessInfo self) -> SBProcessInfo
__init__(SBProcessInfo self, SBProcessInfo rhs) -> SBProcessInfo
"""
_lldb.SBProcessInfo_swiginit(self, _lldb.new_SBProcessInfo(*args))
__swig_destroy__ = _lldb.delete_SBProcessInfo
def __nonzero__(self):
return _lldb.SBProcessInfo___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBProcessInfo self) -> bool"""
return _lldb.SBProcessInfo_IsValid(self)
def GetName(self):
r"""GetName(SBProcessInfo self) -> char const *"""
return _lldb.SBProcessInfo_GetName(self)
def GetExecutableFile(self):
r"""GetExecutableFile(SBProcessInfo self) -> SBFileSpec"""
return _lldb.SBProcessInfo_GetExecutableFile(self)
def GetProcessID(self):
r"""GetProcessID(SBProcessInfo self) -> lldb::pid_t"""
return _lldb.SBProcessInfo_GetProcessID(self)
def GetUserID(self):
r"""GetUserID(SBProcessInfo self) -> uint32_t"""
return _lldb.SBProcessInfo_GetUserID(self)
def GetGroupID(self):
r"""GetGroupID(SBProcessInfo self) -> uint32_t"""
return _lldb.SBProcessInfo_GetGroupID(self)
def UserIDIsValid(self):
r"""UserIDIsValid(SBProcessInfo self) -> bool"""
return _lldb.SBProcessInfo_UserIDIsValid(self)
def GroupIDIsValid(self):
r"""GroupIDIsValid(SBProcessInfo self) -> bool"""
return _lldb.SBProcessInfo_GroupIDIsValid(self)
def GetEffectiveUserID(self):
r"""GetEffectiveUserID(SBProcessInfo self) -> uint32_t"""
return _lldb.SBProcessInfo_GetEffectiveUserID(self)
def GetEffectiveGroupID(self):
r"""GetEffectiveGroupID(SBProcessInfo self) -> uint32_t"""
return _lldb.SBProcessInfo_GetEffectiveGroupID(self)
def EffectiveUserIDIsValid(self):
r"""EffectiveUserIDIsValid(SBProcessInfo self) -> bool"""
return _lldb.SBProcessInfo_EffectiveUserIDIsValid(self)
def EffectiveGroupIDIsValid(self):
r"""EffectiveGroupIDIsValid(SBProcessInfo self) -> bool"""
return _lldb.SBProcessInfo_EffectiveGroupIDIsValid(self)
def GetParentProcessID(self):
r"""GetParentProcessID(SBProcessInfo self) -> lldb::pid_t"""
return _lldb.SBProcessInfo_GetParentProcessID(self)
def GetTriple(self):
r"""
GetTriple(SBProcessInfo self) -> char const *
Return the target triple (arch-vendor-os) for the described process.
"""
return _lldb.SBProcessInfo_GetTriple(self)
# Register SBProcessInfo in _lldb:
_lldb.SBProcessInfo_swigregister(SBProcessInfo)
class SBQueue(object):
r"""Represents a libdispatch queue in the process."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBQueue self) -> SBQueue
__init__(SBQueue self, SBQueue rhs) -> SBQueue
"""
_lldb.SBQueue_swiginit(self, _lldb.new_SBQueue(*args))
__swig_destroy__ = _lldb.delete_SBQueue
def __nonzero__(self):
return _lldb.SBQueue___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBQueue self) -> bool"""
return _lldb.SBQueue_IsValid(self)
def Clear(self):
r"""Clear(SBQueue self)"""
return _lldb.SBQueue_Clear(self)
def GetProcess(self):
r"""GetProcess(SBQueue self) -> SBProcess"""
return _lldb.SBQueue_GetProcess(self)
def GetQueueID(self):
r"""
GetQueueID(SBQueue self) -> lldb::queue_id_t
Returns an lldb::queue_id_t type unique identifier number for this
queue that will not be used by any other queue during this process'
execution. These ID numbers often start at 1 with the first
system-created queues and increment from there.
"""
return _lldb.SBQueue_GetQueueID(self)
def GetName(self):
r"""GetName(SBQueue self) -> char const *"""
return _lldb.SBQueue_GetName(self)
def GetIndexID(self):
r"""GetIndexID(SBQueue self) -> uint32_t"""
return _lldb.SBQueue_GetIndexID(self)
def GetNumThreads(self):
r"""GetNumThreads(SBQueue self) -> uint32_t"""
return _lldb.SBQueue_GetNumThreads(self)
def GetThreadAtIndex(self, arg2):
r"""GetThreadAtIndex(SBQueue self, uint32_t arg2) -> SBThread"""
return _lldb.SBQueue_GetThreadAtIndex(self, arg2)
def GetNumPendingItems(self):
r"""GetNumPendingItems(SBQueue self) -> uint32_t"""
return _lldb.SBQueue_GetNumPendingItems(self)
def GetPendingItemAtIndex(self, arg2):
r"""GetPendingItemAtIndex(SBQueue self, uint32_t arg2) -> SBQueueItem"""
return _lldb.SBQueue_GetPendingItemAtIndex(self, arg2)
def GetNumRunningItems(self):
r"""GetNumRunningItems(SBQueue self) -> uint32_t"""
return _lldb.SBQueue_GetNumRunningItems(self)
def GetKind(self):
r"""
GetKind(SBQueue self) -> lldb::QueueKind
Returns an lldb::QueueKind enumerated value (e.g. eQueueKindUnknown,
eQueueKindSerial, eQueueKindConcurrent) describing the type of this
queue.
"""
return _lldb.SBQueue_GetKind(self)
# Register SBQueue in _lldb:
_lldb.SBQueue_swigregister(SBQueue)
class SBQueueItem(object):
r"""This class represents an item in an :py:class:`SBQueue`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
r"""__init__(SBQueueItem self) -> SBQueueItem"""
_lldb.SBQueueItem_swiginit(self, _lldb.new_SBQueueItem())
__swig_destroy__ = _lldb.delete_SBQueueItem
def __nonzero__(self):
return _lldb.SBQueueItem___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBQueueItem self) -> bool"""
return _lldb.SBQueueItem_IsValid(self)
def Clear(self):
r"""Clear(SBQueueItem self)"""
return _lldb.SBQueueItem_Clear(self)
def GetKind(self):
r"""GetKind(SBQueueItem self) -> lldb::QueueItemKind"""
return _lldb.SBQueueItem_GetKind(self)
def SetKind(self, kind):
r"""SetKind(SBQueueItem self, lldb::QueueItemKind kind)"""
return _lldb.SBQueueItem_SetKind(self, kind)
def GetAddress(self):
r"""GetAddress(SBQueueItem self) -> SBAddress"""
return _lldb.SBQueueItem_GetAddress(self)
def SetAddress(self, addr):
r"""SetAddress(SBQueueItem self, SBAddress addr)"""
return _lldb.SBQueueItem_SetAddress(self, addr)
def GetExtendedBacktraceThread(self, type):
r"""GetExtendedBacktraceThread(SBQueueItem self, char const * type) -> SBThread"""
return _lldb.SBQueueItem_GetExtendedBacktraceThread(self, type)
# Register SBQueueItem in _lldb:
_lldb.SBQueueItem_swigregister(SBQueueItem)
class SBReproducer(object):
r"""Controls LLDB's reproducer functionality."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
def Capture(path):
r"""Capture(char const * path) -> char const *"""
return _lldb.SBReproducer_Capture(path)
@staticmethod
def PassiveReplay(path):
r"""PassiveReplay(char const * path) -> char const *"""
return _lldb.SBReproducer_PassiveReplay(path)
@staticmethod
def SetAutoGenerate(b):
r"""SetAutoGenerate(bool b) -> bool"""
return _lldb.SBReproducer_SetAutoGenerate(b)
@staticmethod
def SetWorkingDirectory(path):
r"""SetWorkingDirectory(char const * path)"""
return _lldb.SBReproducer_SetWorkingDirectory(path)
def __init__(self):
r"""__init__(SBReproducer self) -> SBReproducer"""
_lldb.SBReproducer_swiginit(self, _lldb.new_SBReproducer())
__swig_destroy__ = _lldb.delete_SBReproducer
# Register SBReproducer in _lldb:
_lldb.SBReproducer_swigregister(SBReproducer)
class SBScriptObject(object):
r"""Proxy of C++ lldb::SBScriptObject class."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBScriptObject self, lldb::ScriptObjectPtr const ptr, lldb::ScriptLanguage lang) -> SBScriptObject
__init__(SBScriptObject self, SBScriptObject rhs) -> SBScriptObject
"""
_lldb.SBScriptObject_swiginit(self, _lldb.new_SBScriptObject(*args))
__swig_destroy__ = _lldb.delete_SBScriptObject
def __nonzero__(self):
return _lldb.SBScriptObject___nonzero__(self)
__bool__ = __nonzero__
def __ne__(self, rhs):
r"""__ne__(SBScriptObject self, SBScriptObject rhs) -> bool"""
return _lldb.SBScriptObject___ne__(self, rhs)
def IsValid(self):
r"""IsValid(SBScriptObject self) -> bool"""
return _lldb.SBScriptObject_IsValid(self)
def GetPointer(self):
r"""GetPointer(SBScriptObject self) -> lldb::ScriptObjectPtr"""
return _lldb.SBScriptObject_GetPointer(self)
def GetLanguage(self):
r"""GetLanguage(SBScriptObject self) -> lldb::ScriptLanguage"""
return _lldb.SBScriptObject_GetLanguage(self)
ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''')
lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''')
# Register SBScriptObject in _lldb:
_lldb.SBScriptObject_swigregister(SBScriptObject)
class SBSection(object):
r"""
Represents an executable image section.
SBSection supports iteration through its subsection, represented as SBSection
as well. For example, ::
for sec in exe_module:
if sec.GetName() == '__TEXT':
print sec
break
print INDENT + 'Number of subsections: %d' % sec.GetNumSubSections()
for subsec in sec:
print INDENT + repr(subsec)
produces: ::
[0x0000000100000000-0x0000000100002000) a.out.__TEXT
Number of subsections: 6
[0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text
[0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs
[0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper
[0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring
[0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info
[0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame
See also :py:class:`SBModule` .
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBSection self) -> SBSection
__init__(SBSection self, SBSection rhs) -> SBSection
"""
_lldb.SBSection_swiginit(self, _lldb.new_SBSection(*args))
__swig_destroy__ = _lldb.delete_SBSection
def __nonzero__(self):
return _lldb.SBSection___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBSection self) -> bool"""
return _lldb.SBSection_IsValid(self)
def GetName(self):
r"""GetName(SBSection self) -> char const *"""
return _lldb.SBSection_GetName(self)
def GetParent(self):
r"""GetParent(SBSection self) -> SBSection"""
return _lldb.SBSection_GetParent(self)
def FindSubSection(self, sect_name):
r"""FindSubSection(SBSection self, char const * sect_name) -> SBSection"""
return _lldb.SBSection_FindSubSection(self, sect_name)
def GetNumSubSections(self):
r"""GetNumSubSections(SBSection self) -> size_t"""
return _lldb.SBSection_GetNumSubSections(self)
def GetSubSectionAtIndex(self, idx):
r"""GetSubSectionAtIndex(SBSection self, size_t idx) -> SBSection"""
return _lldb.SBSection_GetSubSectionAtIndex(self, idx)
def GetFileAddress(self):
r"""GetFileAddress(SBSection self) -> lldb::addr_t"""
return _lldb.SBSection_GetFileAddress(self)
def GetLoadAddress(self, target):
r"""GetLoadAddress(SBSection self, SBTarget target) -> lldb::addr_t"""
return _lldb.SBSection_GetLoadAddress(self, target)
def GetByteSize(self):
r"""GetByteSize(SBSection self) -> lldb::addr_t"""
return _lldb.SBSection_GetByteSize(self)
def GetFileOffset(self):
r"""GetFileOffset(SBSection self) -> uint64_t"""
return _lldb.SBSection_GetFileOffset(self)
def GetFileByteSize(self):
r"""GetFileByteSize(SBSection self) -> uint64_t"""
return _lldb.SBSection_GetFileByteSize(self)
def GetSectionData(self, *args):
r"""
GetSectionData(SBSection self) -> SBData
GetSectionData(SBSection self, uint64_t offset, uint64_t size) -> SBData
"""
return _lldb.SBSection_GetSectionData(self, *args)
def GetSectionType(self):
r"""GetSectionType(SBSection self) -> lldb::SectionType"""
return _lldb.SBSection_GetSectionType(self)
def GetPermissions(self):
r"""GetPermissions(SBSection self) -> uint32_t"""
return _lldb.SBSection_GetPermissions(self)
def GetTargetByteSize(self):
r"""
GetTargetByteSize(SBSection self) -> uint32_t
Return the size of a target's byte represented by this section
in numbers of host bytes. Note that certain architectures have
varying minimum addressable unit (i.e. byte) size for their
CODE or DATA buses.
@return
The number of host (8-bit) bytes needed to hold a target byte
"""
return _lldb.SBSection_GetTargetByteSize(self)
def GetAlignment(self):
r"""GetAlignment(SBSection self) -> uint32_t"""
return _lldb.SBSection_GetAlignment(self)
def __eq__(self, rhs):
r"""__eq__(SBSection self, SBSection rhs) -> bool"""
return _lldb.SBSection___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBSection self, SBSection rhs) -> bool"""
return _lldb.SBSection___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBSection self, SBStream description) -> bool"""
return _lldb.SBSection_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBSection self) -> std::string"""
return _lldb.SBSection___repr__(self)
def __iter__(self):
'''Iterate over all subsections in a lldb.SBSection object.'''
return lldb_iter(self, 'GetNumSubSections', 'GetSubSectionAtIndex')
def __len__(self):
'''Return the number of subsections in a lldb.SBSection object.'''
return self.GetNumSubSections()
def get_addr(self):
return SBAddress(self, 0)
name = property(GetName, None, doc='''A read only property that returns the name of this section as a string.''')
addr = property(get_addr, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this section.''')
file_addr = property(GetFileAddress, None, doc='''A read only property that returns an integer that represents the starting "file" address for this section, or the address of the section in the object file in which it is defined.''')
size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this section as an integer.''')
file_offset = property(GetFileOffset, None, doc='''A read only property that returns the file offset in bytes of this section as an integer.''')
file_size = property(GetFileByteSize, None, doc='''A read only property that returns the file size in bytes of this section as an integer.''')
data = property(GetSectionData, None, doc='''A read only property that returns an lldb object that represents the bytes for this section (lldb.SBData) for this section.''')
type = property(GetSectionType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSectionType") that represents the type of this section (code, data, etc.).''')
target_byte_size = property(GetTargetByteSize, None, doc='''A read only property that returns the size of a target byte represented by this section as a number of host bytes.''')
alignment = property(GetAlignment, None, doc='''A read only property that returns the alignment of this section as a number of host bytes.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBSection in _lldb:
_lldb.SBSection_swigregister(SBSection)
class SBSourceManager(object):
r"""
Represents a central authority for displaying source code.
For example (from test/source-manager/TestSourceManager.py), ::
# Create the filespec for 'main.c'.
filespec = lldb.SBFileSpec('main.c', False)
source_mgr = self.dbg.GetSourceManager()
# Use a string stream as the destination.
stream = lldb.SBStream()
source_mgr.DisplaySourceLinesWithLineNumbers(filespec,
self.line,
2, # context before
2, # context after
'=>', # prefix for current line
stream)
# 2
# 3 int main(int argc, char const *argv[]) {
# => 4 printf('Hello world.\n'); // Set break point at this line.
# 5 return 0;
# 6 }
self.expect(stream.GetData(), 'Source code displayed correctly',
exe=False,
patterns = ['=> %d.*Hello world' % self.line])
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBSourceManager self, SBDebugger debugger) -> SBSourceManager
__init__(SBSourceManager self, SBTarget target) -> SBSourceManager
__init__(SBSourceManager self, SBSourceManager rhs) -> SBSourceManager
"""
_lldb.SBSourceManager_swiginit(self, _lldb.new_SBSourceManager(*args))
__swig_destroy__ = _lldb.delete_SBSourceManager
def DisplaySourceLinesWithLineNumbers(self, file, line, context_before, context_after, current_line_cstr, s):
r"""DisplaySourceLinesWithLineNumbers(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t context_before, uint32_t context_after, char const * current_line_cstr, SBStream s) -> size_t"""
return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbers(self, file, line, context_before, context_after, current_line_cstr, s)
def DisplaySourceLinesWithLineNumbersAndColumn(self, file, line, column, context_before, context_after, current_line_cstr, s):
r"""DisplaySourceLinesWithLineNumbersAndColumn(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t column, uint32_t context_before, uint32_t context_after, char const * current_line_cstr, SBStream s) -> size_t"""
return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbersAndColumn(self, file, line, column, context_before, context_after, current_line_cstr, s)
# Register SBSourceManager in _lldb:
_lldb.SBSourceManager_swigregister(SBSourceManager)
class SBStream(object):
r"""
Represents a destination for streaming data output to. By default, a string
stream is created.
For example (from test/source-manager/TestSourceManager.py), ::
# Create the filespec for 'main.c'.
filespec = lldb.SBFileSpec('main.c', False)
source_mgr = self.dbg.GetSourceManager()
# Use a string stream as the destination.
stream = lldb.SBStream()
source_mgr.DisplaySourceLinesWithLineNumbers(filespec,
self.line,
2, # context before
2, # context after
'=>', # prefix for current line
stream)
# 2
# 3 int main(int argc, char const *argv[]) {
# => 4 printf('Hello world.\n'); // Set break point at this line.
# 5 return 0;
# 6 }
self.expect(stream.GetData(), 'Source code displayed correctly',
exe=False,
patterns = ['=> %d.*Hello world' % self.line])
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
r"""__init__(SBStream self) -> SBStream"""
_lldb.SBStream_swiginit(self, _lldb.new_SBStream())
__swig_destroy__ = _lldb.delete_SBStream
def __nonzero__(self):
return _lldb.SBStream___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBStream self) -> bool"""
return _lldb.SBStream_IsValid(self)
def GetData(self):
r"""
GetData(SBStream self) -> char const *
If this stream is not redirected to a file, it will maintain a local
cache for the stream data which can be accessed using this accessor.
"""
return _lldb.SBStream_GetData(self)
def GetSize(self):
r"""
GetSize(SBStream self) -> size_t
If this stream is not redirected to a file, it will maintain a local
cache for the stream output whose length can be accessed using this
accessor.
"""
return _lldb.SBStream_GetSize(self)
def Print(self, str):
r"""Print(SBStream self, char const * str)"""
return _lldb.SBStream_Print(self, str)
def RedirectToFile(self, *args):
r"""
RedirectToFile(SBStream self, char const * path, bool append)
RedirectToFile(SBStream self, SBFile file)
RedirectToFile(SBStream self, lldb::FileSP file)
"""
return _lldb.SBStream_RedirectToFile(self, *args)
def RedirectToFileDescriptor(self, fd, transfer_fh_ownership):
r"""RedirectToFileDescriptor(SBStream self, int fd, bool transfer_fh_ownership)"""
return _lldb.SBStream_RedirectToFileDescriptor(self, fd, transfer_fh_ownership)
def Clear(self):
r"""
Clear(SBStream self)
If the stream is redirected to a file, forget about the file and if
ownership of the file was transferred to this object, close the file.
If the stream is backed by a local cache, clear this cache.
"""
return _lldb.SBStream_Clear(self)
def RedirectToFileHandle(self, file, transfer_fh_ownership):
r"""DEPRECATED, use RedirectToFile"""
return _lldb.SBStream_RedirectToFileHandle(self, file, transfer_fh_ownership)
def write(self, str):
r"""write(SBStream self, char const * str)"""
return _lldb.SBStream_write(self, str)
def flush(self):
r"""flush(SBStream self)"""
return _lldb.SBStream_flush(self)
# Register SBStream in _lldb:
_lldb.SBStream_swigregister(SBStream)
class SBStringList(object):
r"""Represents a list of strings."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBStringList self) -> SBStringList
__init__(SBStringList self, SBStringList rhs) -> SBStringList
"""
_lldb.SBStringList_swiginit(self, _lldb.new_SBStringList(*args))
__swig_destroy__ = _lldb.delete_SBStringList
def __nonzero__(self):
return _lldb.SBStringList___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBStringList self) -> bool"""
return _lldb.SBStringList_IsValid(self)
def AppendString(self, str):
r"""AppendString(SBStringList self, char const * str)"""
return _lldb.SBStringList_AppendString(self, str)
def AppendList(self, *args):
r"""
AppendList(SBStringList self, char const ** strv, int strc)
AppendList(SBStringList self, SBStringList strings)
"""
return _lldb.SBStringList_AppendList(self, *args)
def GetSize(self):
r"""GetSize(SBStringList self) -> uint32_t"""
return _lldb.SBStringList_GetSize(self)
def GetStringAtIndex(self, *args):
r"""
GetStringAtIndex(SBStringList self, size_t idx) -> char const
GetStringAtIndex(SBStringList self, size_t idx) -> char const *
"""
return _lldb.SBStringList_GetStringAtIndex(self, *args)
def Clear(self):
r"""Clear(SBStringList self)"""
return _lldb.SBStringList_Clear(self)
def __iter__(self):
'''Iterate over all strings in a lldb.SBStringList object.'''
return lldb_iter(self, 'GetSize', 'GetStringAtIndex')
def __len__(self):
'''Return the number of strings in a lldb.SBStringList object.'''
return self.GetSize()
# Register SBStringList in _lldb:
_lldb.SBStringList_swigregister(SBStringList)
class SBStructuredData(object):
r"""
A class representing a StructuredData event.
This class wraps the event type generated by StructuredData features.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBStructuredData self) -> SBStructuredData
__init__(SBStructuredData self, SBStructuredData rhs) -> SBStructuredData
__init__(SBStructuredData self, SBScriptObject obj, SBDebugger debugger) -> SBStructuredData
"""
_lldb.SBStructuredData_swiginit(self, _lldb.new_SBStructuredData(*args))
__swig_destroy__ = _lldb.delete_SBStructuredData
def __nonzero__(self):
return _lldb.SBStructuredData___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBStructuredData self) -> bool"""
return _lldb.SBStructuredData_IsValid(self)
def SetFromJSON(self, *args):
r"""
SetFromJSON(SBStructuredData self, SBStream stream) -> SBError
SetFromJSON(SBStructuredData self, char const * json) -> SBError
"""
return _lldb.SBStructuredData_SetFromJSON(self, *args)
def Clear(self):
r"""Clear(SBStructuredData self)"""
return _lldb.SBStructuredData_Clear(self)
def GetAsJSON(self, stream):
r"""GetAsJSON(SBStructuredData self, SBStream stream) -> SBError"""
return _lldb.SBStructuredData_GetAsJSON(self, stream)
def GetDescription(self, stream):
r"""GetDescription(SBStructuredData self, SBStream stream) -> SBError"""
return _lldb.SBStructuredData_GetDescription(self, stream)
def GetType(self):
r"""GetType(SBStructuredData self) -> lldb::StructuredDataType"""
return _lldb.SBStructuredData_GetType(self)
def GetSize(self):
r"""GetSize(SBStructuredData self) -> size_t"""
return _lldb.SBStructuredData_GetSize(self)
def GetKeys(self, keys):
r"""GetKeys(SBStructuredData self, SBStringList keys) -> bool"""
return _lldb.SBStructuredData_GetKeys(self, keys)
def GetValueForKey(self, key):
r"""GetValueForKey(SBStructuredData self, char const * key) -> SBStructuredData"""
return _lldb.SBStructuredData_GetValueForKey(self, key)
def GetItemAtIndex(self, idx):
r"""GetItemAtIndex(SBStructuredData self, size_t idx) -> SBStructuredData"""
return _lldb.SBStructuredData_GetItemAtIndex(self, idx)
def GetUnsignedIntegerValue(self, fail_value=0):
r"""GetUnsignedIntegerValue(SBStructuredData self, uint64_t fail_value=0) -> uint64_t"""
return _lldb.SBStructuredData_GetUnsignedIntegerValue(self, fail_value)
def GetSignedIntegerValue(self, fail_value=0):
r"""GetSignedIntegerValue(SBStructuredData self, int64_t fail_value=0) -> int64_t"""
return _lldb.SBStructuredData_GetSignedIntegerValue(self, fail_value)
def GetIntegerValue(self, fail_value=0):
r"""GetIntegerValue(SBStructuredData self, uint64_t fail_value=0) -> uint64_t"""
return _lldb.SBStructuredData_GetIntegerValue(self, fail_value)
def GetFloatValue(self, fail_value=0.0):
r"""GetFloatValue(SBStructuredData self, double fail_value=0.0) -> double"""
return _lldb.SBStructuredData_GetFloatValue(self, fail_value)
def GetBooleanValue(self, fail_value=False):
r"""GetBooleanValue(SBStructuredData self, bool fail_value=False) -> bool"""
return _lldb.SBStructuredData_GetBooleanValue(self, fail_value)
def GetStringValue(self, dst):
r"""GetStringValue(SBStructuredData self, char * dst) -> size_t"""
return _lldb.SBStructuredData_GetStringValue(self, dst)
def GetGenericValue(self):
r"""GetGenericValue(SBStructuredData self) -> SBScriptObject"""
return _lldb.SBStructuredData_GetGenericValue(self)
# Register SBStructuredData in _lldb:
_lldb.SBStructuredData_swigregister(SBStructuredData)
class SBSymbol(object):
r"""
Represents the symbol possibly associated with a stack frame.
:py:class:`SBModule` contains SBSymbol(s). SBSymbol can also be retrieved from :py:class:`SBFrame` .
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__swig_destroy__ = _lldb.delete_SBSymbol
def __init__(self, *args):
r"""
__init__(SBSymbol self) -> SBSymbol
__init__(SBSymbol self, SBSymbol rhs) -> SBSymbol
"""
_lldb.SBSymbol_swiginit(self, _lldb.new_SBSymbol(*args))
def __nonzero__(self):
return _lldb.SBSymbol___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBSymbol self) -> bool"""
return _lldb.SBSymbol_IsValid(self)
def GetName(self):
r"""GetName(SBSymbol self) -> char const *"""
return _lldb.SBSymbol_GetName(self)
def GetDisplayName(self):
r"""GetDisplayName(SBSymbol self) -> char const *"""
return _lldb.SBSymbol_GetDisplayName(self)
def GetMangledName(self):
r"""GetMangledName(SBSymbol self) -> char const *"""
return _lldb.SBSymbol_GetMangledName(self)
def GetInstructions(self, *args):
r"""
GetInstructions(SBSymbol self, SBTarget target) -> SBInstructionList
GetInstructions(SBSymbol self, SBTarget target, char const * flavor_string) -> SBInstructionList
"""
return _lldb.SBSymbol_GetInstructions(self, *args)
def GetStartAddress(self):
r"""GetStartAddress(SBSymbol self) -> SBAddress"""
return _lldb.SBSymbol_GetStartAddress(self)
def GetEndAddress(self):
r"""GetEndAddress(SBSymbol self) -> SBAddress"""
return _lldb.SBSymbol_GetEndAddress(self)
def GetValue(self):
r"""GetValue(SBSymbol self) -> uint64_t"""
return _lldb.SBSymbol_GetValue(self)
def GetSize(self):
r"""GetSize(SBSymbol self) -> uint64_t"""
return _lldb.SBSymbol_GetSize(self)
def GetPrologueByteSize(self):
r"""GetPrologueByteSize(SBSymbol self) -> uint32_t"""
return _lldb.SBSymbol_GetPrologueByteSize(self)
def GetType(self):
r"""GetType(SBSymbol self) -> lldb::SymbolType"""
return _lldb.SBSymbol_GetType(self)
def __eq__(self, rhs):
r"""__eq__(SBSymbol self, SBSymbol rhs) -> bool"""
return _lldb.SBSymbol___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBSymbol self, SBSymbol rhs) -> bool"""
return _lldb.SBSymbol___ne__(self, rhs)
def GetDescription(self, description):
r"""GetDescription(SBSymbol self, SBStream description) -> bool"""
return _lldb.SBSymbol_GetDescription(self, description)
def IsExternal(self):
r"""IsExternal(SBSymbol self) -> bool"""
return _lldb.SBSymbol_IsExternal(self)
def IsSynthetic(self):
r"""IsSynthetic(SBSymbol self) -> bool"""
return _lldb.SBSymbol_IsSynthetic(self)
def __repr__(self):
r"""__repr__(SBSymbol self) -> std::string"""
return _lldb.SBSymbol___repr__(self)
def get_instructions_from_current_target (self):
return self.GetInstructions (target)
name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''')
mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''')
type = property(GetType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSymbolType") that represents the type of this symbol.''')
addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.''')
end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.''')
prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.''')
external = property(IsExternal, None, doc='''A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.''')
synthetic = property(IsSynthetic, None, doc='''A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBSymbol in _lldb:
_lldb.SBSymbol_swigregister(SBSymbol)
class SBSymbolContext(object):
r"""
A context object that provides access to core debugger entities.
Many debugger functions require a context when doing lookups. This class
provides a common structure that can be used as the result of a query that
can contain a single result.
For example, ::
exe = os.path.join(os.getcwd(), 'a.out')
# Create a target for the debugger.
target = self.dbg.CreateTarget(exe)
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
# Now launch the process, and do not stop at entry point.
process = target.LaunchSimple(None, None, os.getcwd())
# The inferior should stop on 'c'.
from lldbutil import get_stopped_thread
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
frame0 = thread.GetFrameAtIndex(0)
# Now get the SBSymbolContext from this frame. We want everything. :-)
context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
# Get the module.
module = context.GetModule()
...
# And the compile unit associated with the frame.
compileUnit = context.GetCompileUnit()
...
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBSymbolContext self) -> SBSymbolContext
__init__(SBSymbolContext self, SBSymbolContext rhs) -> SBSymbolContext
"""
_lldb.SBSymbolContext_swiginit(self, _lldb.new_SBSymbolContext(*args))
__swig_destroy__ = _lldb.delete_SBSymbolContext
def __nonzero__(self):
return _lldb.SBSymbolContext___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBSymbolContext self) -> bool"""
return _lldb.SBSymbolContext_IsValid(self)
def GetModule(self):
r"""GetModule(SBSymbolContext self) -> SBModule"""
return _lldb.SBSymbolContext_GetModule(self)
def GetCompileUnit(self):
r"""GetCompileUnit(SBSymbolContext self) -> SBCompileUnit"""
return _lldb.SBSymbolContext_GetCompileUnit(self)
def GetFunction(self):
r"""GetFunction(SBSymbolContext self) -> SBFunction"""
return _lldb.SBSymbolContext_GetFunction(self)
def GetBlock(self):
r"""GetBlock(SBSymbolContext self) -> SBBlock"""
return _lldb.SBSymbolContext_GetBlock(self)
def GetLineEntry(self):
r"""GetLineEntry(SBSymbolContext self) -> SBLineEntry"""
return _lldb.SBSymbolContext_GetLineEntry(self)
def GetSymbol(self):
r"""GetSymbol(SBSymbolContext self) -> SBSymbol"""
return _lldb.SBSymbolContext_GetSymbol(self)
def SetModule(self, module):
r"""SetModule(SBSymbolContext self, SBModule module)"""
return _lldb.SBSymbolContext_SetModule(self, module)
def SetCompileUnit(self, compile_unit):
r"""SetCompileUnit(SBSymbolContext self, SBCompileUnit compile_unit)"""
return _lldb.SBSymbolContext_SetCompileUnit(self, compile_unit)
def SetFunction(self, function):
r"""SetFunction(SBSymbolContext self, SBFunction function)"""
return _lldb.SBSymbolContext_SetFunction(self, function)
def SetBlock(self, block):
r"""SetBlock(SBSymbolContext self, SBBlock block)"""
return _lldb.SBSymbolContext_SetBlock(self, block)
def SetLineEntry(self, line_entry):
r"""SetLineEntry(SBSymbolContext self, SBLineEntry line_entry)"""
return _lldb.SBSymbolContext_SetLineEntry(self, line_entry)
def SetSymbol(self, symbol):
r"""SetSymbol(SBSymbolContext self, SBSymbol symbol)"""
return _lldb.SBSymbolContext_SetSymbol(self, symbol)
def GetParentOfInlinedScope(self, curr_frame_pc, parent_frame_addr):
r"""GetParentOfInlinedScope(SBSymbolContext self, SBAddress curr_frame_pc, SBAddress parent_frame_addr) -> SBSymbolContext"""
return _lldb.SBSymbolContext_GetParentOfInlinedScope(self, curr_frame_pc, parent_frame_addr)
def GetDescription(self, description):
r"""GetDescription(SBSymbolContext self, SBStream description) -> bool"""
return _lldb.SBSymbolContext_GetDescription(self, description)
def __repr__(self):
r"""__repr__(SBSymbolContext self) -> std::string"""
return _lldb.SBSymbolContext___repr__(self)
module = property(GetModule, SetModule, doc='''A read/write property that allows the getting/setting of the module (lldb.SBModule) in this symbol context.''')
compile_unit = property(GetCompileUnit, SetCompileUnit, doc='''A read/write property that allows the getting/setting of the compile unit (lldb.SBCompileUnit) in this symbol context.''')
function = property(GetFunction, SetFunction, doc='''A read/write property that allows the getting/setting of the function (lldb.SBFunction) in this symbol context.''')
block = property(GetBlock, SetBlock, doc='''A read/write property that allows the getting/setting of the block (lldb.SBBlock) in this symbol context.''')
symbol = property(GetSymbol, SetSymbol, doc='''A read/write property that allows the getting/setting of the symbol (lldb.SBSymbol) in this symbol context.''')
line_entry = property(GetLineEntry, SetLineEntry, doc='''A read/write property that allows the getting/setting of the line entry (lldb.SBLineEntry) in this symbol context.''')
# Register SBSymbolContext in _lldb:
_lldb.SBSymbolContext_swigregister(SBSymbolContext)
class SBSymbolContextList(object):
r"""
Represents a list of symbol context object. See also SBSymbolContext.
For example (from test/python_api/target/TestTargetAPI.py), ::
def find_functions(self, exe_name):
'''Exercise SBTarget.FindFunctions() API.'''
exe = os.path.join(os.getcwd(), exe_name)
# Create a target by the debugger.
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
list = lldb.SBSymbolContextList()
num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list)
self.assertTrue(num == 1 and list.GetSize() == 1)
for sc in list:
self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name)
self.assertTrue(sc.GetSymbol().GetName() == 'c')
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBSymbolContextList self) -> SBSymbolContextList
__init__(SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList
"""
_lldb.SBSymbolContextList_swiginit(self, _lldb.new_SBSymbolContextList(*args))
__swig_destroy__ = _lldb.delete_SBSymbolContextList
def __nonzero__(self):
return _lldb.SBSymbolContextList___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBSymbolContextList self) -> bool"""
return _lldb.SBSymbolContextList_IsValid(self)
def GetSize(self):
r"""GetSize(SBSymbolContextList self) -> uint32_t"""
return _lldb.SBSymbolContextList_GetSize(self)
def GetContextAtIndex(self, idx):
r"""GetContextAtIndex(SBSymbolContextList self, uint32_t idx) -> SBSymbolContext"""
return _lldb.SBSymbolContextList_GetContextAtIndex(self, idx)
def GetDescription(self, description):
r"""GetDescription(SBSymbolContextList self, SBStream description) -> bool"""
return _lldb.SBSymbolContextList_GetDescription(self, description)
def Append(self, *args):
r"""
Append(SBSymbolContextList self, SBSymbolContext sc)
Append(SBSymbolContextList self, SBSymbolContextList sc_list)
"""
return _lldb.SBSymbolContextList_Append(self, *args)
def Clear(self):
r"""Clear(SBSymbolContextList self)"""
return _lldb.SBSymbolContextList_Clear(self)
def __repr__(self):
r"""__repr__(SBSymbolContextList self) -> std::string"""
return _lldb.SBSymbolContextList___repr__(self)
def __iter__(self):
'''Iterate over all symbol contexts in a lldb.SBSymbolContextList
object.'''
return lldb_iter(self, 'GetSize', 'GetContextAtIndex')
def __len__(self):
return int(self.GetSize())
def __getitem__(self, key):
count = len(self)
if isinstance(key, int):
if -count <= key < count:
key %= count
return self.GetContextAtIndex(key)
else:
raise IndexError
raise TypeError
def get_module_array(self):
a = []
for i in range(len(self)):
obj = self.GetContextAtIndex(i).module
if obj:
a.append(obj)
return a
def get_compile_unit_array(self):
a = []
for i in range(len(self)):
obj = self.GetContextAtIndex(i).compile_unit
if obj:
a.append(obj)
return a
def get_function_array(self):
a = []
for i in range(len(self)):
obj = self.GetContextAtIndex(i).function
if obj:
a.append(obj)
return a
def get_block_array(self):
a = []
for i in range(len(self)):
obj = self.GetContextAtIndex(i).block
if obj:
a.append(obj)
return a
def get_symbol_array(self):
a = []
for i in range(len(self)):
obj = self.GetContextAtIndex(i).symbol
if obj:
a.append(obj)
return a
def get_line_entry_array(self):
a = []
for i in range(len(self)):
obj = self.GetContextAtIndex(i).line_entry
if obj:
a.append(obj)
return a
modules = property(get_module_array, None, doc='''Returns a list() of lldb.SBModule objects, one for each module in each SBSymbolContext object in this list.''')
compile_units = property(get_compile_unit_array, None, doc='''Returns a list() of lldb.SBCompileUnit objects, one for each compile unit in each SBSymbolContext object in this list.''')
functions = property(get_function_array, None, doc='''Returns a list() of lldb.SBFunction objects, one for each function in each SBSymbolContext object in this list.''')
blocks = property(get_block_array, None, doc='''Returns a list() of lldb.SBBlock objects, one for each block in each SBSymbolContext object in this list.''')
line_entries = property(get_line_entry_array, None, doc='''Returns a list() of lldb.SBLineEntry objects, one for each line entry in each SBSymbolContext object in this list.''')
symbols = property(get_symbol_array, None, doc='''Returns a list() of lldb.SBSymbol objects, one for each symbol in each SBSymbolContext object in this list.''')
# Register SBSymbolContextList in _lldb:
_lldb.SBSymbolContextList_swigregister(SBSymbolContextList)
class SBTarget(object):
r"""
Represents the target program running under the debugger.
SBTarget supports module, breakpoint, and watchpoint iterations. For example, ::
for m in target.module_iter():
print m
produces: ::
(x86_64) /Volumes/data/lldb/svn/trunk/test/python_api/lldbutil/iter/a.out
(x86_64) /usr/lib/dyld
(x86_64) /usr/lib/libstdc++.6.dylib
(x86_64) /usr/lib/libSystem.B.dylib
(x86_64) /usr/lib/system/libmathCommon.A.dylib
(x86_64) /usr/lib/libSystem.B.dylib(__commpage)
and, ::
for b in target.breakpoint_iter():
print b
produces: ::
SBBreakpoint: id = 1, file ='main.cpp', line = 66, locations = 1
SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1
and, ::
for wp_loc in target.watchpoint_iter():
print wp_loc
produces: ::
Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw
declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12'
hw_index = 0 hit_count = 2 ignore_count = 0
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
eBroadcastBitBreakpointChanged = _lldb.SBTarget_eBroadcastBitBreakpointChanged
eBroadcastBitModulesLoaded = _lldb.SBTarget_eBroadcastBitModulesLoaded
eBroadcastBitModulesUnloaded = _lldb.SBTarget_eBroadcastBitModulesUnloaded
eBroadcastBitWatchpointChanged = _lldb.SBTarget_eBroadcastBitWatchpointChanged
eBroadcastBitSymbolsLoaded = _lldb.SBTarget_eBroadcastBitSymbolsLoaded
eBroadcastBitSymbolsChanged = _lldb.SBTarget_eBroadcastBitSymbolsChanged
def __init__(self, *args):
r"""
__init__(SBTarget self) -> SBTarget
__init__(SBTarget self, SBTarget rhs) -> SBTarget
"""
_lldb.SBTarget_swiginit(self, _lldb.new_SBTarget(*args))
__swig_destroy__ = _lldb.delete_SBTarget
def __nonzero__(self):
return _lldb.SBTarget___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTarget self) -> bool"""
return _lldb.SBTarget_IsValid(self)
@staticmethod
def EventIsTargetEvent(event):
r"""EventIsTargetEvent(SBEvent event) -> bool"""
return _lldb.SBTarget_EventIsTargetEvent(event)
@staticmethod
def GetTargetFromEvent(event):
r"""GetTargetFromEvent(SBEvent event) -> SBTarget"""
return _lldb.SBTarget_GetTargetFromEvent(event)
@staticmethod
def GetNumModulesFromEvent(event):
r"""GetNumModulesFromEvent(SBEvent event) -> uint32_t"""
return _lldb.SBTarget_GetNumModulesFromEvent(event)
@staticmethod
def GetModuleAtIndexFromEvent(idx, event):
r"""GetModuleAtIndexFromEvent(uint32_t const idx, SBEvent event) -> SBModule"""
return _lldb.SBTarget_GetModuleAtIndexFromEvent(idx, event)
@staticmethod
def GetBroadcasterClassName():
r"""GetBroadcasterClassName() -> char const *"""
return _lldb.SBTarget_GetBroadcasterClassName()
def GetProcess(self):
r"""GetProcess(SBTarget self) -> SBProcess"""
return _lldb.SBTarget_GetProcess(self)
def SetCollectingStats(self, v):
r"""SetCollectingStats(SBTarget self, bool v)"""
return _lldb.SBTarget_SetCollectingStats(self, v)
def GetCollectingStats(self):
r"""GetCollectingStats(SBTarget self) -> bool"""
return _lldb.SBTarget_GetCollectingStats(self)
def GetStatistics(self):
r"""GetStatistics(SBTarget self) -> SBStructuredData"""
return _lldb.SBTarget_GetStatistics(self)
def GetPlatform(self):
r"""
GetPlatform(SBTarget self) -> SBPlatform
Return the platform object associated with the target.
After return, the platform object should be checked for
validity.
@return
A platform object.
"""
return _lldb.SBTarget_GetPlatform(self)
def GetEnvironment(self):
r"""GetEnvironment(SBTarget self) -> SBEnvironment"""
return _lldb.SBTarget_GetEnvironment(self)
def Install(self):
r"""
Install(SBTarget self) -> SBError
Install any binaries that need to be installed.
This function does nothing when debugging on the host system.
When connected to remote platforms, the target's main executable
and any modules that have their install path set will be
installed on the remote platform. If the main executable doesn't
have an install location set, it will be installed in the remote
platform's working directory.
@return
An error describing anything that went wrong during
installation.
"""
return _lldb.SBTarget_Install(self)
def LoadCore(self, *args):
r"""
LoadCore(SBTarget self, char const * core_file) -> SBProcess
LoadCore(SBTarget self, char const * core_file, SBError error) -> SBProcess
Load a core file
@param[in] core_file
File path of the core dump.
@param[out] error
An error explaining what went wrong if the operation fails.
(Optional)
@return
A process object for the newly created core file.
For example,
process = target.LoadCore('./a.out.core')
loads a new core file and returns the process object.
"""
return _lldb.SBTarget_LoadCore(self, *args)
def LaunchSimple(self, argv, envp, working_directory):
r"""
LaunchSimple(SBTarget self, char const ** argv, char const ** envp, char const * working_directory) -> SBProcess
Launch a new process with sensible defaults.
:param argv: The argument array.
:param envp: The environment array.
:param working_directory: The working directory to have the child process run in
:return: The newly created process.
:rtype: SBProcess
A pseudo terminal will be used as stdin/stdout/stderr.
No launch flags are passed and the target's debuger is used as a listener.
For example, ::
process = target.LaunchSimple(['X', 'Y', 'Z'], None, os.getcwd())
launches a new process by passing 'X', 'Y', 'Z' as the args to the
executable.
"""
return _lldb.SBTarget_LaunchSimple(self, argv, envp, working_directory)
def Launch(self, *args):
r"""
Launch(SBTarget self, SBListener listener, char const ** argv, char const ** envp, char const * stdin_path, char const * stdout_path, char const * stderr_path, char const * working_directory, uint32_t launch_flags, bool stop_at_entry, SBError error) -> SBProcess
Launch(SBTarget self, SBLaunchInfo launch_info, SBError error) -> SBProcess
Launch a new process.
Launch a new process by spawning a new process using the
target object's executable module's file as the file to launch.
Arguments are given in argv, and the environment variables
are in envp. Standard input and output files can be
optionally re-directed to stdin_path, stdout_path, and
stderr_path.
@param[in] listener
An optional listener that will receive all process events.
If listener is valid then listener will listen to all
process events. If not valid, then this target's debugger
(SBTarget::GetDebugger()) will listen to all process events.
@param[in] argv
The argument array.
@param[in] envp
The environment array.
@param[in] launch_flags
Flags to modify the launch (@see lldb::LaunchFlags)
@param[in] stdin_path
The path to use when re-directing the STDIN of the new
process. If all stdXX_path arguments are NULL, a pseudo
terminal will be used.
@param[in] stdout_path
The path to use when re-directing the STDOUT of the new
process. If all stdXX_path arguments are NULL, a pseudo
terminal will be used.
@param[in] stderr_path
The path to use when re-directing the STDERR of the new
process. If all stdXX_path arguments are NULL, a pseudo
terminal will be used.
@param[in] working_directory
The working directory to have the child process run in
@param[in] launch_flags
Some launch options specified by logical OR'ing
lldb::LaunchFlags enumeration values together.
@param[in] stop_at_entry
If false do not stop the inferior at the entry point.
@param[out]
An error object. Contains the reason if there is some failure.
@return
A process object for the newly created process.
For example,
process = target.Launch(self.dbg.GetListener(), None, None,
None, '/tmp/stdout.txt', None,
None, 0, False, error)
launches a new process by passing nothing for both the args and the envs
and redirect the standard output of the inferior to the /tmp/stdout.txt
file. It does not specify a working directory so that the debug server
will use its idea of what the current working directory is for the
inferior. Also, we ask the debugger not to stop the inferior at the
entry point. If no breakpoint is specified for the inferior, it should
run to completion if no user interaction is required.
"""
return _lldb.SBTarget_Launch(self, *args)
def Attach(self, attach_info, error):
r"""Attach(SBTarget self, SBAttachInfo attach_info, SBError error) -> SBProcess"""
return _lldb.SBTarget_Attach(self, attach_info, error)
def AttachToProcessWithID(self, listener, pid, error):
r"""
AttachToProcessWithID(SBTarget self, SBListener listener, lldb::pid_t pid, SBError error) -> SBProcess
Attach to process with pid.
@param[in] listener
An optional listener that will receive all process events.
If listener is valid then listener will listen to all
process events. If not valid, then this target's debugger
(SBTarget::GetDebugger()) will listen to all process events.
@param[in] pid
The process ID to attach to.
@param[out]
An error explaining what went wrong if attach fails.
@return
A process object for the attached process.
"""
return _lldb.SBTarget_AttachToProcessWithID(self, listener, pid, error)
def AttachToProcessWithName(self, listener, name, wait_for, error):
r"""
AttachToProcessWithName(SBTarget self, SBListener listener, char const * name, bool wait_for, SBError error) -> SBProcess
Attach to process with name.
@param[in] listener
An optional listener that will receive all process events.
If listener is valid then listener will listen to all
process events. If not valid, then this target's debugger
(SBTarget::GetDebugger()) will listen to all process events.
@param[in] name
Basename of process to attach to.
@param[in] wait_for
If true wait for a new instance of 'name' to be launched.
@param[out]
An error explaining what went wrong if attach fails.
@return
A process object for the attached process.
"""
return _lldb.SBTarget_AttachToProcessWithName(self, listener, name, wait_for, error)
def ConnectRemote(self, listener, url, plugin_name, error):
r"""
ConnectRemote(SBTarget self, SBListener listener, char const * url, char const * plugin_name, SBError error) -> SBProcess
Connect to a remote debug server with url.
@param[in] listener
An optional listener that will receive all process events.
If listener is valid then listener will listen to all
process events. If not valid, then this target's debugger
(SBTarget::GetDebugger()) will listen to all process events.
@param[in] url
The url to connect to, e.g., 'connect://localhost:12345'.
@param[in] plugin_name
The plugin name to be used; can be NULL.
@param[out]
An error explaining what went wrong if the connect fails.
@return
A process object for the connected process.
"""
return _lldb.SBTarget_ConnectRemote(self, listener, url, plugin_name, error)
def GetExecutable(self):
r"""GetExecutable(SBTarget self) -> SBFileSpec"""
return _lldb.SBTarget_GetExecutable(self)
def AppendImageSearchPath(self, _from, to, error):
r"""
AppendImageSearchPath(SBTarget self, char const * _from, char const * to, SBError error)
Append the path mapping (from -> to) to the target's paths mapping list.
"""
return _lldb.SBTarget_AppendImageSearchPath(self, _from, to, error)
def AddModule(self, *args):
r"""
AddModule(SBTarget self, SBModule module) -> bool
AddModule(SBTarget self, char const * path, char const * triple, char const * uuid) -> SBModule
AddModule(SBTarget self, char const * path, char const * triple, char const * uuid_cstr, char const * symfile) -> SBModule
AddModule(SBTarget self, SBModuleSpec module_spec) -> SBModule
"""
return _lldb.SBTarget_AddModule(self, *args)
def GetNumModules(self):
r"""GetNumModules(SBTarget self) -> uint32_t"""
return _lldb.SBTarget_GetNumModules(self)
def GetModuleAtIndex(self, idx):
r"""GetModuleAtIndex(SBTarget self, uint32_t idx) -> SBModule"""
return _lldb.SBTarget_GetModuleAtIndex(self, idx)
def RemoveModule(self, module):
r"""RemoveModule(SBTarget self, SBModule module) -> bool"""
return _lldb.SBTarget_RemoveModule(self, module)
def GetDebugger(self):
r"""GetDebugger(SBTarget self) -> SBDebugger"""
return _lldb.SBTarget_GetDebugger(self)
def FindModule(self, file_spec):
r"""FindModule(SBTarget self, SBFileSpec file_spec) -> SBModule"""
return _lldb.SBTarget_FindModule(self, file_spec)
def FindCompileUnits(self, sb_file_spec):
r"""
FindCompileUnits(SBTarget self, SBFileSpec sb_file_spec) -> SBSymbolContextList
Find compile units related to this target and passed source
file.
:param sb_file_spec: A :py:class:`lldb::SBFileSpec` object that contains source file
specification.
:return: The symbol contexts for all the matches.
:rtype: SBSymbolContextList
"""
return _lldb.SBTarget_FindCompileUnits(self, sb_file_spec)
def GetByteOrder(self):
r"""GetByteOrder(SBTarget self) -> lldb::ByteOrder"""
return _lldb.SBTarget_GetByteOrder(self)
def GetAddressByteSize(self):
r"""GetAddressByteSize(SBTarget self) -> uint32_t"""
return _lldb.SBTarget_GetAddressByteSize(self)
def GetTriple(self):
r"""GetTriple(SBTarget self) -> char const *"""
return _lldb.SBTarget_GetTriple(self)
def GetABIName(self):
r"""GetABIName(SBTarget self) -> char const *"""
return _lldb.SBTarget_GetABIName(self)
def GetLabel(self):
r"""GetLabel(SBTarget self) -> char const *"""
return _lldb.SBTarget_GetLabel(self)
def SetLabel(self, label):
r"""SetLabel(SBTarget self, char const * label) -> SBError"""
return _lldb.SBTarget_SetLabel(self, label)
def GetDataByteSize(self):
r"""
GetDataByteSize(SBTarget self) -> uint32_t
Architecture data byte width accessor
:return: The size in 8-bit (host) bytes of a minimum addressable unit from the Architecture's data bus.
"""
return _lldb.SBTarget_GetDataByteSize(self)
def GetCodeByteSize(self):
r"""
GetCodeByteSize(SBTarget self) -> uint32_t
Architecture code byte width accessor.
:return: The size in 8-bit (host) bytes of a minimum addressable unit from the Architecture's code bus.
"""
return _lldb.SBTarget_GetCodeByteSize(self)
def GetMaximumNumberOfChildrenToDisplay(self):
r"""GetMaximumNumberOfChildrenToDisplay(SBTarget self) -> uint32_t"""
return _lldb.SBTarget_GetMaximumNumberOfChildrenToDisplay(self)
def SetSectionLoadAddress(self, section, section_base_addr):
r"""SetSectionLoadAddress(SBTarget self, SBSection section, lldb::addr_t section_base_addr) -> SBError"""
return _lldb.SBTarget_SetSectionLoadAddress(self, section, section_base_addr)
def ClearSectionLoadAddress(self, section):
r"""ClearSectionLoadAddress(SBTarget self, SBSection section) -> SBError"""
return _lldb.SBTarget_ClearSectionLoadAddress(self, section)
def SetModuleLoadAddress(self, module, sections_offset):
r"""SetModuleLoadAddress(SBTarget self, SBModule module, uint64_t sections_offset) -> SBError"""
return _lldb.SBTarget_SetModuleLoadAddress(self, module, sections_offset)
def ClearModuleLoadAddress(self, module):
r"""ClearModuleLoadAddress(SBTarget self, SBModule module) -> SBError"""
return _lldb.SBTarget_ClearModuleLoadAddress(self, module)
def FindFunctions(self, *args):
r"""
FindFunctions(SBTarget self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList
Find functions by name.
:param name: The name of the function we are looking for.
:param name_type_mask:
A logical OR of one or more FunctionNameType enum bits that
indicate what kind of names should be used when doing the
lookup. Bits include fully qualified names, base names,
C++ methods, or ObjC selectors.
See FunctionNameType for more details.
:return:
A lldb::SBSymbolContextList that gets filled in with all of
the symbol contexts for all the matches.
"""
return _lldb.SBTarget_FindFunctions(self, *args)
def FindFirstGlobalVariable(self, name):
r"""
FindFirstGlobalVariable(SBTarget self, char const * name) -> SBValue
Find the first global (or static) variable by name.
@param[in] name
The name of the global or static variable we are looking
for.
@return
An SBValue that gets filled in with the found variable (if any).
"""
return _lldb.SBTarget_FindFirstGlobalVariable(self, name)
def FindGlobalVariables(self, *args):
r"""
FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches) -> SBValueList
FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBValueList
Find global and static variables by name.
@param[in] name
The name of the global or static variable we are looking
for.
@param[in] max_matches
Allow the number of matches to be limited to max_matches.
@return
A list of matched variables in an SBValueList.
"""
return _lldb.SBTarget_FindGlobalVariables(self, *args)
def FindGlobalFunctions(self, name, max_matches, matchtype):
r"""FindGlobalFunctions(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBSymbolContextList"""
return _lldb.SBTarget_FindGlobalFunctions(self, name, max_matches, matchtype)
def Clear(self):
r"""Clear(SBTarget self)"""
return _lldb.SBTarget_Clear(self)
def ResolveFileAddress(self, file_addr):
r"""
ResolveFileAddress(SBTarget self, lldb::addr_t file_addr) -> SBAddress
Resolve a current file address into a section offset address.
@param[in] file_addr
@return
An SBAddress which will be valid if...
"""
return _lldb.SBTarget_ResolveFileAddress(self, file_addr)
def ResolveLoadAddress(self, vm_addr):
r"""ResolveLoadAddress(SBTarget self, lldb::addr_t vm_addr) -> SBAddress"""
return _lldb.SBTarget_ResolveLoadAddress(self, vm_addr)
def ResolvePastLoadAddress(self, stop_id, vm_addr):
r"""ResolvePastLoadAddress(SBTarget self, uint32_t stop_id, lldb::addr_t vm_addr) -> SBAddress"""
return _lldb.SBTarget_ResolvePastLoadAddress(self, stop_id, vm_addr)
def ResolveSymbolContextForAddress(self, addr, resolve_scope):
r"""ResolveSymbolContextForAddress(SBTarget self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext"""
return _lldb.SBTarget_ResolveSymbolContextForAddress(self, addr, resolve_scope)
def ReadMemory(self, addr, buf, error):
r"""
ReadMemory(SBTarget self, SBAddress addr, void * buf, SBError error) -> size_t
Read target memory. If a target process is running then memory
is read from here. Otherwise the memory is read from the object
files. For a target whose bytes are sized as a multiple of host
bytes, the data read back will preserve the target's byte order.
@param[in] addr
A target address to read from.
@param[out] buf
The buffer to read memory into.
@param[in] size
The maximum number of host bytes to read in the buffer passed
into this call
@param[out] error
Error information is written here if the memory read fails.
@return
The amount of data read in host bytes.
"""
return _lldb.SBTarget_ReadMemory(self, addr, buf, error)
def BreakpointCreateByLocation(self, *args):
r"""
BreakpointCreateByLocation(SBTarget self, char const * file, uint32_t line) -> SBBreakpoint
BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line) -> SBBreakpoint
BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset) -> SBBreakpoint
BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint
BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, uint32_t column, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint
BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, uint32_t column, lldb::addr_t offset, SBFileSpecList module_list, bool move_to_nearest_code) -> SBBreakpoint
"""
return _lldb.SBTarget_BreakpointCreateByLocation(self, *args)
def BreakpointCreateByName(self, *args):
r"""
BreakpointCreateByName(SBTarget self, char const * symbol_name, char const * module_name=None) -> SBBreakpoint
BreakpointCreateByName(SBTarget self, char const * symbol_name, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
"""
return _lldb.SBTarget_BreakpointCreateByName(self, *args)
def BreakpointCreateByNames(self, *args):
r"""
BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, lldb::addr_t offset, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
"""
return _lldb.SBTarget_BreakpointCreateByNames(self, *args)
def BreakpointCreateByRegex(self, *args):
r"""
BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, char const * module_name=None) -> SBBreakpoint
BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, lldb::LanguageType symbol_language, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
"""
return _lldb.SBTarget_BreakpointCreateByRegex(self, *args)
def BreakpointCreateBySourceRegex(self, *args):
r"""
BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpec source_file, char const * module_name=None) -> SBBreakpoint
BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpecList module_list, SBFileSpecList source_file) -> SBBreakpoint
BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpecList module_list, SBFileSpecList source_file, SBStringList func_names) -> SBBreakpoint
"""
return _lldb.SBTarget_BreakpointCreateBySourceRegex(self, *args)
def BreakpointCreateForException(self, *args):
r"""
BreakpointCreateForException(SBTarget self, lldb::LanguageType language, bool catch_bp, bool throw_bp) -> SBBreakpoint
BreakpointCreateForException(SBTarget self, lldb::LanguageType language, bool catch_bp, bool throw_bp, SBStringList extra_args) -> SBBreakpoint
"""
return _lldb.SBTarget_BreakpointCreateForException(self, *args)
def BreakpointCreateByAddress(self, address):
r"""BreakpointCreateByAddress(SBTarget self, lldb::addr_t address) -> SBBreakpoint"""
return _lldb.SBTarget_BreakpointCreateByAddress(self, address)
def BreakpointCreateBySBAddress(self, address):
r"""BreakpointCreateBySBAddress(SBTarget self, SBAddress address) -> SBBreakpoint"""
return _lldb.SBTarget_BreakpointCreateBySBAddress(self, address)
def BreakpointCreateFromScript(self, class_name, extra_args, module_list, file_list, request_hardware=False):
r"""
BreakpointCreateFromScript(SBTarget self, char const * class_name, SBStructuredData extra_args, SBFileSpecList module_list, SBFileSpecList file_list, bool request_hardware=False) -> SBBreakpoint
Create a breakpoint using a scripted resolver.
@param[in] class_name
This is the name of the class that implements a scripted resolver.
The class should have the following signature: ::
class Resolver:
def __init__(self, bkpt, extra_args):
# bkpt - the breakpoint for which this is the resolver. When
# the resolver finds an interesting address, call AddLocation
# on this breakpoint to add it.
#
# extra_args - an SBStructuredData that can be used to
# parametrize this instance. Same as the extra_args passed
# to BreakpointCreateFromScript.
def __get_depth__ (self):
# This is optional, but if defined, you should return the
# depth at which you want the callback to be called. The
# available options are:
# lldb.eSearchDepthModule
# lldb.eSearchDepthCompUnit
# The default if you don't implement this method is
# eSearchDepthModule.
def __callback__(self, sym_ctx):
# sym_ctx - an SBSymbolContext that is the cursor in the
# search through the program to resolve breakpoints.
# The sym_ctx will be filled out to the depth requested in
# __get_depth__.
# Look in this sym_ctx for new breakpoint locations,
# and if found use bkpt.AddLocation to add them.
# Note, you will only get called for modules/compile_units that
# pass the SearchFilter provided by the module_list & file_list
# passed into BreakpointCreateFromScript.
def get_short_help(self):
# Optional, but if implemented return a short string that will
# be printed at the beginning of the break list output for the
# breakpoint.
@param[in] extra_args
This is an SBStructuredData object that will get passed to the
constructor of the class in class_name. You can use this to
reuse the same class, parametrizing it with entries from this
dictionary.
@param module_list
If this is non-empty, this will be used as the module filter in the
SearchFilter created for this breakpoint.
@param file_list
If this is non-empty, this will be used as the comp unit filter in the
SearchFilter created for this breakpoint.
@return
An SBBreakpoint that will set locations based on the logic in the
resolver's search callback.
"""
return _lldb.SBTarget_BreakpointCreateFromScript(self, class_name, extra_args, module_list, file_list, request_hardware)
def BreakpointsCreateFromFile(self, *args):
r"""
BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBBreakpointList new_bps) -> SBError
BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBStringList matching_names, SBBreakpointList new_bps) -> SBError
Read breakpoints from source_file and return the newly created
breakpoints in bkpt_list.
@param[in] source_file
The file from which to read the breakpoints
@param[in] matching_names
Only read in breakpoints whose names match one of the names in this
list.
@param[out] bkpt_list
A list of the newly created breakpoints.
@return
An SBError detailing any errors in reading in the breakpoints.
"""
return _lldb.SBTarget_BreakpointsCreateFromFile(self, *args)
def BreakpointsWriteToFile(self, *args):
r"""
BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file) -> SBError
BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list, bool append=False) -> SBError
Write breakpoints listed in bkpt_list to dest_file.
@param[in] dest_file
The file to which to write the breakpoints.
@param[in] bkpt_list
Only write breakpoints from this list.
@param[in] append
If true, append the breakpoints in bkpt_list to the others
serialized in dest_file. If dest_file doesn't exist, then a new
file will be created and the breakpoints in bkpt_list written to it.
@return
An SBError detailing any errors in writing in the breakpoints.
"""
return _lldb.SBTarget_BreakpointsWriteToFile(self, *args)
def GetNumBreakpoints(self):
r"""GetNumBreakpoints(SBTarget self) -> uint32_t"""
return _lldb.SBTarget_GetNumBreakpoints(self)
def GetBreakpointAtIndex(self, idx):
r"""GetBreakpointAtIndex(SBTarget self, uint32_t idx) -> SBBreakpoint"""
return _lldb.SBTarget_GetBreakpointAtIndex(self, idx)
def BreakpointDelete(self, break_id):
r"""BreakpointDelete(SBTarget self, lldb::break_id_t break_id) -> bool"""
return _lldb.SBTarget_BreakpointDelete(self, break_id)
def FindBreakpointByID(self, break_id):
r"""FindBreakpointByID(SBTarget self, lldb::break_id_t break_id) -> SBBreakpoint"""
return _lldb.SBTarget_FindBreakpointByID(self, break_id)
def FindBreakpointsByName(self, name, bkpt_list):
r"""FindBreakpointsByName(SBTarget self, char const * name, SBBreakpointList bkpt_list) -> bool"""
return _lldb.SBTarget_FindBreakpointsByName(self, name, bkpt_list)
def GetBreakpointNames(self, names):
r"""GetBreakpointNames(SBTarget self, SBStringList names)"""
return _lldb.SBTarget_GetBreakpointNames(self, names)
def DeleteBreakpointName(self, name):
r"""DeleteBreakpointName(SBTarget self, char const * name)"""
return _lldb.SBTarget_DeleteBreakpointName(self, name)
def EnableAllBreakpoints(self):
r"""EnableAllBreakpoints(SBTarget self) -> bool"""
return _lldb.SBTarget_EnableAllBreakpoints(self)
def DisableAllBreakpoints(self):
r"""DisableAllBreakpoints(SBTarget self) -> bool"""
return _lldb.SBTarget_DisableAllBreakpoints(self)
def DeleteAllBreakpoints(self):
r"""DeleteAllBreakpoints(SBTarget self) -> bool"""
return _lldb.SBTarget_DeleteAllBreakpoints(self)
def GetNumWatchpoints(self):
r"""GetNumWatchpoints(SBTarget self) -> uint32_t"""
return _lldb.SBTarget_GetNumWatchpoints(self)
def GetWatchpointAtIndex(self, idx):
r"""GetWatchpointAtIndex(SBTarget self, uint32_t idx) -> SBWatchpoint"""
return _lldb.SBTarget_GetWatchpointAtIndex(self, idx)
def DeleteWatchpoint(self, watch_id):
r"""DeleteWatchpoint(SBTarget self, lldb::watch_id_t watch_id) -> bool"""
return _lldb.SBTarget_DeleteWatchpoint(self, watch_id)
def FindWatchpointByID(self, watch_id):
r"""FindWatchpointByID(SBTarget self, lldb::watch_id_t watch_id) -> SBWatchpoint"""
return _lldb.SBTarget_FindWatchpointByID(self, watch_id)
def WatchAddress(self, addr, size, read, modify, error):
r"""WatchAddress(SBTarget self, lldb::addr_t addr, size_t size, bool read, bool modify, SBError error) -> SBWatchpoint"""
return _lldb.SBTarget_WatchAddress(self, addr, size, read, modify, error)
def WatchpointCreateByAddress(self, addr, size, options, error):
r"""WatchpointCreateByAddress(SBTarget self, lldb::addr_t addr, size_t size, SBWatchpointOptions options, SBError error) -> SBWatchpoint"""
return _lldb.SBTarget_WatchpointCreateByAddress(self, addr, size, options, error)
def EnableAllWatchpoints(self):
r"""EnableAllWatchpoints(SBTarget self) -> bool"""
return _lldb.SBTarget_EnableAllWatchpoints(self)
def DisableAllWatchpoints(self):
r"""DisableAllWatchpoints(SBTarget self) -> bool"""
return _lldb.SBTarget_DisableAllWatchpoints(self)
def DeleteAllWatchpoints(self):
r"""DeleteAllWatchpoints(SBTarget self) -> bool"""
return _lldb.SBTarget_DeleteAllWatchpoints(self)
def GetBroadcaster(self):
r"""GetBroadcaster(SBTarget self) -> SBBroadcaster"""
return _lldb.SBTarget_GetBroadcaster(self)
def FindFirstType(self, type):
r"""FindFirstType(SBTarget self, char const * type) -> SBType"""
return _lldb.SBTarget_FindFirstType(self, type)
def FindTypes(self, type):
r"""FindTypes(SBTarget self, char const * type) -> SBTypeList"""
return _lldb.SBTarget_FindTypes(self, type)
def GetBasicType(self, type):
r"""GetBasicType(SBTarget self, lldb::BasicType type) -> SBType"""
return _lldb.SBTarget_GetBasicType(self, type)
def CreateValueFromAddress(self, name, addr, type):
r"""
CreateValueFromAddress(SBTarget self, char const * name, SBAddress addr, SBType type) -> SBValue
Create an SBValue with the given name by treating the memory starting at addr as an entity of type.
@param[in] name
The name of the resultant SBValue
@param[in] addr
The address of the start of the memory region to be used.
@param[in] type
The type to use to interpret the memory starting at addr.
@return
An SBValue of the given type, may be invalid if there was an error reading
the underlying memory.
"""
return _lldb.SBTarget_CreateValueFromAddress(self, name, addr, type)
def CreateValueFromData(self, name, data, type):
r"""CreateValueFromData(SBTarget self, char const * name, SBData data, SBType type) -> SBValue"""
return _lldb.SBTarget_CreateValueFromData(self, name, data, type)
def CreateValueFromExpression(self, name, expr):
r"""CreateValueFromExpression(SBTarget self, char const * name, char const * expr) -> SBValue"""
return _lldb.SBTarget_CreateValueFromExpression(self, name, expr)
def GetSourceManager(self):
r"""GetSourceManager(SBTarget self) -> SBSourceManager"""
return _lldb.SBTarget_GetSourceManager(self)
def ReadInstructions(self, *args):
r"""
ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count) -> SBInstructionList
ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count, char const * flavor_string) -> SBInstructionList
Disassemble a specified number of instructions starting at an address.
:param base_addr: the address to start disassembly from.
:param count: the number of instructions to disassemble.
:param flavor_string: may be 'intel' or 'att' on x86 targets to specify that style of disassembly.
:rtype: SBInstructionList
"""
return _lldb.SBTarget_ReadInstructions(self, *args)
def GetInstructions(self, base_addr, buf):
r"""
GetInstructions(SBTarget self, SBAddress base_addr, void const * buf) -> SBInstructionList
Disassemble the bytes in a buffer and return them in an SBInstructionList.
:param base_addr: used for symbolicating the offsets in the byte stream when disassembling.
:param buf: bytes to be disassembled.
:param size: (C++) size of the buffer.
:rtype: SBInstructionList
"""
return _lldb.SBTarget_GetInstructions(self, base_addr, buf)
def GetInstructionsWithFlavor(self, base_addr, flavor_string, buf):
r"""
GetInstructionsWithFlavor(SBTarget self, SBAddress base_addr, char const * flavor_string, void const * buf) -> SBInstructionList
Disassemble the bytes in a buffer and return them in an SBInstructionList, with a supplied flavor.
:param base_addr: used for symbolicating the offsets in the byte stream when disassembling.
:param flavor: may be 'intel' or 'att' on x86 targets to specify that style of disassembly.
:param buf: bytes to be disassembled.
:param size: (C++) size of the buffer.
:rtype: SBInstructionList
"""
return _lldb.SBTarget_GetInstructionsWithFlavor(self, base_addr, flavor_string, buf)
def FindSymbols(self, *args):
r"""FindSymbols(SBTarget self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList"""
return _lldb.SBTarget_FindSymbols(self, *args)
def __eq__(self, rhs):
r"""__eq__(SBTarget self, SBTarget rhs) -> bool"""
return _lldb.SBTarget___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTarget self, SBTarget rhs) -> bool"""
return _lldb.SBTarget___ne__(self, rhs)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTarget self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTarget_GetDescription(self, description, description_level)
def EvaluateExpression(self, *args):
r"""
EvaluateExpression(SBTarget self, char const * expr) -> SBValue
EvaluateExpression(SBTarget self, char const * expr, SBExpressionOptions options) -> SBValue
"""
return _lldb.SBTarget_EvaluateExpression(self, *args)
def GetStackRedZoneSize(self):
r"""GetStackRedZoneSize(SBTarget self) -> lldb::addr_t"""
return _lldb.SBTarget_GetStackRedZoneSize(self)
def IsLoaded(self, module):
r"""
IsLoaded(SBTarget self, SBModule module) -> bool
Returns true if the module has been loaded in this `SBTarget`.
A module can be loaded either by the dynamic loader or by being manually
added to the target (see `SBTarget.AddModule` and the ``target module add`` command).
:rtype: bool
"""
return _lldb.SBTarget_IsLoaded(self, module)
def GetLaunchInfo(self):
r"""GetLaunchInfo(SBTarget self) -> SBLaunchInfo"""
return _lldb.SBTarget_GetLaunchInfo(self)
def SetLaunchInfo(self, launch_info):
r"""SetLaunchInfo(SBTarget self, SBLaunchInfo launch_info)"""
return _lldb.SBTarget_SetLaunchInfo(self, launch_info)
def GetTrace(self):
r"""GetTrace(SBTarget self) -> SBTrace"""
return _lldb.SBTarget_GetTrace(self)
def CreateTrace(self, error):
r"""CreateTrace(SBTarget self, SBError error) -> SBTrace"""
return _lldb.SBTarget_CreateTrace(self, error)
def __repr__(self):
r"""__repr__(SBTarget self) -> std::string"""
return _lldb.SBTarget___repr__(self)
class modules_access(object):
'''A helper object that will lazily hand out lldb.SBModule objects for a target when supplied an index, or by full or partial path.'''
def __init__(self, sbtarget):
self.sbtarget = sbtarget
def __len__(self):
if self.sbtarget:
return int(self.sbtarget.GetNumModules())
return 0
def __getitem__(self, key):
num_modules = self.sbtarget.GetNumModules()
if type(key) is int:
if -num_modules <= key < num_modules:
key %= num_modules
return self.sbtarget.GetModuleAtIndex(key)
elif type(key) is str:
if key.find('/') == -1:
for idx in range(num_modules):
module = self.sbtarget.GetModuleAtIndex(idx)
if module.file.basename == key:
return module
else:
for idx in range(num_modules):
module = self.sbtarget.GetModuleAtIndex(idx)
if module.file.fullpath == key:
return module
# See if the string is a UUID
try:
the_uuid = uuid.UUID(key)
if the_uuid:
for idx in range(num_modules):
module = self.sbtarget.GetModuleAtIndex(idx)
if module.uuid == the_uuid:
return module
except:
return None
elif type(key) is uuid.UUID:
for idx in range(num_modules):
module = self.sbtarget.GetModuleAtIndex(idx)
if module.uuid == key:
return module
elif type(key) is re.SRE_Pattern:
matching_modules = []
for idx in range(num_modules):
module = self.sbtarget.GetModuleAtIndex(idx)
re_match = key.search(module.path.fullpath)
if re_match:
matching_modules.append(module)
return matching_modules
else:
print("error: unsupported item type: %s" % type(key))
return None
def get_modules_access_object(self):
'''An accessor function that returns a modules_access() object which allows lazy module access from a lldb.SBTarget object.'''
return self.modules_access(self)
def get_modules_array(self):
'''An accessor function that returns a list() that contains all modules in a lldb.SBTarget object.'''
modules = []
for idx in range(self.GetNumModules()):
modules.append(self.GetModuleAtIndex(idx))
return modules
def module_iter(self):
'''Returns an iterator over all modules in a lldb.SBTarget
object.'''
return lldb_iter(self, 'GetNumModules', 'GetModuleAtIndex')
def breakpoint_iter(self):
'''Returns an iterator over all breakpoints in a lldb.SBTarget
object.'''
return lldb_iter(self, 'GetNumBreakpoints', 'GetBreakpointAtIndex')
class bkpts_access(object):
'''A helper object that will lazily hand out bkpts for a target when supplied an index.'''
def __init__(self, sbtarget):
self.sbtarget = sbtarget
def __len__(self):
if self.sbtarget:
return int(self.sbtarget.GetNumBreakpoints())
return 0
def __getitem__(self, key):
if isinstance(key, int):
count = len(self)
if -count <= key < count:
key %= count
return self.sbtarget.GetBreakpointAtIndex(key)
return None
def get_bkpts_access_object(self):
'''An accessor function that returns a bkpts_access() object which allows lazy bkpt access from a lldb.SBtarget object.'''
return self.bkpts_access(self)
def get_target_bkpts(self):
'''An accessor function that returns a list() that contains all bkpts in a lldb.SBtarget object.'''
bkpts = []
for idx in range(self.GetNumBreakpoints()):
bkpts.append(self.GetBreakpointAtIndex(idx))
return bkpts
def watchpoint_iter(self):
'''Returns an iterator over all watchpoints in a lldb.SBTarget
object.'''
return lldb_iter(self, 'GetNumWatchpoints', 'GetWatchpointAtIndex')
class watchpoints_access(object):
'''A helper object that will lazily hand out watchpoints for a target when supplied an index.'''
def __init__(self, sbtarget):
self.sbtarget = sbtarget
def __len__(self):
if self.sbtarget:
return int(self.sbtarget.GetNumWatchpoints())
return 0
def __getitem__(self, key):
if isinstance(key, int):
count = len(self)
if -count <= key < count:
key %= count
return self.sbtarget.GetWatchpointAtIndex(key)
return None
def get_watchpoints_access_object(self):
'''An accessor function that returns a watchpoints_access() object which allows lazy watchpoint access from a lldb.SBtarget object.'''
return self.watchpoints_access(self)
def get_target_watchpoints(self):
'''An accessor function that returns a list() that contains all watchpoints in a lldb.SBtarget object.'''
watchpoints = []
for idx in range(self.GetNumWatchpoints()):
bkpts.append(self.GetWatchpointAtIndex(idx))
return watchpoints
modules = property(get_modules_array, None, doc='''A read only property that returns a list() of lldb.SBModule objects contained in this target. This list is a list all modules that the target currently is tracking (the main executable and all dependent shared libraries).''')
module = property(get_modules_access_object, None, doc=r'''A read only property that returns an object that implements python operator overloading with the square brackets().\n target.module[<int>] allows array access to any modules.\n target.module[<str>] allows access to modules by basename, full path, or uuid string value.\n target.module[uuid.UUID()] allows module access by UUID.\n target.module[re] allows module access using a regular expression that matches the module full path.''')
process = property(GetProcess, None, doc='''A read only property that returns an lldb object that represents the process (lldb.SBProcess) that this target owns.''')
executable = property(GetExecutable, None, doc='''A read only property that returns an lldb object that represents the main executable module (lldb.SBModule) for this target.''')
debugger = property(GetDebugger, None, doc='''A read only property that returns an lldb object that represents the debugger (lldb.SBDebugger) that owns this target.''')
num_breakpoints = property(GetNumBreakpoints, None, doc='''A read only property that returns the number of breakpoints that this target has as an integer.''')
breakpoints = property(get_target_bkpts, None, doc='''A read only property that returns a list() of lldb.SBBreakpoint objects for all breakpoints in this target.''')
breakpoint = property(get_bkpts_access_object, None, doc='''A read only property that returns an object that can be used to access breakpoints as an array ("bkpt_12 = lldb.target.bkpt[12]").''')
num_watchpoints = property(GetNumWatchpoints, None, doc='''A read only property that returns the number of watchpoints that this target has as an integer.''')
watchpoints = property(get_target_watchpoints, None, doc='''A read only property that returns a list() of lldb.SBwatchpoint objects for all watchpoints in this target.''')
watchpoint = property(get_watchpoints_access_object, None, doc='''A read only property that returns an object that can be used to access watchpoints as an array ("watchpoint_12 = lldb.target.watchpoint[12]").''')
broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this target.''')
byte_order = property(GetByteOrder, None, doc='''A read only property that returns an lldb enumeration value (lldb.eByteOrderLittle, lldb.eByteOrderBig, lldb.eByteOrderInvalid) that represents the byte order for this target.''')
addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this target.''')
triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this target as a string.''')
data_byte_size = property(GetDataByteSize, None, doc='''A read only property that returns the size in host bytes of a byte in the data address space for this target.''')
code_byte_size = property(GetCodeByteSize, None, doc='''A read only property that returns the size in host bytes of a byte in the code address space for this target.''')
platform = property(GetPlatform, None, doc='''A read only property that returns the platform associated with with this target.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBTarget in _lldb:
_lldb.SBTarget_swigregister(SBTarget)
class SBThread(object):
r"""
Represents a thread of execution. :py:class:`SBProcess` contains SBThread(s).
SBThreads can be referred to by their ID, which maps to the system specific thread
identifier, or by IndexID. The ID may or may not be unique depending on whether the
system reuses its thread identifiers. The IndexID is a monotonically increasing identifier
that will always uniquely reference a particular thread, and when that thread goes
away it will not be reused.
SBThread supports frame iteration. For example (from test/python_api/
lldbutil/iter/TestLLDBIterator.py), ::
from lldbutil import print_stacktrace
stopped_due_to_breakpoint = False
for thread in process:
if self.TraceOn():
print_stacktrace(thread)
ID = thread.GetThreadID()
if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
stopped_due_to_breakpoint = True
for frame in thread:
self.assertTrue(frame.GetThread().GetThreadID() == ID)
if self.TraceOn():
print frame
self.assertTrue(stopped_due_to_breakpoint)
See also :py:class:`SBFrame` .
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
eBroadcastBitStackChanged = _lldb.SBThread_eBroadcastBitStackChanged
eBroadcastBitThreadSuspended = _lldb.SBThread_eBroadcastBitThreadSuspended
eBroadcastBitThreadResumed = _lldb.SBThread_eBroadcastBitThreadResumed
eBroadcastBitSelectedFrameChanged = _lldb.SBThread_eBroadcastBitSelectedFrameChanged
eBroadcastBitThreadSelected = _lldb.SBThread_eBroadcastBitThreadSelected
@staticmethod
def GetBroadcasterClassName():
r"""GetBroadcasterClassName() -> char const *"""
return _lldb.SBThread_GetBroadcasterClassName()
def __init__(self, *args):
r"""
__init__(SBThread self) -> SBThread
__init__(SBThread self, SBThread thread) -> SBThread
"""
_lldb.SBThread_swiginit(self, _lldb.new_SBThread(*args))
__swig_destroy__ = _lldb.delete_SBThread
def GetQueue(self):
r"""
GetQueue(SBThread self) -> SBQueue
Return the SBQueue for this thread. If this thread is not currently associated
with a libdispatch queue, the SBQueue object's IsValid() method will return false.
If this SBThread is actually a HistoryThread, we may be able to provide QueueID
and QueueName, but not provide an SBQueue. Those individual attributes may have
been saved for the HistoryThread without enough information to reconstitute the
entire SBQueue at that time.
This method takes no arguments, returns an SBQueue.
"""
return _lldb.SBThread_GetQueue(self)
def __nonzero__(self):
return _lldb.SBThread___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBThread self) -> bool"""
return _lldb.SBThread_IsValid(self)
def Clear(self):
r"""Clear(SBThread self)"""
return _lldb.SBThread_Clear(self)
def GetStopReason(self):
r"""GetStopReason(SBThread self) -> lldb::StopReason"""
return _lldb.SBThread_GetStopReason(self)
def GetStopReasonDataCount(self):
r"""
GetStopReasonDataCount(SBThread self) -> size_t
Get the number of words associated with the stop reason.
See also GetStopReasonDataAtIndex().
"""
return _lldb.SBThread_GetStopReasonDataCount(self)
def GetStopReasonDataAtIndex(self, idx):
r"""
GetStopReasonDataAtIndex(SBThread self, uint32_t idx) -> uint64_t
Get information associated with a stop reason.
Breakpoint stop reasons will have data that consists of pairs of
breakpoint IDs followed by the breakpoint location IDs (they always come
in pairs).
Stop Reason Count Data Type
======================== ===== =========================================
eStopReasonNone 0
eStopReasonTrace 0
eStopReasonBreakpoint N duple: {breakpoint id, location id}
eStopReasonWatchpoint 1 watchpoint id
eStopReasonSignal 1 unix signal number
eStopReasonException N exception data
eStopReasonExec 0
eStopReasonFork 1 pid of the child process
eStopReasonVFork 1 pid of the child process
eStopReasonVForkDone 0
eStopReasonPlanComplete 0
"""
return _lldb.SBThread_GetStopReasonDataAtIndex(self, idx)
def GetStopReasonExtendedInfoAsJSON(self, stream):
r"""
GetStopReasonExtendedInfoAsJSON(SBThread self, SBStream stream) -> bool
Collects a thread's stop reason extended information dictionary and prints it
into the SBStream in a JSON format. The format of this JSON dictionary depends
on the stop reason and is currently used only for instrumentation plugins.
"""
return _lldb.SBThread_GetStopReasonExtendedInfoAsJSON(self, stream)
def GetStopReasonExtendedBacktraces(self, type):
r"""
GetStopReasonExtendedBacktraces(SBThread self, lldb::InstrumentationRuntimeType type) -> SBThreadCollection
Returns a collection of historical stack traces that are significant to the
current stop reason. Used by ThreadSanitizer, where we provide various stack
traces that were involved in a data race or other type of detected issue.
"""
return _lldb.SBThread_GetStopReasonExtendedBacktraces(self, type)
def GetStopDescription(self, dst_or_null):
r"""
GetStopDescription(SBThread self, char * dst_or_null) -> size_t
Pass only an (int)length and expect to get a Python string describing the
stop reason.
"""
return _lldb.SBThread_GetStopDescription(self, dst_or_null)
def GetStopReturnValue(self):
r"""GetStopReturnValue(SBThread self) -> SBValue"""
return _lldb.SBThread_GetStopReturnValue(self)
def GetStopErrorValue(self):
r"""GetStopErrorValue(SBThread self) -> SBValue"""
return _lldb.SBThread_GetStopErrorValue(self)
def GetStopReturnOrErrorValue(self, is_swift_error_value):
r"""GetStopReturnOrErrorValue(SBThread self, bool & is_swift_error_value) -> SBValue"""
return _lldb.SBThread_GetStopReturnOrErrorValue(self, is_swift_error_value)
def GetThreadID(self):
r"""
GetThreadID(SBThread self) -> lldb::tid_t
Returns a unique thread identifier (type lldb::tid_t, typically a 64-bit type)
for the current SBThread that will remain constant throughout the thread's
lifetime in this process and will not be reused by another thread during this
process lifetime. On Mac OS X systems, this is a system-wide unique thread
identifier; this identifier is also used by other tools like sample which helps
to associate data from those tools with lldb. See related GetIndexID.
"""
return _lldb.SBThread_GetThreadID(self)
def GetIndexID(self):
r"""
GetIndexID(SBThread self) -> uint32_t
Return the index number for this SBThread. The index number is the same thing
that a user gives as an argument to 'thread select' in the command line lldb.
These numbers start at 1 (for the first thread lldb sees in a debug session)
and increments up throughout the process lifetime. An index number will not be
reused for a different thread later in a process - thread 1 will always be
associated with the same thread. See related GetThreadID.
This method returns a uint32_t index number, takes no arguments.
"""
return _lldb.SBThread_GetIndexID(self)
def GetName(self):
r"""GetName(SBThread self) -> char const *"""
return _lldb.SBThread_GetName(self)
def GetQueueName(self):
r"""
GetQueueName(SBThread self) -> char const *
Return the queue name associated with this thread, if any, as a str.
For example, with a libdispatch (aka Grand Central Dispatch) queue.
"""
return _lldb.SBThread_GetQueueName(self)
def GetQueueID(self):
r"""
GetQueueID(SBThread self) -> lldb::queue_id_t
Return the dispatch_queue_id for this thread, if any, as a lldb::queue_id_t.
For example, with a libdispatch (aka Grand Central Dispatch) queue.
"""
return _lldb.SBThread_GetQueueID(self)
def GetInfoItemByPathAsString(self, path, strm):
r"""
GetInfoItemByPathAsString(SBThread self, char const * path, SBStream strm) -> bool
Takes a path string and a SBStream reference as parameters, returns a bool.
Collects the thread's 'info' dictionary from the remote system, uses the path
argument to descend into the dictionary to an item of interest, and prints
it into the SBStream in a natural format. Return bool is to indicate if
anything was printed into the stream (true) or not (false).
"""
return _lldb.SBThread_GetInfoItemByPathAsString(self, path, strm)
def StepOver(self, *args):
r"""
StepOver(SBThread self, lldb::RunMode stop_other_threads=eOnlyDuringStepping)
StepOver(SBThread self, lldb::RunMode stop_other_threads, SBError error)
Do a source level single step over in the currently selected thread.
"""
return _lldb.SBThread_StepOver(self, *args)
def StepInto(self, *args):
r"""
StepInto(SBThread self, lldb::RunMode stop_other_threads=eOnlyDuringStepping)
StepInto(SBThread self, char const * target_name, lldb::RunMode stop_other_threads=eOnlyDuringStepping)
StepInto(SBThread self, char const * target_name, uint32_t end_line, SBError error, lldb::RunMode stop_other_threads=eOnlyDuringStepping)
Step the current thread from the current source line to the line given by end_line, stopping if
the thread steps into the function given by target_name. If target_name is None, then stepping will stop
in any of the places we would normally stop.
"""
return _lldb.SBThread_StepInto(self, *args)
def StepOut(self, *args):
r"""
StepOut(SBThread self)
StepOut(SBThread self, SBError error)
Step out of the currently selected thread.
"""
return _lldb.SBThread_StepOut(self, *args)
def StepOutOfFrame(self, *args):
r"""
StepOutOfFrame(SBThread self, SBFrame frame)
StepOutOfFrame(SBThread self, SBFrame frame, SBError error)
Step out of the specified frame.
"""
return _lldb.SBThread_StepOutOfFrame(self, *args)
def StepInstruction(self, *args):
r"""
StepInstruction(SBThread self, bool step_over)
StepInstruction(SBThread self, bool step_over, SBError error)
Do an instruction level single step in the currently selected thread.
"""
return _lldb.SBThread_StepInstruction(self, *args)
def StepOverUntil(self, frame, file_spec, line):
r"""StepOverUntil(SBThread self, SBFrame frame, SBFileSpec file_spec, uint32_t line) -> SBError"""
return _lldb.SBThread_StepOverUntil(self, frame, file_spec, line)
def StepUsingScriptedThreadPlan(self, *args):
r"""
StepUsingScriptedThreadPlan(SBThread self, char const * script_class_name) -> SBError
StepUsingScriptedThreadPlan(SBThread self, char const * script_class_name, bool resume_immediately) -> SBError
StepUsingScriptedThreadPlan(SBThread self, char const * script_class_name, SBStructuredData args_data, bool resume_immediately) -> SBError
"""
return _lldb.SBThread_StepUsingScriptedThreadPlan(self, *args)
def JumpToLine(self, file_spec, line):
r"""JumpToLine(SBThread self, SBFileSpec file_spec, uint32_t line) -> SBError"""
return _lldb.SBThread_JumpToLine(self, file_spec, line)
def RunToAddress(self, *args):
r"""
RunToAddress(SBThread self, lldb::addr_t addr)
RunToAddress(SBThread self, lldb::addr_t addr, SBError error)
"""
return _lldb.SBThread_RunToAddress(self, *args)
def ReturnFromFrame(self, frame, return_value):
r"""
ReturnFromFrame(SBThread self, SBFrame frame, SBValue return_value) -> SBError
Force a return from the frame passed in (and any frames younger than it)
without executing any more code in those frames. If return_value contains
a valid SBValue, that will be set as the return value from frame. Note, at
present only scalar return values are supported.
"""
return _lldb.SBThread_ReturnFromFrame(self, frame, return_value)
def UnwindInnermostExpression(self):
r"""
UnwindInnermostExpression(SBThread self) -> SBError
Unwind the stack frames from the innermost expression evaluation.
This API is equivalent to 'thread return -x'.
"""
return _lldb.SBThread_UnwindInnermostExpression(self)
def Suspend(self, *args):
r"""
Suspend(SBThread self) -> bool
Suspend(SBThread self, SBError error) -> bool
LLDB currently supports process centric debugging which means when any
thread in a process stops, all other threads are stopped. The Suspend()
call here tells our process to suspend a thread and not let it run when
the other threads in a process are allowed to run. So when
SBProcess::Continue() is called, any threads that aren't suspended will
be allowed to run. If any of the SBThread functions for stepping are
called (StepOver, StepInto, StepOut, StepInstruction, RunToAddres), the
thread will now be allowed to run and these functions will simply return.
Eventually we plan to add support for thread centric debugging where
each thread is controlled individually and each thread would broadcast
its state, but we haven't implemented this yet.
Likewise the SBThread::Resume() call will again allow the thread to run
when the process is continued.
Suspend() and Resume() functions are not currently reference counted, if
anyone has the need for them to be reference counted, please let us
know.
"""
return _lldb.SBThread_Suspend(self, *args)
def Resume(self, *args):
r"""
Resume(SBThread self) -> bool
Resume(SBThread self, SBError error) -> bool
"""
return _lldb.SBThread_Resume(self, *args)
def IsSuspended(self):
r"""IsSuspended(SBThread self) -> bool"""
return _lldb.SBThread_IsSuspended(self)
def IsStopped(self):
r"""IsStopped(SBThread self) -> bool"""
return _lldb.SBThread_IsStopped(self)
def GetNumFrames(self):
r"""GetNumFrames(SBThread self) -> uint32_t"""
return _lldb.SBThread_GetNumFrames(self)
def GetFrameAtIndex(self, idx):
r"""GetFrameAtIndex(SBThread self, uint32_t idx) -> SBFrame"""
return _lldb.SBThread_GetFrameAtIndex(self, idx)
def GetSelectedFrame(self):
r"""GetSelectedFrame(SBThread self) -> SBFrame"""
return _lldb.SBThread_GetSelectedFrame(self)
def SetSelectedFrame(self, frame_idx):
r"""SetSelectedFrame(SBThread self, uint32_t frame_idx) -> SBFrame"""
return _lldb.SBThread_SetSelectedFrame(self, frame_idx)
@staticmethod
def EventIsThreadEvent(event):
r"""EventIsThreadEvent(SBEvent event) -> bool"""
return _lldb.SBThread_EventIsThreadEvent(event)
@staticmethod
def GetStackFrameFromEvent(event):
r"""GetStackFrameFromEvent(SBEvent event) -> SBFrame"""
return _lldb.SBThread_GetStackFrameFromEvent(event)
@staticmethod
def GetThreadFromEvent(event):
r"""GetThreadFromEvent(SBEvent event) -> SBThread"""
return _lldb.SBThread_GetThreadFromEvent(event)
def GetProcess(self):
r"""GetProcess(SBThread self) -> SBProcess"""
return _lldb.SBThread_GetProcess(self)
def __eq__(self, rhs):
r"""__eq__(SBThread self, SBThread rhs) -> bool"""
return _lldb.SBThread___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBThread self, SBThread rhs) -> bool"""
return _lldb.SBThread___ne__(self, rhs)
def GetDescription(self, *args):
r"""
GetDescription(SBThread self, SBStream description) -> bool
GetDescription(SBThread self, SBStream description, bool stop_format) -> bool
Get the description strings for this thread that match what the
lldb driver will present, using the thread-format (stop_format==false)
or thread-stop-format (stop_format = true).
"""
return _lldb.SBThread_GetDescription(self, *args)
def GetDescriptionWithFormat(self, format, output):
r"""GetDescriptionWithFormat(SBThread self, SBFormat format, SBStream output) -> SBError"""
return _lldb.SBThread_GetDescriptionWithFormat(self, format, output)
def GetStatus(self, status):
r"""GetStatus(SBThread self, SBStream status) -> bool"""
return _lldb.SBThread_GetStatus(self, status)
def GetExtendedBacktraceThread(self, type):
r"""
GetExtendedBacktraceThread(SBThread self, char const * type) -> SBThread
Given an argument of str to specify the type of thread-origin extended
backtrace to retrieve, query whether the origin of this thread is
available. An SBThread is retured; SBThread.IsValid will return true
if an extended backtrace was available. The returned SBThread is not
a part of the SBProcess' thread list and it cannot be manipulated like
normal threads -- you cannot step or resume it, for instance -- it is
intended to used primarily for generating a backtrace. You may request
the returned thread's own thread origin in turn.
"""
return _lldb.SBThread_GetExtendedBacktraceThread(self, type)
def GetExtendedBacktraceOriginatingIndexID(self):
r"""
GetExtendedBacktraceOriginatingIndexID(SBThread self) -> uint32_t
If this SBThread is an ExtendedBacktrace thread, get the IndexID of the
original thread that this ExtendedBacktrace thread represents, if
available. The thread that was running this backtrace in the past may
not have been registered with lldb's thread index (if it was created,
did its work, and was destroyed without lldb ever stopping execution).
In that case, this ExtendedBacktrace thread's IndexID will be returned.
"""
return _lldb.SBThread_GetExtendedBacktraceOriginatingIndexID(self)
def GetCurrentException(self):
r"""
GetCurrentException(SBThread self) -> SBValue
Returns an SBValue object represeting the current exception for the thread,
if there is any. Currently, this works for Obj-C code and returns an SBValue
representing the NSException object at the throw site or that's currently
being processes.
"""
return _lldb.SBThread_GetCurrentException(self)
def GetCurrentExceptionBacktrace(self):
r"""
GetCurrentExceptionBacktrace(SBThread self) -> SBThread
Returns a historical (fake) SBThread representing the stack trace of an
exception, if there is one for the thread. Currently, this works for Obj-C
code, and can retrieve the throw-site backtrace of an NSException object
even when the program is no longer at the throw site.
"""
return _lldb.SBThread_GetCurrentExceptionBacktrace(self)
def SafeToCallFunctions(self):
r"""
SafeToCallFunctions(SBThread self) -> bool
lldb may be able to detect that function calls should not be executed
on a given thread at a particular point in time. It is recommended that
this is checked before performing an inferior function call on a given
thread.
"""
return _lldb.SBThread_SafeToCallFunctions(self)
def GetSiginfo(self):
r"""
GetSiginfo(SBThread self) -> SBValue
Returns a SBValue object representing the siginfo for the current signal.
"""
return _lldb.SBThread_GetSiginfo(self)
def __repr__(self):
r"""__repr__(SBThread self) -> std::string"""
return _lldb.SBThread___repr__(self)
def __iter__(self):
'''Iterate over all frames in a lldb.SBThread object.'''
return lldb_iter(self, 'GetNumFrames', 'GetFrameAtIndex')
def __len__(self):
'''Return the number of frames in a lldb.SBThread object.'''
return self.GetNumFrames()
class frames_access(object):
'''A helper object that will lazily hand out frames for a thread when supplied an index.'''
def __init__(self, sbthread):
self.sbthread = sbthread
def __len__(self):
if self.sbthread:
return int(self.sbthread.GetNumFrames())
return 0
def __getitem__(self, key):
if isinstance(key, int):
count = len(self)
if -count <= key < count:
key %= count
return self.sbthread.GetFrameAtIndex(key)
return None
def get_frames_access_object(self):
'''An accessor function that returns a frames_access() object which allows lazy frame access from a lldb.SBThread object.'''
return self.frames_access (self)
def get_thread_frames(self):
'''An accessor function that returns a list() that contains all frames in a lldb.SBThread object.'''
frames = []
for frame in self:
frames.append(frame)
return frames
id = property(GetThreadID, None, doc='''A read only property that returns the thread ID as an integer.''')
idx = property(GetIndexID, None, doc='''A read only property that returns the thread index ID as an integer. Thread index ID values start at 1 and increment as threads come and go and can be used to uniquely identify threads.''')
return_value = property(GetStopReturnValue, None, doc='''A read only property that returns an lldb object that represents the return value from the last stop (lldb.SBValue) if we just stopped due to stepping out of a function.''')
process = property(GetProcess, None, doc='''A read only property that returns an lldb object that represents the process (lldb.SBProcess) that owns this thread.''')
num_frames = property(GetNumFrames, None, doc='''A read only property that returns the number of stack frames in this thread as an integer.''')
frames = property(get_thread_frames, None, doc='''A read only property that returns a list() of lldb.SBFrame objects for all frames in this thread.''')
frame = property(get_frames_access_object, None, doc='''A read only property that returns an object that can be used to access frames as an array ("frame_12 = lldb.thread.frame[12]").''')
name = property(GetName, None, doc='''A read only property that returns the name of this thread as a string.''')
queue = property(GetQueueName, None, doc='''A read only property that returns the dispatch queue name of this thread as a string.''')
queue_id = property(GetQueueID, None, doc='''A read only property that returns the dispatch queue id of this thread as an integer.''')
stop_reason = property(GetStopReason, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eStopReason") that represents the reason this thread stopped.''')
is_suspended = property(IsSuspended, None, doc='''A read only property that returns a boolean value that indicates if this thread is suspended.''')
is_stopped = property(IsStopped, None, doc='''A read only property that returns a boolean value that indicates if this thread is stopped but not exited.''')
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBThread in _lldb:
_lldb.SBThread_swigregister(SBThread)
class SBThreadCollection(object):
r"""Represents a collection of SBThread objects."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBThreadCollection self) -> SBThreadCollection
__init__(SBThreadCollection self, SBThreadCollection rhs) -> SBThreadCollection
"""
_lldb.SBThreadCollection_swiginit(self, _lldb.new_SBThreadCollection(*args))
__swig_destroy__ = _lldb.delete_SBThreadCollection
def __nonzero__(self):
return _lldb.SBThreadCollection___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBThreadCollection self) -> bool"""
return _lldb.SBThreadCollection_IsValid(self)
def GetSize(self):
r"""GetSize(SBThreadCollection self) -> size_t"""
return _lldb.SBThreadCollection_GetSize(self)
def GetThreadAtIndex(self, idx):
r"""GetThreadAtIndex(SBThreadCollection self, size_t idx) -> SBThread"""
return _lldb.SBThreadCollection_GetThreadAtIndex(self, idx)
# Register SBThreadCollection in _lldb:
_lldb.SBThreadCollection_swigregister(SBThreadCollection)
class SBThreadPlan(object):
r"""
Represents a plan for the execution control of a given thread.
See also :py:class:`SBThread` and :py:class:`SBFrame`.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBThreadPlan self) -> SBThreadPlan
__init__(SBThreadPlan self, SBThreadPlan threadPlan) -> SBThreadPlan
__init__(SBThreadPlan self, SBThread thread, char const * class_name) -> SBThreadPlan
__init__(SBThreadPlan self, SBThread thread, char const * class_name, SBStructuredData args_data) -> SBThreadPlan
"""
_lldb.SBThreadPlan_swiginit(self, _lldb.new_SBThreadPlan(*args))
__swig_destroy__ = _lldb.delete_SBThreadPlan
def __nonzero__(self):
return _lldb.SBThreadPlan___nonzero__(self)
__bool__ = __nonzero__
def Clear(self):
r"""Clear(SBThreadPlan self)"""
return _lldb.SBThreadPlan_Clear(self)
def GetStopReason(self):
r"""GetStopReason(SBThreadPlan self) -> lldb::StopReason"""
return _lldb.SBThreadPlan_GetStopReason(self)
def GetStopReasonDataCount(self):
r"""
GetStopReasonDataCount(SBThreadPlan self) -> size_t
Get the number of words associated with the stop reason.
See also GetStopReasonDataAtIndex().
"""
return _lldb.SBThreadPlan_GetStopReasonDataCount(self)
def GetStopReasonDataAtIndex(self, idx):
r"""
GetStopReasonDataAtIndex(SBThreadPlan self, uint32_t idx) -> uint64_t
Get information associated with a stop reason.
Breakpoint stop reasons will have data that consists of pairs of
breakpoint IDs followed by the breakpoint location IDs (they always come
in pairs).
Stop Reason Count Data Type
======================== ===== =========================================
eStopReasonNone 0
eStopReasonTrace 0
eStopReasonBreakpoint N duple: {breakpoint id, location id}
eStopReasonWatchpoint 1 watchpoint id
eStopReasonSignal 1 unix signal number
eStopReasonException N exception data
eStopReasonExec 0
eStopReasonFork 1 pid of the child process
eStopReasonVFork 1 pid of the child process
eStopReasonVForkDone 0
eStopReasonPlanComplete 0
"""
return _lldb.SBThreadPlan_GetStopReasonDataAtIndex(self, idx)
def GetThread(self):
r"""GetThread(SBThreadPlan self) -> SBThread"""
return _lldb.SBThreadPlan_GetThread(self)
def GetDescription(self, description):
r"""GetDescription(SBThreadPlan self, SBStream description) -> bool"""
return _lldb.SBThreadPlan_GetDescription(self, description)
def SetPlanComplete(self, success):
r"""SetPlanComplete(SBThreadPlan self, bool success)"""
return _lldb.SBThreadPlan_SetPlanComplete(self, success)
def IsPlanComplete(self):
r"""IsPlanComplete(SBThreadPlan self) -> bool"""
return _lldb.SBThreadPlan_IsPlanComplete(self)
def IsPlanStale(self):
r"""IsPlanStale(SBThreadPlan self) -> bool"""
return _lldb.SBThreadPlan_IsPlanStale(self)
def IsValid(self, *args):
r"""
IsValid(SBThreadPlan self) -> bool
IsValid(SBThreadPlan self) -> bool
"""
return _lldb.SBThreadPlan_IsValid(self, *args)
def GetStopOthers(self):
r"""
GetStopOthers(SBThreadPlan self) -> bool
Return whether this plan will ask to stop other threads when it runs.
"""
return _lldb.SBThreadPlan_GetStopOthers(self)
def SetStopOthers(self, stop_others):
r"""
SetStopOthers(SBThreadPlan self, bool stop_others)
Set whether this plan will ask to stop other threads when it runs.
"""
return _lldb.SBThreadPlan_SetStopOthers(self, stop_others)
def QueueThreadPlanForStepOverRange(self, *args):
r"""
QueueThreadPlanForStepOverRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size) -> SBThreadPlan
QueueThreadPlanForStepOverRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size, SBError error) -> SBThreadPlan
"""
return _lldb.SBThreadPlan_QueueThreadPlanForStepOverRange(self, *args)
def QueueThreadPlanForStepInRange(self, *args):
r"""
QueueThreadPlanForStepInRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size) -> SBThreadPlan
QueueThreadPlanForStepInRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size, SBError error) -> SBThreadPlan
"""
return _lldb.SBThreadPlan_QueueThreadPlanForStepInRange(self, *args)
def QueueThreadPlanForStepOut(self, *args):
r"""
QueueThreadPlanForStepOut(SBThreadPlan self, uint32_t frame_idx_to_step_to, bool first_insn=False) -> SBThreadPlan
QueueThreadPlanForStepOut(SBThreadPlan self, uint32_t frame_idx_to_step_to, bool first_insn, SBError error) -> SBThreadPlan
"""
return _lldb.SBThreadPlan_QueueThreadPlanForStepOut(self, *args)
def QueueThreadPlanForRunToAddress(self, *args):
r"""
QueueThreadPlanForRunToAddress(SBThreadPlan self, SBAddress address) -> SBThreadPlan
QueueThreadPlanForRunToAddress(SBThreadPlan self, SBAddress address, SBError error) -> SBThreadPlan
"""
return _lldb.SBThreadPlan_QueueThreadPlanForRunToAddress(self, *args)
def QueueThreadPlanForStepScripted(self, *args):
r"""
QueueThreadPlanForStepScripted(SBThreadPlan self, char const * script_class_name) -> SBThreadPlan
QueueThreadPlanForStepScripted(SBThreadPlan self, char const * script_class_name, SBError error) -> SBThreadPlan
QueueThreadPlanForStepScripted(SBThreadPlan self, char const * script_class_name, SBStructuredData args_data, SBError error) -> SBThreadPlan
"""
return _lldb.SBThreadPlan_QueueThreadPlanForStepScripted(self, *args)
# Register SBThreadPlan in _lldb:
_lldb.SBThreadPlan_swigregister(SBThreadPlan)
class SBTrace(object):
r"""Represents a processor trace."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
r"""__init__(SBTrace self) -> SBTrace"""
_lldb.SBTrace_swiginit(self, _lldb.new_SBTrace())
@staticmethod
def LoadTraceFromFile(error, debugger, trace_description_file):
r"""LoadTraceFromFile(SBError error, SBDebugger debugger, SBFileSpec trace_description_file) -> SBTrace"""
return _lldb.SBTrace_LoadTraceFromFile(error, debugger, trace_description_file)
def CreateNewCursor(self, error, thread):
r"""CreateNewCursor(SBTrace self, SBError error, SBThread thread) -> SBTraceCursor"""
return _lldb.SBTrace_CreateNewCursor(self, error, thread)
def SaveToDisk(self, error, bundle_dir, compact=False):
r"""SaveToDisk(SBTrace self, SBError error, SBFileSpec bundle_dir, bool compact=False) -> SBFileSpec"""
return _lldb.SBTrace_SaveToDisk(self, error, bundle_dir, compact)
def GetStartConfigurationHelp(self):
r"""GetStartConfigurationHelp(SBTrace self) -> char const *"""
return _lldb.SBTrace_GetStartConfigurationHelp(self)
def Start(self, *args):
r"""
Start(SBTrace self, SBStructuredData configuration) -> SBError
Start(SBTrace self, SBThread thread, SBStructuredData configuration) -> SBError
"""
return _lldb.SBTrace_Start(self, *args)
def Stop(self, *args):
r"""
Stop(SBTrace self) -> SBError
Stop(SBTrace self, SBThread thread) -> SBError
"""
return _lldb.SBTrace_Stop(self, *args)
def __nonzero__(self):
return _lldb.SBTrace___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTrace self) -> bool"""
return _lldb.SBTrace_IsValid(self)
__swig_destroy__ = _lldb.delete_SBTrace
# Register SBTrace in _lldb:
_lldb.SBTrace_swigregister(SBTrace)
class SBTraceCursor(object):
r"""Represents a trace cursor."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
r"""__init__(SBTraceCursor self) -> SBTraceCursor"""
_lldb.SBTraceCursor_swiginit(self, _lldb.new_SBTraceCursor())
def SetForwards(self, forwards):
r"""SetForwards(SBTraceCursor self, bool forwards)"""
return _lldb.SBTraceCursor_SetForwards(self, forwards)
def IsForwards(self):
r"""IsForwards(SBTraceCursor self) -> bool"""
return _lldb.SBTraceCursor_IsForwards(self)
def Next(self):
r"""Next(SBTraceCursor self)"""
return _lldb.SBTraceCursor_Next(self)
def HasValue(self):
r"""HasValue(SBTraceCursor self) -> bool"""
return _lldb.SBTraceCursor_HasValue(self)
def GoToId(self, id):
r"""GoToId(SBTraceCursor self, lldb::user_id_t id) -> bool"""
return _lldb.SBTraceCursor_GoToId(self, id)
def HasId(self, id):
r"""HasId(SBTraceCursor self, lldb::user_id_t id) -> bool"""
return _lldb.SBTraceCursor_HasId(self, id)
def GetId(self):
r"""GetId(SBTraceCursor self) -> lldb::user_id_t"""
return _lldb.SBTraceCursor_GetId(self)
def Seek(self, offset, origin):
r"""Seek(SBTraceCursor self, int64_t offset, lldb::TraceCursorSeekType origin) -> bool"""
return _lldb.SBTraceCursor_Seek(self, offset, origin)
def GetItemKind(self):
r"""GetItemKind(SBTraceCursor self) -> lldb::TraceItemKind"""
return _lldb.SBTraceCursor_GetItemKind(self)
def IsError(self):
r"""IsError(SBTraceCursor self) -> bool"""
return _lldb.SBTraceCursor_IsError(self)
def GetError(self):
r"""GetError(SBTraceCursor self) -> char const *"""
return _lldb.SBTraceCursor_GetError(self)
def IsEvent(self):
r"""IsEvent(SBTraceCursor self) -> bool"""
return _lldb.SBTraceCursor_IsEvent(self)
def GetEventType(self):
r"""GetEventType(SBTraceCursor self) -> lldb::TraceEvent"""
return _lldb.SBTraceCursor_GetEventType(self)
def GetEventTypeAsString(self):
r"""GetEventTypeAsString(SBTraceCursor self) -> char const *"""
return _lldb.SBTraceCursor_GetEventTypeAsString(self)
def IsInstruction(self):
r"""IsInstruction(SBTraceCursor self) -> bool"""
return _lldb.SBTraceCursor_IsInstruction(self)
def GetLoadAddress(self):
r"""GetLoadAddress(SBTraceCursor self) -> lldb::addr_t"""
return _lldb.SBTraceCursor_GetLoadAddress(self)
def GetCPU(self):
r"""GetCPU(SBTraceCursor self) -> lldb::cpu_id_t"""
return _lldb.SBTraceCursor_GetCPU(self)
def IsValid(self):
r"""IsValid(SBTraceCursor self) -> bool"""
return _lldb.SBTraceCursor_IsValid(self)
def __nonzero__(self):
return _lldb.SBTraceCursor___nonzero__(self)
__bool__ = __nonzero__
__swig_destroy__ = _lldb.delete_SBTraceCursor
# Register SBTraceCursor in _lldb:
_lldb.SBTraceCursor_swigregister(SBTraceCursor)
class SBTypeMember(object):
r"""Represents a member of a type."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeMember self) -> SBTypeMember
__init__(SBTypeMember self, SBTypeMember rhs) -> SBTypeMember
"""
_lldb.SBTypeMember_swiginit(self, _lldb.new_SBTypeMember(*args))
__swig_destroy__ = _lldb.delete_SBTypeMember
def __nonzero__(self):
return _lldb.SBTypeMember___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeMember self) -> bool"""
return _lldb.SBTypeMember_IsValid(self)
def GetName(self):
r"""GetName(SBTypeMember self) -> char const *"""
return _lldb.SBTypeMember_GetName(self)
def GetType(self):
r"""GetType(SBTypeMember self) -> SBType"""
return _lldb.SBTypeMember_GetType(self)
def GetOffsetInBytes(self):
r"""GetOffsetInBytes(SBTypeMember self) -> uint64_t"""
return _lldb.SBTypeMember_GetOffsetInBytes(self)
def GetOffsetInBits(self):
r"""GetOffsetInBits(SBTypeMember self) -> uint64_t"""
return _lldb.SBTypeMember_GetOffsetInBits(self)
def IsBitfield(self):
r"""IsBitfield(SBTypeMember self) -> bool"""
return _lldb.SBTypeMember_IsBitfield(self)
def GetBitfieldSizeInBits(self):
r"""GetBitfieldSizeInBits(SBTypeMember self) -> uint32_t"""
return _lldb.SBTypeMember_GetBitfieldSizeInBits(self)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeMember self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeMember_GetDescription(self, description, description_level)
def __repr__(self):
r"""__repr__(SBTypeMember self) -> std::string"""
return _lldb.SBTypeMember___repr__(self)
name = property(GetName, None, doc='''A read only property that returns the name for this member as a string.''')
type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this member.''')
byte_offset = property(GetOffsetInBytes, None, doc='''A read only property that returns offset in bytes for this member as an integer.''')
bit_offset = property(GetOffsetInBits, None, doc='''A read only property that returns offset in bits for this member as an integer.''')
is_bitfield = property(IsBitfield, None, doc='''A read only property that returns true if this member is a bitfield.''')
bitfield_bit_size = property(GetBitfieldSizeInBits, None, doc='''A read only property that returns the bitfield size in bits for this member as an integer, or zero if this member is not a bitfield.''')
# Register SBTypeMember in _lldb:
_lldb.SBTypeMember_swigregister(SBTypeMember)
class SBTypeMemberFunction(object):
r"""Represents a member function of a type."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeMemberFunction self) -> SBTypeMemberFunction
__init__(SBTypeMemberFunction self, SBTypeMemberFunction rhs) -> SBTypeMemberFunction
"""
_lldb.SBTypeMemberFunction_swiginit(self, _lldb.new_SBTypeMemberFunction(*args))
__swig_destroy__ = _lldb.delete_SBTypeMemberFunction
def __nonzero__(self):
return _lldb.SBTypeMemberFunction___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeMemberFunction self) -> bool"""
return _lldb.SBTypeMemberFunction_IsValid(self)
def GetName(self):
r"""GetName(SBTypeMemberFunction self) -> char const *"""
return _lldb.SBTypeMemberFunction_GetName(self)
def GetDemangledName(self):
r"""GetDemangledName(SBTypeMemberFunction self) -> char const *"""
return _lldb.SBTypeMemberFunction_GetDemangledName(self)
def GetMangledName(self):
r"""GetMangledName(SBTypeMemberFunction self) -> char const *"""
return _lldb.SBTypeMemberFunction_GetMangledName(self)
def GetType(self):
r"""GetType(SBTypeMemberFunction self) -> SBType"""
return _lldb.SBTypeMemberFunction_GetType(self)
def GetReturnType(self):
r"""GetReturnType(SBTypeMemberFunction self) -> SBType"""
return _lldb.SBTypeMemberFunction_GetReturnType(self)
def GetNumberOfArguments(self):
r"""GetNumberOfArguments(SBTypeMemberFunction self) -> uint32_t"""
return _lldb.SBTypeMemberFunction_GetNumberOfArguments(self)
def GetArgumentTypeAtIndex(self, arg2):
r"""GetArgumentTypeAtIndex(SBTypeMemberFunction self, uint32_t arg2) -> SBType"""
return _lldb.SBTypeMemberFunction_GetArgumentTypeAtIndex(self, arg2)
def GetKind(self):
r"""GetKind(SBTypeMemberFunction self) -> lldb::MemberFunctionKind"""
return _lldb.SBTypeMemberFunction_GetKind(self)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeMemberFunction self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeMemberFunction_GetDescription(self, description, description_level)
def __repr__(self):
r"""__repr__(SBTypeMemberFunction self) -> std::string"""
return _lldb.SBTypeMemberFunction___repr__(self)
# Register SBTypeMemberFunction in _lldb:
_lldb.SBTypeMemberFunction_swigregister(SBTypeMemberFunction)
class SBType(object):
r"""
Represents a data type in lldb.
The actual characteristics of each type are defined by the semantics of the
programming language and the specific language implementation that was used
to compile the target program. See the language-specific notes in the
documentation of each method.
SBType instances can be obtained by a variety of methods.
`SBTarget.FindFirstType` and `SBModule.FindFirstType` can be used to create
`SBType` representations of types in executables/libraries with debug
information. For some languages such as C, C++ and Objective-C it is possible
to create new types by evaluating expressions that define a new type.
Note that most `SBType` properties are computed independently of any runtime
information so for dynamic languages the functionality can be very limited.
`SBValue` can be used to represent runtime values which then can be more
accurately queried for certain information such as byte size.
SBType supports the eq/ne operator. For example,::
//main.cpp:
class Task {
public:
int id;
Task *next;
Task(int i, Task *n):
id(i),
next(n)
{}
};
int main (int argc, char const *argv[])
{
Task *task_head = new Task(-1, NULL);
Task *task1 = new Task(1, NULL);
Task *task2 = new Task(2, NULL);
Task *task3 = new Task(3, NULL); // Orphaned.
Task *task4 = new Task(4, NULL);
Task *task5 = new Task(5, NULL);
task_head->next = task1;
task1->next = task2;
task2->next = task4;
task4->next = task5;
int total = 0;
Task *t = task_head;
while (t != NULL) {
if (t->id >= 0)
++total;
t = t->next;
}
printf('We have a total number of %d tasks\n', total);
// This corresponds to an empty task list.
Task *empty_task_head = new Task(-1, NULL);
return 0; // Break at this line
}
# find_type.py:
# Get the type 'Task'.
task_type = target.FindFirstType('Task')
self.assertTrue(task_type)
# Get the variable 'task_head'.
frame0.FindVariable('task_head')
task_head_type = task_head.GetType()
self.assertTrue(task_head_type.IsPointerType())
# task_head_type is 'Task *'.
task_pointer_type = task_type.GetPointerType()
self.assertTrue(task_head_type == task_pointer_type)
# Get the child mmember 'id' from 'task_head'.
id = task_head.GetChildMemberWithName('id')
id_type = id.GetType()
# SBType.GetBasicType() takes an enum 'BasicType' (lldb-enumerations.h).
int_type = id_type.GetBasicType(lldb.eBasicTypeInt)
# id_type and int_type should be the same type!
self.assertTrue(id_type == int_type)
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBType self) -> SBType
__init__(SBType self, SBType rhs) -> SBType
"""
_lldb.SBType_swiginit(self, _lldb.new_SBType(*args))
__swig_destroy__ = _lldb.delete_SBType
def __nonzero__(self):
return _lldb.SBType___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBType self) -> bool"""
return _lldb.SBType_IsValid(self)
def GetByteSize(self):
r"""
GetByteSize(SBType self) -> uint64_t
Returns the number of bytes a variable with the given types occupies in memory.
Returns ``0`` if the size can't be determined.
If a type occupies ``N`` bytes + ``M`` bits in memory, this function returns
the rounded up amount of bytes (i.e., if ``M`` is ``0``,
this function returns ``N`` and otherwise ``N + 1``).
Language-specific behaviour:
* C: The output is expected to match the value of ``sizeof(Type)``. If
``sizeof(Type)`` is not a valid expression for the given type, the
function returns ``0``.
* C++: Same as in C.
* Objective-C: Same as in C. For Objective-C classes this always returns
``0`` as the actual size depends on runtime information.
"""
return _lldb.SBType_GetByteSize(self)
def IsPointerType(self):
r"""
IsPointerType(SBType self) -> bool
Returns true if this type is a pointer type.
Language-specific behaviour:
* C: Returns true for C pointer types (or typedefs of these types).
* C++: Pointer types include the C pointer types as well as pointers to data
mebers or member functions.
* Objective-C: Pointer types include the C pointer types. ``id``, ``Class``
and pointers to blocks are also considered pointer types.
"""
return _lldb.SBType_IsPointerType(self)
def IsReferenceType(self):
r"""
IsReferenceType(SBType self) -> bool
Returns true if this type is a reference type.
Language-specific behaviour:
* C: Returns false for all types.
* C++: Both l-value and r-value references are considered reference types.
* Objective-C: Returns false for all types.
"""
return _lldb.SBType_IsReferenceType(self)
def IsFunctionType(self):
r"""IsFunctionType(SBType self) -> bool"""
return _lldb.SBType_IsFunctionType(self)
def IsPolymorphicClass(self):
r"""
IsPolymorphicClass(SBType self) -> bool
Returns true if this type is a polymorphic type.
Language-specific behaviour:
* C: Returns false for all types.
* C++: Returns true if the type is a class type that contains at least one
virtual member function or if at least one of its base classes is
considered a polymorphic type.
* Objective-C: Returns false for all types.
"""
return _lldb.SBType_IsPolymorphicClass(self)
def IsArrayType(self):
r"""
IsArrayType(SBType self) -> bool
Returns true if this type is an array type.
Language-specific behaviour:
* C: Returns true if the types is an array type. This includes incomplete
array types ``T[]`` and array types with integer (``T[1]``) or variable
length (``T[some_variable]``). Pointer types are not considered arrays.
* C++: Includes C's array types and dependent array types (i.e., array types
in templates which size depends on template arguments).
* Objective-C: Same as in C.
"""
return _lldb.SBType_IsArrayType(self)
def IsVectorType(self):
r"""
IsVectorType(SBType self) -> bool
Returns true if this type is a vector type.
Language-specific behaviour:
* C: Returns true if the types is a vector type created with
GCC's ``vector_size`` or Clang's ``ext_vector_type`` feature.
* C++: Same as in C.
* Objective-C: Same as in C.
"""
return _lldb.SBType_IsVectorType(self)
def IsTypedefType(self):
r"""
IsTypedefType(SBType self) -> bool
Returns true if this type is a typedef.
Language-specific behaviour:
* C: Returns true if the type is a C typedef.
* C++: Same as in C. Also treats type aliases as typedefs.
* Objective-C: Same as in C.
"""
return _lldb.SBType_IsTypedefType(self)
def IsAnonymousType(self):
r"""
IsAnonymousType(SBType self) -> bool
Returns true if this type is an anonymous type.
Language-specific behaviour:
* C: Returns true for anonymous unions. Also returns true for
anonymous structs (which are a GNU language extension).
* C++: Same as in C.
* Objective-C: Same as in C.
"""
return _lldb.SBType_IsAnonymousType(self)
def IsScopedEnumerationType(self):
r"""
IsScopedEnumerationType(SBType self) -> bool
Returns true if this type is a scoped enum.
Language-specific behaviour:
* C: Returns false for all types.
* C++: Return true only for C++11 scoped enums.
* Objective-C: Returns false for all types.
"""
return _lldb.SBType_IsScopedEnumerationType(self)
def IsAggregateType(self):
r"""
IsAggregateType(SBType self) -> bool
Returns true if this type is an aggregate type.
Language-specific behaviour:
* C: Returns true for struct values, arrays, and vectors.
* C++: Same a C. Also includes class instances.
* Objective-C: Same as C. Also includes class instances.
"""
return _lldb.SBType_IsAggregateType(self)
def GetPointerType(self):
r"""
GetPointerType(SBType self) -> SBType
Returns a type that represents a pointer to this type.
If the type system of the current language can't represent a pointer to this
type or this type is invalid, an invalid `SBType` is returned.
Language-specific behaviour:
* C: Returns the pointer type of this type.
* C++: Same as in C.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetPointerType(self)
def GetPointeeType(self):
r"""
GetPointeeType(SBType self) -> SBType
Returns the underlying pointee type.
If this type is a pointer type as specified by `IsPointerType` then this
returns the underlying type. If this is not a pointer type or an invalid
`SBType` then this returns an invalid `SBType`.
Language-specific behaviour:
* C: Returns the underlying type for for C pointer types or typedefs of
these types). For example, ``int *`` will return ``int``.
* C++: Same as in C. Returns an `SBType` representation for data members/
member functions in case the `SBType` is a pointer to data member or
pointer to member function.
* Objective-C: Same as in C. The pointee type of ``id`` and ``Class`` is
an invalid `SBType`. The pointee type of pointers Objective-C types is an
`SBType` for the non-pointer type of the respective type. For example,
``NSString *`` will return ``NSString`` as a pointee type.
"""
return _lldb.SBType_GetPointeeType(self)
def GetReferenceType(self):
r"""
GetReferenceType(SBType self) -> SBType
Returns a type that represents a reference to this type.
If the type system of the current language can't represent a reference to
this type, an invalid `SBType` is returned.
Language-specific behaviour:
* C: Currently assumes the type system is C++ and returns an l-value
reference type. For example, ``int`` will return ``int&``. This behavior
is likely to change in the future and shouldn't be relied on.
* C++: Same as in C.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetReferenceType(self)
def GetTypedefedType(self):
r"""
GetTypedefedType(SBType self) -> SBType
Returns the underlying type of a typedef.
If this type is a typedef as designated by `IsTypedefType`, then the
underlying type is being returned. Otherwise an invalid `SBType` is
returned.
Language-specific behaviour:
* C: Returns the underlying type of a typedef type.
* C++: Same as in C. For type aliases, the underlying type is returned.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetTypedefedType(self)
def GetDereferencedType(self):
r"""
GetDereferencedType(SBType self) -> SBType
Returns the underlying type of a reference type.
If this type is a reference as designated by `IsReferenceType`, then the
underlying type is being returned. Otherwise an invalid `SBType` is
returned.
Language-specific behaviour:
* C: Always returns an invalid type.
* C++: For l-value and r-value references the underlying type is returned.
For example, ``int &`` will return ``int``.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetDereferencedType(self)
def GetUnqualifiedType(self):
r"""
GetUnqualifiedType(SBType self) -> SBType
Returns the unqualified version of this type.
Language-specific behaviour:
* C: If this type with any const or volatile specifier removed.
* C++: Same as in C.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetUnqualifiedType(self)
def GetArrayElementType(self):
r"""
GetArrayElementType(SBType self) -> SBType
Returns the array element type if this type is an array type.
Otherwise returns an invalid `SBType` if this type is invalid or not an
array type.
Language-specific behaviour:
* C: If this is an array type (see `IsArrayType`) such as ``T[]``, returns
the element type.
* C++: Same as in C.
* Objective-C: Same as in C.
See also `IsArrayType`.
"""
return _lldb.SBType_GetArrayElementType(self)
def GetArrayType(self, size):
r"""
GetArrayType(SBType self, uint64_t size) -> SBType
Returns the array type with the given constant size.
Language-specific behaviour:
* C: Returns a constant-size array ``T[size]`` for any non-void type.
* C++: Same as in C.
* Objective-C: Same as in C.
See also `IsArrayType` and `GetArrayElementType`.
"""
return _lldb.SBType_GetArrayType(self, size)
def GetVectorElementType(self):
r"""
GetVectorElementType(SBType self) -> SBType
Returns the vector element type if this type is a vector type.
Otherwise returns an invalid `SBType` if this type is invalid or not a
vector type.
Language-specific behaviour:
* C: If this is a vector type (see `IsVectorType`), returns the element
type.
* C++: Same as in C.
* Objective-C: Same as in C.
See also `IsVectorType`.
"""
return _lldb.SBType_GetVectorElementType(self)
def GetCanonicalType(self):
r"""GetCanonicalType(SBType self) -> SBType"""
return _lldb.SBType_GetCanonicalType(self)
def GetEnumerationIntegerType(self):
r"""
GetEnumerationIntegerType(SBType self) -> SBType
Returns the underlying integer type if this is an enumeration type.
If this type is an invalid `SBType` or not an enumeration type an invalid
`SBType` is returned.
Language-specific behaviour:
* C: Returns the underlying type for enums.
* C++: Same as in C but also returns the underlying type for scoped enums.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetEnumerationIntegerType(self)
def GetBasicType(self, *args):
r"""
GetBasicType(SBType self) -> lldb::BasicType
GetBasicType(SBType self, lldb::BasicType type) -> SBType
Returns the `BasicType` value that is most appropriate to this type.
Returns `eBasicTypeInvalid` if no appropriate `BasicType` was found or this
type is invalid. See the `BasicType` documentation for the language-specific
meaning of each `BasicType` value.
**Overload behaviour:** When called with a `BasicType` parameter, the
following behaviour applies:
Returns the `SBType` that represents the passed `BasicType` value. Returns
an invalid `SBType` if no fitting `SBType` could be created.
Language-specific behaviour:
* C: Returns the respective builtin type. Note that some types
(e.g. ``__uint128_t``) might even be successfully created even if they are
not available on the target platform. C++ and Objective-C specific types
might also be created even if the target program is not written in C++ or
Objective-C.
* C++: Same as in C.
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetBasicType(self, *args)
def GetNumberOfFields(self):
r"""
GetNumberOfFields(SBType self) -> uint32_t
Returns the number of fields of this type.
Returns ``0`` if this type does not have fields.
Language-specific behaviour:
* C: Returns the number of fields if the type is a struct. If the type
contains an anonymous struct/union it only counts as a single field (even
if the struct/union contains several fields).
* C++: Returns the number of non-static fields if the type is a
struct/class. If the type contains an anonymous struct/union it only
counts as a single field (even if the struct/union contains several
fields). The fields of any base classes are not included in the count.
* Objective-C: Same as in C for structs. For Objective-C classes the number
of ivars is returned.
See also `GetFieldAtIndex`.
"""
return _lldb.SBType_GetNumberOfFields(self)
def GetNumberOfDirectBaseClasses(self):
r"""
GetNumberOfDirectBaseClasses(SBType self) -> uint32_t
Returns the number of base/parent classes of this type.
Returns ``0`` if this type doesn't have any base classes.
Language-specific behaviour:
* C: Returns always ``0``.
* C++: The number of direct non-virtual base classes if this type is
a class.
* Objective-C: The number of super classes for Objective-C classes.
As Objective-C doesn't have multiple inheritance this is usually returns 1
except for NSObject.
"""
return _lldb.SBType_GetNumberOfDirectBaseClasses(self)
def GetNumberOfVirtualBaseClasses(self):
r"""
GetNumberOfVirtualBaseClasses(SBType self) -> uint32_t
Returns the number of virtual base/parent classes of this type
Returns ``0`` if this type doesn't have any base classes.
Language-specific behaviour:
* C: Returns always ``0``.
* C++: The number of direct virtual base classes if this type is a
class.
* Objective-C: Returns always ``0``.
"""
return _lldb.SBType_GetNumberOfVirtualBaseClasses(self)
def GetFieldAtIndex(self, idx):
r"""
GetFieldAtIndex(SBType self, uint32_t idx) -> SBTypeMember
Returns the field at the given index.
Returns an invalid `SBType` if the index is out of range or the current
type doesn't have any fields.
Language-specific behaviour:
* C: Returns the field with the given index for struct types. Fields are
ordered/indexed starting from ``0`` for the first field in a struct (as
declared in the definition).
* C++: Returns the non-static field with the given index for struct types.
Fields are ordered/indexed starting from ``0`` for the first field in a
struct (as declared in the definition).
* Objective-C: Same as in C for structs. For Objective-C classes the ivar
with the given index is returned. ivars are indexed starting from ``0``.
"""
return _lldb.SBType_GetFieldAtIndex(self, idx)
def GetDirectBaseClassAtIndex(self, idx):
r"""
GetDirectBaseClassAtIndex(SBType self, uint32_t idx) -> SBTypeMember
Returns the direct base class as indexed by `GetNumberOfDirectBaseClasses`.
Returns an invalid SBTypeMember if the index is invalid or this SBType is
invalid.
"""
return _lldb.SBType_GetDirectBaseClassAtIndex(self, idx)
def GetVirtualBaseClassAtIndex(self, idx):
r"""
GetVirtualBaseClassAtIndex(SBType self, uint32_t idx) -> SBTypeMember
Returns the virtual base class as indexed by
`GetNumberOfVirtualBaseClasses`.
Returns an invalid SBTypeMember if the index is invalid or this SBType is
invalid.
"""
return _lldb.SBType_GetVirtualBaseClassAtIndex(self, idx)
def GetEnumMembers(self):
r"""GetEnumMembers(SBType self) -> SBTypeEnumMemberList"""
return _lldb.SBType_GetEnumMembers(self)
def GetNumberOfTemplateArguments(self):
r"""
GetNumberOfTemplateArguments(SBType self) -> uint32_t
Returns the number of template arguments of this type.
Returns ``0`` if this type is not a template.
Language-specific behaviour:
* C: Always returns ``0``.
* C++: If this type is a class template instantiation then this returns the
number of template parameters that were used in this instantiation. This
includes both explicit and implicit template parameters.
* Objective-C: Always returns ``0``.
"""
return _lldb.SBType_GetNumberOfTemplateArguments(self)
def GetTemplateArgumentType(self, idx):
r"""
GetTemplateArgumentType(SBType self, uint32_t idx) -> SBType
Returns the type of the template argument with the given index.
Returns an invalid `SBType` if there is no template argument with the given
index or this type is not a template. The first template argument has the
index ``0``.
Language-specific behaviour:
* C: Always returns an invalid SBType.
* C++: If this type is a class template instantiation and the template
parameter with the given index is a type template parameter, then this
returns the type of that parameter. Otherwise returns an invalid `SBType`.
* Objective-C: Always returns an invalid SBType.
"""
return _lldb.SBType_GetTemplateArgumentType(self, idx)
def GetTemplateArgumentKind(self, idx):
r"""
GetTemplateArgumentKind(SBType self, uint32_t idx) -> lldb::TemplateArgumentKind
Returns the kind of the template argument with the given index.
Returns `eTemplateArgumentKindNull` if there is no template argument
with the given index or this type is not a template. The first template
argument has the index ``0``.
Language-specific behaviour:
* C: Always returns `eTemplateArgumentKindNull`.
* C++: If this type is a class template instantiation then this returns
the appropriate `TemplateArgument` value for the parameter with the given
index. See the documentation of `TemplateArgument` for how certain C++
template parameter kinds are mapped to `TemplateArgument` values.
* Objective-C: Always returns `eTemplateArgumentKindNull`.
"""
return _lldb.SBType_GetTemplateArgumentKind(self, idx)
def GetFunctionReturnType(self):
r"""
GetFunctionReturnType(SBType self) -> SBType
Returns the return type if this type represents a function.
Returns an invalid `SBType` if this type is not a function type or invalid.
Language-specific behaviour:
* C: For functions return the return type. Returns an invalid `SBType` if
this type is a function pointer type.
* C++: Same as in C for functions and instantiated template functions.
Member functions are also considered functions. For functions that have
their return type specified by a placeholder type specifier (``auto``)
this returns the deduced return type.
* Objective-C: Same as in C for functions. For Objective-C methods this
returns the return type of the method.
"""
return _lldb.SBType_GetFunctionReturnType(self)
def GetFunctionArgumentTypes(self):
r"""
GetFunctionArgumentTypes(SBType self) -> SBTypeList
Returns the list of argument types if this type represents a function.
Returns an invalid `SBType` if this type is not a function type or invalid.
Language-specific behaviour:
* C: For functions return the types of each parameter. Returns an invalid
`SBType` if this type is a function pointer. For variadic functions this
just returns the list of parameters before the variadic arguments.
* C++: Same as in C for functions and instantiated template functions.
Member functions are also considered functions.
* Objective-C: Always returns an invalid SBType for Objective-C methods.
"""
return _lldb.SBType_GetFunctionArgumentTypes(self)
def GetNumberOfMemberFunctions(self):
r"""
GetNumberOfMemberFunctions(SBType self) -> uint32_t
Returns the number of member functions of this type.
Returns ``0`` if an error occurred or this type is invalid.
Language-specific behaviour:
* C: Always returns ``0``.
* C++: If this type represents a struct/class, then the number of
member functions (static and non-static) is returned. The count includes
constructors and destructors (both explicit and implicit). Member
functions of base classes are not included in the count.
* Objective-C: If this type represents a struct/class, then the
number of methods is returned. Methods in categories or super classes
are not counted.
"""
return _lldb.SBType_GetNumberOfMemberFunctions(self)
def GetMemberFunctionAtIndex(self, idx):
r"""
GetMemberFunctionAtIndex(SBType self, uint32_t idx) -> SBTypeMemberFunction
Returns the member function of this type with the given index.
Returns an invalid `SBTypeMemberFunction` if the index is invalid or this
type is invalid.
Language-specific behaviour:
* C: Always returns an invalid `SBTypeMemberFunction`.
* C++: Returns the member function or constructor/destructor with the given
index.
* Objective-C: Returns the method with the given index.
See `GetNumberOfMemberFunctions` for what functions can be queried by this
function.
"""
return _lldb.SBType_GetMemberFunctionAtIndex(self, idx)
def GetModule(self):
r"""
GetModule(SBType self) -> SBModule
Returns the `SBModule` this `SBType` belongs to.
Returns no `SBModule` if this type does not belong to any specific
`SBModule` or this `SBType` is invalid. An invalid `SBModule` might also
indicate that once came from an `SBModule` but LLDB could no longer
determine the original module.
"""
return _lldb.SBType_GetModule(self)
def GetName(self):
r"""
GetName() -> string
Returns the name of this type.
Returns an empty string if an error occurred or this type is invalid.
Use this function when trying to match a specific type by name in a script.
The names returned by this function try to uniquely identify a name but
conflicts can occur (for example, if a C++ program contains two different
classes with the same name in different translation units. `GetName` can
return the same name for both class types.)
Language-specific behaviour:
* C: The name of the type. For structs the ``struct`` prefix is omitted.
* C++: Returns the qualified name of the type (including anonymous/inline
namespaces and all template arguments).
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetName(self)
def GetDisplayTypeName(self):
r"""
GetDisplayTypeName() -> string
Returns the name of this type in a user-friendly format.
Returns an empty string if an error occurred or this type is invalid.
Use this function when displaying a type name to the user.
Language-specific behaviour:
* C: Returns the type name. For structs the ``struct`` prefix is omitted.
* C++: Returns the qualified name. Anonymous/inline namespaces are omitted.
Template arguments that match their default value might also be hidden
(this functionality depends on whether LLDB can determine the template's
default arguments).
* Objective-C: Same as in C.
"""
return _lldb.SBType_GetDisplayTypeName(self)
def GetTypeClass(self):
r"""
GetTypeClass() -> TypeClass
Returns the `TypeClass` for this type.
Returns an `eTypeClassInvalid` if this `SBType` is invalid.
See `TypeClass` for the language-specific meaning of each `TypeClass` value.
"""
return _lldb.SBType_GetTypeClass(self)
def IsTypeComplete(self):
r"""
IsTypeComplete(SBType self) -> bool
Returns true if the type is completely defined.
Language-specific behaviour:
* C: Returns false for struct types that were only forward declared in the
type's `SBTarget`/`SBModule`. Otherwise returns true.
* C++: Returns false for template/non-template struct/class types and
scoped enums that were only forward declared inside the type's
`SBTarget`/`SBModule`. Otherwise returns true.
* Objective-C: Follows the same behavior as C for struct types. Objective-C
classes are considered complete unless they were only forward declared via
``@class ClassName`` in the type's `SBTarget`/`SBModule`. Otherwise
returns true.
"""
return _lldb.SBType_IsTypeComplete(self)
def GetTypeFlags(self):
r"""
GetTypeFlags(SBType self) -> uint32_t
Returns the `TypeFlags` values for this type.
See the respective `TypeFlags` values for what values can be set. Returns an
integer in which each `TypeFlags` value is represented by a bit. Specific
flags can be checked via Python's bitwise operators. For example, the
`eTypeIsInteger` flag can be checked like this:
``(an_sb_type.GetTypeFlags() & lldb.eTypeIsInteger) != 0``
If this type is invalid this returns ``0``.
See the different values for `TypeFlags` for the language-specific meanings
of each `TypeFlags` value.
"""
return _lldb.SBType_GetTypeFlags(self)
def GetDescription(self, description, description_level):
r"""GetDescription(SBType self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBType_GetDescription(self, description, description_level)
def __eq__(self, rhs):
r"""__eq__(SBType self, SBType rhs) -> bool"""
return _lldb.SBType___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBType self, SBType rhs) -> bool"""
return _lldb.SBType___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBType self) -> std::string"""
return _lldb.SBType___repr__(self)
def template_arg_array(self):
num_args = self.num_template_args
if num_args:
template_args = []
for i in range(num_args):
template_args.append(self.GetTemplateArgumentType(i))
return template_args
return None
module = property(GetModule, None, doc='''A read only property that returns the module in which type is defined.''')
name = property(GetName, None, doc='''A read only property that returns the name for this type as a string.''')
size = property(GetByteSize, None, doc='''A read only property that returns size in bytes for this type as an integer.''')
is_pointer = property(IsPointerType, None, doc='''A read only property that returns a boolean value that indicates if this type is a pointer type.''')
is_reference = property(IsReferenceType, None, doc='''A read only property that returns a boolean value that indicates if this type is a reference type.''')
is_reference = property(IsReferenceType, None, doc='''A read only property that returns a boolean value that indicates if this type is a function type.''')
num_fields = property(GetNumberOfFields, None, doc='''A read only property that returns number of fields in this type as an integer.''')
num_bases = property(GetNumberOfDirectBaseClasses, None, doc='''A read only property that returns number of direct base classes in this type as an integer.''')
num_vbases = property(GetNumberOfVirtualBaseClasses, None, doc='''A read only property that returns number of virtual base classes in this type as an integer.''')
num_template_args = property(GetNumberOfTemplateArguments, None, doc='''A read only property that returns number of template arguments in this type as an integer.''')
template_args = property(template_arg_array, None, doc='''A read only property that returns a list() of lldb.SBType objects that represent all template arguments in this type.''')
type = property(GetTypeClass, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eTypeClass") that represents a classification for this type.''')
is_complete = property(IsTypeComplete, None, doc='''A read only property that returns a boolean value that indicates if this type is a complete type (True) or a forward declaration (False).''')
def get_bases_array(self):
'''An accessor function that returns a list() that contains all direct base classes in a lldb.SBType object.'''
bases = []
for idx in range(self.GetNumberOfDirectBaseClasses()):
bases.append(self.GetDirectBaseClassAtIndex(idx))
return bases
def get_vbases_array(self):
'''An accessor function that returns a list() that contains all fields in a lldb.SBType object.'''
vbases = []
for idx in range(self.GetNumberOfVirtualBaseClasses()):
vbases.append(self.GetVirtualBaseClassAtIndex(idx))
return vbases
def get_fields_array(self):
'''An accessor function that returns a list() that contains all fields in a lldb.SBType object.'''
fields = []
for idx in range(self.GetNumberOfFields()):
fields.append(self.GetFieldAtIndex(idx))
return fields
def get_members_array(self):
'''An accessor function that returns a list() that contains all members (base classes and fields) in a lldb.SBType object in ascending bit offset order.'''
members = []
bases = self.get_bases_array()
fields = self.get_fields_array()
vbases = self.get_vbases_array()
for base in bases:
bit_offset = base.bit_offset
added = False
for idx, member in enumerate(members):
if member.bit_offset > bit_offset:
members.insert(idx, base)
added = True
break
if not added:
members.append(base)
for vbase in vbases:
bit_offset = vbase.bit_offset
added = False
for idx, member in enumerate(members):
if member.bit_offset > bit_offset:
members.insert(idx, vbase)
added = True
break
if not added:
members.append(vbase)
for field in fields:
bit_offset = field.bit_offset
added = False
for idx, member in enumerate(members):
if member.bit_offset > bit_offset:
members.insert(idx, field)
added = True
break
if not added:
members.append(field)
return members
def get_enum_members_array(self):
'''An accessor function that returns a list() that contains all enum members in an lldb.SBType object.'''
enum_members_list = []
sb_enum_members = self.GetEnumMembers()
for idx in range(sb_enum_members.GetSize()):
enum_members_list.append(sb_enum_members.GetTypeEnumMemberAtIndex(idx))
return enum_members_list
bases = property(get_bases_array, None, doc='''A read only property that returns a list() of lldb.SBTypeMember objects that represent all of the direct base classes for this type.''')
vbases = property(get_vbases_array, None, doc='''A read only property that returns a list() of lldb.SBTypeMember objects that represent all of the virtual base classes for this type.''')
fields = property(get_fields_array, None, doc='''A read only property that returns a list() of lldb.SBTypeMember objects that represent all of the fields for this type.''')
members = property(get_members_array, None, doc='''A read only property that returns a list() of all lldb.SBTypeMember objects that represent all of the base classes, virtual base classes and fields for this type in ascending bit offset order.''')
enum_members = property(get_enum_members_array, None, doc='''A read only property that returns a list() of all lldb.SBTypeEnumMember objects that represent the enum members for this type.''')
# Register SBType in _lldb:
_lldb.SBType_swigregister(SBType)
class SBTypeList(object):
r"""
Represents a list of :py:class:`SBType` s.
The FindTypes() method of :py:class:`SBTarget`/:py:class:`SBModule` returns a SBTypeList.
SBTypeList supports :py:class:`SBType` iteration. For example,
.. code-block:: cpp
// main.cpp:
class Task {
public:
int id;
Task *next;
Task(int i, Task *n):
id(i),
next(n)
{}
};
.. code-block:: python
# find_type.py:
# Get the type 'Task'.
type_list = target.FindTypes('Task')
self.assertTrue(len(type_list) == 1)
# To illustrate the SBType iteration.
for type in type_list:
# do something with type
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBTypeList self) -> SBTypeList
__init__(SBTypeList self, SBTypeList rhs) -> SBTypeList
"""
_lldb.SBTypeList_swiginit(self, _lldb.new_SBTypeList(*args))
__swig_destroy__ = _lldb.delete_SBTypeList
def __nonzero__(self):
return _lldb.SBTypeList___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeList self) -> bool"""
return _lldb.SBTypeList_IsValid(self)
def Append(self, type):
r"""Append(SBTypeList self, SBType type)"""
return _lldb.SBTypeList_Append(self, type)
def GetTypeAtIndex(self, index):
r"""GetTypeAtIndex(SBTypeList self, uint32_t index) -> SBType"""
return _lldb.SBTypeList_GetTypeAtIndex(self, index)
def GetSize(self):
r"""GetSize(SBTypeList self) -> uint32_t"""
return _lldb.SBTypeList_GetSize(self)
def __iter__(self):
'''Iterate over all types in a lldb.SBTypeList object.'''
return lldb_iter(self, 'GetSize', 'GetTypeAtIndex')
def __len__(self):
'''Return the number of types in a lldb.SBTypeList object.'''
return self.GetSize()
# Register SBTypeList in _lldb:
_lldb.SBTypeList_swigregister(SBTypeList)
class SBTypeCategory(object):
r"""Represents a category that can contain formatters for types."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeCategory self) -> SBTypeCategory
__init__(SBTypeCategory self, SBTypeCategory rhs) -> SBTypeCategory
"""
_lldb.SBTypeCategory_swiginit(self, _lldb.new_SBTypeCategory(*args))
__swig_destroy__ = _lldb.delete_SBTypeCategory
def __nonzero__(self):
return _lldb.SBTypeCategory___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeCategory self) -> bool"""
return _lldb.SBTypeCategory_IsValid(self)
def GetEnabled(self):
r"""GetEnabled(SBTypeCategory self) -> bool"""
return _lldb.SBTypeCategory_GetEnabled(self)
def SetEnabled(self, arg2):
r"""SetEnabled(SBTypeCategory self, bool arg2)"""
return _lldb.SBTypeCategory_SetEnabled(self, arg2)
def GetName(self):
r"""GetName(SBTypeCategory self) -> char const *"""
return _lldb.SBTypeCategory_GetName(self)
def GetLanguageAtIndex(self, idx):
r"""GetLanguageAtIndex(SBTypeCategory self, uint32_t idx) -> lldb::LanguageType"""
return _lldb.SBTypeCategory_GetLanguageAtIndex(self, idx)
def GetNumLanguages(self):
r"""GetNumLanguages(SBTypeCategory self) -> uint32_t"""
return _lldb.SBTypeCategory_GetNumLanguages(self)
def AddLanguage(self, language):
r"""AddLanguage(SBTypeCategory self, lldb::LanguageType language)"""
return _lldb.SBTypeCategory_AddLanguage(self, language)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeCategory self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeCategory_GetDescription(self, description, description_level)
def GetNumFormats(self):
r"""GetNumFormats(SBTypeCategory self) -> uint32_t"""
return _lldb.SBTypeCategory_GetNumFormats(self)
def GetNumSummaries(self):
r"""GetNumSummaries(SBTypeCategory self) -> uint32_t"""
return _lldb.SBTypeCategory_GetNumSummaries(self)
def GetNumFilters(self):
r"""GetNumFilters(SBTypeCategory self) -> uint32_t"""
return _lldb.SBTypeCategory_GetNumFilters(self)
def GetNumSynthetics(self):
r"""GetNumSynthetics(SBTypeCategory self) -> uint32_t"""
return _lldb.SBTypeCategory_GetNumSynthetics(self)
def GetTypeNameSpecifierForFilterAtIndex(self, arg2):
r"""GetTypeNameSpecifierForFilterAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier"""
return _lldb.SBTypeCategory_GetTypeNameSpecifierForFilterAtIndex(self, arg2)
def GetTypeNameSpecifierForFormatAtIndex(self, arg2):
r"""GetTypeNameSpecifierForFormatAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier"""
return _lldb.SBTypeCategory_GetTypeNameSpecifierForFormatAtIndex(self, arg2)
def GetTypeNameSpecifierForSummaryAtIndex(self, arg2):
r"""GetTypeNameSpecifierForSummaryAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier"""
return _lldb.SBTypeCategory_GetTypeNameSpecifierForSummaryAtIndex(self, arg2)
def GetTypeNameSpecifierForSyntheticAtIndex(self, arg2):
r"""GetTypeNameSpecifierForSyntheticAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier"""
return _lldb.SBTypeCategory_GetTypeNameSpecifierForSyntheticAtIndex(self, arg2)
def GetFilterForType(self, arg2):
r"""GetFilterForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeFilter"""
return _lldb.SBTypeCategory_GetFilterForType(self, arg2)
def GetFormatForType(self, arg2):
r"""GetFormatForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeFormat"""
return _lldb.SBTypeCategory_GetFormatForType(self, arg2)
def GetSummaryForType(self, arg2):
r"""GetSummaryForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeSummary"""
return _lldb.SBTypeCategory_GetSummaryForType(self, arg2)
def GetSyntheticForType(self, arg2):
r"""GetSyntheticForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic"""
return _lldb.SBTypeCategory_GetSyntheticForType(self, arg2)
def GetFilterAtIndex(self, arg2):
r"""GetFilterAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeFilter"""
return _lldb.SBTypeCategory_GetFilterAtIndex(self, arg2)
def GetFormatAtIndex(self, arg2):
r"""GetFormatAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeFormat"""
return _lldb.SBTypeCategory_GetFormatAtIndex(self, arg2)
def GetSummaryAtIndex(self, arg2):
r"""GetSummaryAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeSummary"""
return _lldb.SBTypeCategory_GetSummaryAtIndex(self, arg2)
def GetSyntheticAtIndex(self, arg2):
r"""GetSyntheticAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeSynthetic"""
return _lldb.SBTypeCategory_GetSyntheticAtIndex(self, arg2)
def AddTypeFormat(self, arg2, arg3):
r"""AddTypeFormat(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeFormat arg3) -> bool"""
return _lldb.SBTypeCategory_AddTypeFormat(self, arg2, arg3)
def DeleteTypeFormat(self, arg2):
r"""DeleteTypeFormat(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool"""
return _lldb.SBTypeCategory_DeleteTypeFormat(self, arg2)
def AddTypeSummary(self, arg2, arg3):
r"""AddTypeSummary(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeSummary arg3) -> bool"""
return _lldb.SBTypeCategory_AddTypeSummary(self, arg2, arg3)
def DeleteTypeSummary(self, arg2):
r"""DeleteTypeSummary(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool"""
return _lldb.SBTypeCategory_DeleteTypeSummary(self, arg2)
def AddTypeFilter(self, arg2, arg3):
r"""AddTypeFilter(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeFilter arg3) -> bool"""
return _lldb.SBTypeCategory_AddTypeFilter(self, arg2, arg3)
def DeleteTypeFilter(self, arg2):
r"""DeleteTypeFilter(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool"""
return _lldb.SBTypeCategory_DeleteTypeFilter(self, arg2)
def AddTypeSynthetic(self, arg2, arg3):
r"""AddTypeSynthetic(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeSynthetic arg3) -> bool"""
return _lldb.SBTypeCategory_AddTypeSynthetic(self, arg2, arg3)
def DeleteTypeSynthetic(self, arg2):
r"""DeleteTypeSynthetic(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool"""
return _lldb.SBTypeCategory_DeleteTypeSynthetic(self, arg2)
def __eq__(self, rhs):
r"""__eq__(SBTypeCategory self, SBTypeCategory rhs) -> bool"""
return _lldb.SBTypeCategory___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTypeCategory self, SBTypeCategory rhs) -> bool"""
return _lldb.SBTypeCategory___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBTypeCategory self) -> std::string"""
return _lldb.SBTypeCategory___repr__(self)
class formatters_access_class(object):
'''A helper object that will lazily hand out formatters for a specific category.'''
def __init__(self, sbcategory, get_count_function, get_at_index_function, get_by_name_function):
self.sbcategory = sbcategory
self.get_count_function = get_count_function
self.get_at_index_function = get_at_index_function
self.get_by_name_function = get_by_name_function
self.regex_type = type(re.compile('.'))
def __len__(self):
if self.sbcategory and self.get_count_function:
return int(self.get_count_function(self.sbcategory))
return 0
def __getitem__(self, key):
num_items = len(self)
if type(key) is int:
if -num_items <= key < num_items:
key %= num_items
return self.get_at_index_function(self.sbcategory,key)
elif type(key) is str:
return self.get_by_name_function(self.sbcategory,SBTypeNameSpecifier(key))
elif isinstance(key,self.regex_type):
return self.get_by_name_function(self.sbcategory,SBTypeNameSpecifier(key.pattern,True))
else:
print("error: unsupported item type: %s" % type(key))
return None
def get_formats_access_object(self):
'''An accessor function that returns an accessor object which allows lazy format access from a lldb.SBTypeCategory object.'''
return self.formatters_access_class (self,self.__class__.GetNumFormats,self.__class__.GetFormatAtIndex,self.__class__.GetFormatForType)
def get_formats_array(self):
'''An accessor function that returns a list() that contains all formats in a lldb.SBCategory object.'''
formats = []
for idx in range(self.GetNumFormats()):
formats.append(self.GetFormatAtIndex(idx))
return formats
def get_summaries_access_object(self):
'''An accessor function that returns an accessor object which allows lazy summary access from a lldb.SBTypeCategory object.'''
return self.formatters_access_class (self,self.__class__.GetNumSummaries,self.__class__.GetSummaryAtIndex,self.__class__.GetSummaryForType)
def get_summaries_array(self):
'''An accessor function that returns a list() that contains all summaries in a lldb.SBCategory object.'''
summaries = []
for idx in range(self.GetNumSummaries()):
summaries.append(self.GetSummaryAtIndex(idx))
return summaries
def get_synthetics_access_object(self):
'''An accessor function that returns an accessor object which allows lazy synthetic children provider access from a lldb.SBTypeCategory object.'''
return self.formatters_access_class (self,self.__class__.GetNumSynthetics,self.__class__.GetSyntheticAtIndex,self.__class__.GetSyntheticForType)
def get_synthetics_array(self):
'''An accessor function that returns a list() that contains all synthetic children providers in a lldb.SBCategory object.'''
synthetics = []
for idx in range(self.GetNumSynthetics()):
synthetics.append(self.GetSyntheticAtIndex(idx))
return synthetics
def get_filters_access_object(self):
'''An accessor function that returns an accessor object which allows lazy filter access from a lldb.SBTypeCategory object.'''
return self.formatters_access_class (self,self.__class__.GetNumFilters,self.__class__.GetFilterAtIndex,self.__class__.GetFilterForType)
def get_filters_array(self):
'''An accessor function that returns a list() that contains all filters in a lldb.SBCategory object.'''
filters = []
for idx in range(self.GetNumFilters()):
filters.append(self.GetFilterAtIndex(idx))
return filters
formats = property(get_formats_array, None, doc='''A read only property that returns a list() of lldb.SBTypeFormat objects contained in this category''')
format = property(get_formats_access_object, None, doc=r'''A read only property that returns an object that you can use to look for formats by index or type name.''')
summaries = property(get_summaries_array, None, doc='''A read only property that returns a list() of lldb.SBTypeSummary objects contained in this category''')
summary = property(get_summaries_access_object, None, doc=r'''A read only property that returns an object that you can use to look for summaries by index or type name or regular expression.''')
filters = property(get_filters_array, None, doc='''A read only property that returns a list() of lldb.SBTypeFilter objects contained in this category''')
filter = property(get_filters_access_object, None, doc=r'''A read only property that returns an object that you can use to look for filters by index or type name or regular expression.''')
synthetics = property(get_synthetics_array, None, doc='''A read only property that returns a list() of lldb.SBTypeSynthetic objects contained in this category''')
synthetic = property(get_synthetics_access_object, None, doc=r'''A read only property that returns an object that you can use to look for synthetic children provider by index or type name or regular expression.''')
num_formats = property(GetNumFormats, None)
num_summaries = property(GetNumSummaries, None)
num_filters = property(GetNumFilters, None)
num_synthetics = property(GetNumSynthetics, None)
name = property(GetName, None)
enabled = property(GetEnabled, SetEnabled)
# Register SBTypeCategory in _lldb:
_lldb.SBTypeCategory_swigregister(SBTypeCategory)
class SBTypeEnumMember(object):
r"""Represents a member of an enum in lldb."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeEnumMember self) -> SBTypeEnumMember
__init__(SBTypeEnumMember self, SBTypeEnumMember rhs) -> SBTypeEnumMember
"""
_lldb.SBTypeEnumMember_swiginit(self, _lldb.new_SBTypeEnumMember(*args))
__swig_destroy__ = _lldb.delete_SBTypeEnumMember
def __nonzero__(self):
return _lldb.SBTypeEnumMember___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeEnumMember self) -> bool"""
return _lldb.SBTypeEnumMember_IsValid(self)
def GetValueAsSigned(self):
r"""GetValueAsSigned(SBTypeEnumMember self) -> int64_t"""
return _lldb.SBTypeEnumMember_GetValueAsSigned(self)
def GetValueAsUnsigned(self):
r"""GetValueAsUnsigned(SBTypeEnumMember self) -> uint64_t"""
return _lldb.SBTypeEnumMember_GetValueAsUnsigned(self)
def GetName(self):
r"""GetName(SBTypeEnumMember self) -> char const *"""
return _lldb.SBTypeEnumMember_GetName(self)
def GetType(self):
r"""GetType(SBTypeEnumMember self) -> SBType"""
return _lldb.SBTypeEnumMember_GetType(self)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeEnumMember self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeEnumMember_GetDescription(self, description, description_level)
def __repr__(self):
r"""__repr__(SBTypeEnumMember self) -> std::string"""
return _lldb.SBTypeEnumMember___repr__(self)
name = property(GetName, None, doc='''A read only property that returns the name for this enum member as a string.''')
type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this enum member.''')
signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this enum member as a signed integer.''')
unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this enum member as a unsigned integer.''')
# Register SBTypeEnumMember in _lldb:
_lldb.SBTypeEnumMember_swigregister(SBTypeEnumMember)
class SBTypeEnumMemberList(object):
r"""
Represents a list of SBTypeEnumMembers.
SBTypeEnumMemberList supports SBTypeEnumMember iteration.
It also supports [] access either by index, or by enum
element name by doing: ::
myType = target.FindFirstType('MyEnumWithElementA')
members = myType.GetEnumMembers()
first_elem = members[0]
elem_A = members['A']
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBTypeEnumMemberList self) -> SBTypeEnumMemberList
__init__(SBTypeEnumMemberList self, SBTypeEnumMemberList rhs) -> SBTypeEnumMemberList
"""
_lldb.SBTypeEnumMemberList_swiginit(self, _lldb.new_SBTypeEnumMemberList(*args))
__swig_destroy__ = _lldb.delete_SBTypeEnumMemberList
def __nonzero__(self):
return _lldb.SBTypeEnumMemberList___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeEnumMemberList self) -> bool"""
return _lldb.SBTypeEnumMemberList_IsValid(self)
def Append(self, entry):
r"""Append(SBTypeEnumMemberList self, SBTypeEnumMember entry)"""
return _lldb.SBTypeEnumMemberList_Append(self, entry)
def GetTypeEnumMemberAtIndex(self, index):
r"""GetTypeEnumMemberAtIndex(SBTypeEnumMemberList self, uint32_t index) -> SBTypeEnumMember"""
return _lldb.SBTypeEnumMemberList_GetTypeEnumMemberAtIndex(self, index)
def GetSize(self):
r"""GetSize(SBTypeEnumMemberList self) -> uint32_t"""
return _lldb.SBTypeEnumMemberList_GetSize(self)
def __iter__(self):
'''Iterate over all members in a lldb.SBTypeEnumMemberList object.'''
return lldb_iter(self, 'GetSize', 'GetTypeEnumMemberAtIndex')
def __len__(self):
'''Return the number of members in a lldb.SBTypeEnumMemberList object.'''
return self.GetSize()
def __getitem__(self, key):
num_elements = self.GetSize()
if type(key) is int:
if -num_elements <= key < num_elements:
key %= num_elements
return self.GetTypeEnumMemberAtIndex(key)
elif type(key) is str:
for idx in range(num_elements):
item = self.GetTypeEnumMemberAtIndex(idx)
if item.name == key:
return item
return None
# Register SBTypeEnumMemberList in _lldb:
_lldb.SBTypeEnumMemberList_swigregister(SBTypeEnumMemberList)
class SBTypeFilter(object):
r"""Represents a filter that can be associated to one or more types."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeFilter self) -> SBTypeFilter
__init__(SBTypeFilter self, uint32_t options) -> SBTypeFilter
__init__(SBTypeFilter self, SBTypeFilter rhs) -> SBTypeFilter
"""
_lldb.SBTypeFilter_swiginit(self, _lldb.new_SBTypeFilter(*args))
__swig_destroy__ = _lldb.delete_SBTypeFilter
def __nonzero__(self):
return _lldb.SBTypeFilter___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeFilter self) -> bool"""
return _lldb.SBTypeFilter_IsValid(self)
def GetNumberOfExpressionPaths(self):
r"""GetNumberOfExpressionPaths(SBTypeFilter self) -> uint32_t"""
return _lldb.SBTypeFilter_GetNumberOfExpressionPaths(self)
def GetExpressionPathAtIndex(self, i):
r"""GetExpressionPathAtIndex(SBTypeFilter self, uint32_t i) -> char const *"""
return _lldb.SBTypeFilter_GetExpressionPathAtIndex(self, i)
def ReplaceExpressionPathAtIndex(self, i, item):
r"""ReplaceExpressionPathAtIndex(SBTypeFilter self, uint32_t i, char const * item) -> bool"""
return _lldb.SBTypeFilter_ReplaceExpressionPathAtIndex(self, i, item)
def AppendExpressionPath(self, item):
r"""AppendExpressionPath(SBTypeFilter self, char const * item)"""
return _lldb.SBTypeFilter_AppendExpressionPath(self, item)
def Clear(self):
r"""Clear(SBTypeFilter self)"""
return _lldb.SBTypeFilter_Clear(self)
def GetOptions(self):
r"""GetOptions(SBTypeFilter self) -> uint32_t"""
return _lldb.SBTypeFilter_GetOptions(self)
def SetOptions(self, arg2):
r"""SetOptions(SBTypeFilter self, uint32_t arg2)"""
return _lldb.SBTypeFilter_SetOptions(self, arg2)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeFilter self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeFilter_GetDescription(self, description, description_level)
def IsEqualTo(self, rhs):
r"""IsEqualTo(SBTypeFilter self, SBTypeFilter rhs) -> bool"""
return _lldb.SBTypeFilter_IsEqualTo(self, rhs)
def __eq__(self, rhs):
r"""__eq__(SBTypeFilter self, SBTypeFilter rhs) -> bool"""
return _lldb.SBTypeFilter___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTypeFilter self, SBTypeFilter rhs) -> bool"""
return _lldb.SBTypeFilter___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBTypeFilter self) -> std::string"""
return _lldb.SBTypeFilter___repr__(self)
options = property(GetOptions, SetOptions)
count = property(GetNumberOfExpressionPaths)
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBTypeFilter in _lldb:
_lldb.SBTypeFilter_swigregister(SBTypeFilter)
class SBTypeFormat(object):
r"""Represents a format that can be associated to one or more types."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeFormat self) -> SBTypeFormat
__init__(SBTypeFormat self, lldb::Format format, uint32_t options=0) -> SBTypeFormat
__init__(SBTypeFormat self, char const * type, uint32_t options=0) -> SBTypeFormat
__init__(SBTypeFormat self, SBTypeFormat rhs) -> SBTypeFormat
"""
_lldb.SBTypeFormat_swiginit(self, _lldb.new_SBTypeFormat(*args))
__swig_destroy__ = _lldb.delete_SBTypeFormat
def __nonzero__(self):
return _lldb.SBTypeFormat___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeFormat self) -> bool"""
return _lldb.SBTypeFormat_IsValid(self)
def GetFormat(self):
r"""GetFormat(SBTypeFormat self) -> lldb::Format"""
return _lldb.SBTypeFormat_GetFormat(self)
def GetTypeName(self):
r"""GetTypeName(SBTypeFormat self) -> char const *"""
return _lldb.SBTypeFormat_GetTypeName(self)
def GetOptions(self):
r"""GetOptions(SBTypeFormat self) -> uint32_t"""
return _lldb.SBTypeFormat_GetOptions(self)
def SetFormat(self, arg2):
r"""SetFormat(SBTypeFormat self, lldb::Format arg2)"""
return _lldb.SBTypeFormat_SetFormat(self, arg2)
def SetTypeName(self, arg2):
r"""SetTypeName(SBTypeFormat self, char const * arg2)"""
return _lldb.SBTypeFormat_SetTypeName(self, arg2)
def SetOptions(self, arg2):
r"""SetOptions(SBTypeFormat self, uint32_t arg2)"""
return _lldb.SBTypeFormat_SetOptions(self, arg2)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeFormat self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeFormat_GetDescription(self, description, description_level)
def IsEqualTo(self, rhs):
r"""IsEqualTo(SBTypeFormat self, SBTypeFormat rhs) -> bool"""
return _lldb.SBTypeFormat_IsEqualTo(self, rhs)
def __eq__(self, rhs):
r"""__eq__(SBTypeFormat self, SBTypeFormat rhs) -> bool"""
return _lldb.SBTypeFormat___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTypeFormat self, SBTypeFormat rhs) -> bool"""
return _lldb.SBTypeFormat___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBTypeFormat self) -> std::string"""
return _lldb.SBTypeFormat___repr__(self)
format = property(GetFormat, SetFormat)
options = property(GetOptions, SetOptions)
# Register SBTypeFormat in _lldb:
_lldb.SBTypeFormat_swigregister(SBTypeFormat)
class SBTypeNameSpecifier(object):
r"""Represents a general way to provide a type name to LLDB APIs."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBTypeNameSpecifier self) -> SBTypeNameSpecifier
__init__(SBTypeNameSpecifier self, char const * name, bool is_regex=False) -> SBTypeNameSpecifier
__init__(SBTypeNameSpecifier self, char const * name, lldb::FormatterMatchType match_type) -> SBTypeNameSpecifier
__init__(SBTypeNameSpecifier self, SBType type) -> SBTypeNameSpecifier
__init__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> SBTypeNameSpecifier
"""
_lldb.SBTypeNameSpecifier_swiginit(self, _lldb.new_SBTypeNameSpecifier(*args))
__swig_destroy__ = _lldb.delete_SBTypeNameSpecifier
def __nonzero__(self):
return _lldb.SBTypeNameSpecifier___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeNameSpecifier self) -> bool"""
return _lldb.SBTypeNameSpecifier_IsValid(self)
def GetName(self):
r"""GetName(SBTypeNameSpecifier self) -> char const *"""
return _lldb.SBTypeNameSpecifier_GetName(self)
def GetType(self):
r"""GetType(SBTypeNameSpecifier self) -> SBType"""
return _lldb.SBTypeNameSpecifier_GetType(self)
def GetMatchType(self):
r"""GetMatchType(SBTypeNameSpecifier self) -> lldb::FormatterMatchType"""
return _lldb.SBTypeNameSpecifier_GetMatchType(self)
def IsRegex(self):
r"""IsRegex(SBTypeNameSpecifier self) -> bool"""
return _lldb.SBTypeNameSpecifier_IsRegex(self)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeNameSpecifier self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeNameSpecifier_GetDescription(self, description, description_level)
def IsEqualTo(self, rhs):
r"""IsEqualTo(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool"""
return _lldb.SBTypeNameSpecifier_IsEqualTo(self, rhs)
def __eq__(self, rhs):
r"""__eq__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool"""
return _lldb.SBTypeNameSpecifier___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool"""
return _lldb.SBTypeNameSpecifier___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBTypeNameSpecifier self) -> std::string"""
return _lldb.SBTypeNameSpecifier___repr__(self)
name = property(GetName)
is_regex = property(IsRegex)
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBTypeNameSpecifier in _lldb:
_lldb.SBTypeNameSpecifier_swigregister(SBTypeNameSpecifier)
class SBTypeSummaryOptions(object):
r"""Proxy of C++ lldb::SBTypeSummaryOptions class."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBTypeSummaryOptions self) -> SBTypeSummaryOptions
__init__(SBTypeSummaryOptions self, SBTypeSummaryOptions rhs) -> SBTypeSummaryOptions
"""
_lldb.SBTypeSummaryOptions_swiginit(self, _lldb.new_SBTypeSummaryOptions(*args))
__swig_destroy__ = _lldb.delete_SBTypeSummaryOptions
def __nonzero__(self):
return _lldb.SBTypeSummaryOptions___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeSummaryOptions self) -> bool"""
return _lldb.SBTypeSummaryOptions_IsValid(self)
def GetLanguage(self):
r"""GetLanguage(SBTypeSummaryOptions self) -> lldb::LanguageType"""
return _lldb.SBTypeSummaryOptions_GetLanguage(self)
def GetCapping(self):
r"""GetCapping(SBTypeSummaryOptions self) -> lldb::TypeSummaryCapping"""
return _lldb.SBTypeSummaryOptions_GetCapping(self)
def SetLanguage(self, arg2):
r"""SetLanguage(SBTypeSummaryOptions self, lldb::LanguageType arg2)"""
return _lldb.SBTypeSummaryOptions_SetLanguage(self, arg2)
def SetCapping(self, arg2):
r"""SetCapping(SBTypeSummaryOptions self, lldb::TypeSummaryCapping arg2)"""
return _lldb.SBTypeSummaryOptions_SetCapping(self, arg2)
# Register SBTypeSummaryOptions in _lldb:
_lldb.SBTypeSummaryOptions_swigregister(SBTypeSummaryOptions)
class SBTypeSummary(object):
r"""Represents a summary that can be associated to one or more types."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
@staticmethod
def CreateWithSummaryString(data, options=0):
r"""CreateWithSummaryString(char const * data, uint32_t options=0) -> SBTypeSummary"""
return _lldb.SBTypeSummary_CreateWithSummaryString(data, options)
@staticmethod
def CreateWithFunctionName(data, options=0):
r"""CreateWithFunctionName(char const * data, uint32_t options=0) -> SBTypeSummary"""
return _lldb.SBTypeSummary_CreateWithFunctionName(data, options)
@staticmethod
def CreateWithScriptCode(data, options=0):
r"""CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSummary"""
return _lldb.SBTypeSummary_CreateWithScriptCode(data, options)
def __init__(self, *args):
r"""
__init__(SBTypeSummary self) -> SBTypeSummary
__init__(SBTypeSummary self, SBTypeSummary rhs) -> SBTypeSummary
"""
_lldb.SBTypeSummary_swiginit(self, _lldb.new_SBTypeSummary(*args))
__swig_destroy__ = _lldb.delete_SBTypeSummary
def __nonzero__(self):
return _lldb.SBTypeSummary___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeSummary self) -> bool"""
return _lldb.SBTypeSummary_IsValid(self)
def IsFunctionCode(self):
r"""IsFunctionCode(SBTypeSummary self) -> bool"""
return _lldb.SBTypeSummary_IsFunctionCode(self)
def IsFunctionName(self):
r"""IsFunctionName(SBTypeSummary self) -> bool"""
return _lldb.SBTypeSummary_IsFunctionName(self)
def IsSummaryString(self):
r"""IsSummaryString(SBTypeSummary self) -> bool"""
return _lldb.SBTypeSummary_IsSummaryString(self)
def GetData(self):
r"""GetData(SBTypeSummary self) -> char const *"""
return _lldb.SBTypeSummary_GetData(self)
def SetSummaryString(self, data):
r"""SetSummaryString(SBTypeSummary self, char const * data)"""
return _lldb.SBTypeSummary_SetSummaryString(self, data)
def SetFunctionName(self, data):
r"""SetFunctionName(SBTypeSummary self, char const * data)"""
return _lldb.SBTypeSummary_SetFunctionName(self, data)
def SetFunctionCode(self, data):
r"""SetFunctionCode(SBTypeSummary self, char const * data)"""
return _lldb.SBTypeSummary_SetFunctionCode(self, data)
def GetOptions(self):
r"""GetOptions(SBTypeSummary self) -> uint32_t"""
return _lldb.SBTypeSummary_GetOptions(self)
def SetOptions(self, arg2):
r"""SetOptions(SBTypeSummary self, uint32_t arg2)"""
return _lldb.SBTypeSummary_SetOptions(self, arg2)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeSummary self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeSummary_GetDescription(self, description, description_level)
def DoesPrintValue(self, value):
r"""DoesPrintValue(SBTypeSummary self, SBValue value) -> bool"""
return _lldb.SBTypeSummary_DoesPrintValue(self, value)
def IsEqualTo(self, rhs):
r"""IsEqualTo(SBTypeSummary self, SBTypeSummary rhs) -> bool"""
return _lldb.SBTypeSummary_IsEqualTo(self, rhs)
def __eq__(self, rhs):
r"""__eq__(SBTypeSummary self, SBTypeSummary rhs) -> bool"""
return _lldb.SBTypeSummary___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTypeSummary self, SBTypeSummary rhs) -> bool"""
return _lldb.SBTypeSummary___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBTypeSummary self) -> std::string"""
return _lldb.SBTypeSummary___repr__(self)
options = property(GetOptions, SetOptions)
is_summary_string = property(IsSummaryString)
is_function_name = property(IsFunctionName)
is_function_name = property(IsFunctionCode)
summary_data = property(GetData)
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBTypeSummary in _lldb:
_lldb.SBTypeSummary_swigregister(SBTypeSummary)
class SBTypeSynthetic(object):
r"""Represents a summary that can be associated to one or more types."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
@staticmethod
def CreateWithClassName(data, options=0):
r"""CreateWithClassName(char const * data, uint32_t options=0) -> SBTypeSynthetic"""
return _lldb.SBTypeSynthetic_CreateWithClassName(data, options)
@staticmethod
def CreateWithScriptCode(data, options=0):
r"""CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSynthetic"""
return _lldb.SBTypeSynthetic_CreateWithScriptCode(data, options)
def __init__(self, *args):
r"""
__init__(SBTypeSynthetic self) -> SBTypeSynthetic
__init__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> SBTypeSynthetic
"""
_lldb.SBTypeSynthetic_swiginit(self, _lldb.new_SBTypeSynthetic(*args))
__swig_destroy__ = _lldb.delete_SBTypeSynthetic
def __nonzero__(self):
return _lldb.SBTypeSynthetic___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBTypeSynthetic self) -> bool"""
return _lldb.SBTypeSynthetic_IsValid(self)
def IsClassCode(self):
r"""IsClassCode(SBTypeSynthetic self) -> bool"""
return _lldb.SBTypeSynthetic_IsClassCode(self)
def IsClassName(self):
r"""IsClassName(SBTypeSynthetic self) -> bool"""
return _lldb.SBTypeSynthetic_IsClassName(self)
def GetData(self):
r"""GetData(SBTypeSynthetic self) -> char const *"""
return _lldb.SBTypeSynthetic_GetData(self)
def SetClassName(self, data):
r"""SetClassName(SBTypeSynthetic self, char const * data)"""
return _lldb.SBTypeSynthetic_SetClassName(self, data)
def SetClassCode(self, data):
r"""SetClassCode(SBTypeSynthetic self, char const * data)"""
return _lldb.SBTypeSynthetic_SetClassCode(self, data)
def GetOptions(self):
r"""GetOptions(SBTypeSynthetic self) -> uint32_t"""
return _lldb.SBTypeSynthetic_GetOptions(self)
def SetOptions(self, arg2):
r"""SetOptions(SBTypeSynthetic self, uint32_t arg2)"""
return _lldb.SBTypeSynthetic_SetOptions(self, arg2)
def GetDescription(self, description, description_level):
r"""GetDescription(SBTypeSynthetic self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
return _lldb.SBTypeSynthetic_GetDescription(self, description, description_level)
def IsEqualTo(self, rhs):
r"""IsEqualTo(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool"""
return _lldb.SBTypeSynthetic_IsEqualTo(self, rhs)
def __eq__(self, rhs):
r"""__eq__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool"""
return _lldb.SBTypeSynthetic___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool"""
return _lldb.SBTypeSynthetic___ne__(self, rhs)
def __repr__(self):
r"""__repr__(SBTypeSynthetic self) -> std::string"""
return _lldb.SBTypeSynthetic___repr__(self)
options = property(GetOptions, SetOptions)
contains_code = property(IsClassCode, None)
synthetic_data = property(GetData, None)
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
return False
return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
def __ne__(self, rhs):
if not isinstance(rhs, type(self)):
return True
return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
# Register SBTypeSynthetic in _lldb:
_lldb.SBTypeSynthetic_swigregister(SBTypeSynthetic)
class SBUnixSignals(object):
r"""Allows you to manipulate LLDB's signal disposition"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBUnixSignals self) -> SBUnixSignals
__init__(SBUnixSignals self, SBUnixSignals rhs) -> SBUnixSignals
"""
_lldb.SBUnixSignals_swiginit(self, _lldb.new_SBUnixSignals(*args))
__swig_destroy__ = _lldb.delete_SBUnixSignals
def Clear(self):
r"""Clear(SBUnixSignals self)"""
return _lldb.SBUnixSignals_Clear(self)
def __nonzero__(self):
return _lldb.SBUnixSignals___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBUnixSignals self) -> bool"""
return _lldb.SBUnixSignals_IsValid(self)
def GetSignalAsCString(self, signo):
r"""GetSignalAsCString(SBUnixSignals self, int32_t signo) -> char const *"""
return _lldb.SBUnixSignals_GetSignalAsCString(self, signo)
def GetSignalNumberFromName(self, name):
r"""GetSignalNumberFromName(SBUnixSignals self, char const * name) -> int32_t"""
return _lldb.SBUnixSignals_GetSignalNumberFromName(self, name)
def GetShouldSuppress(self, signo):
r"""GetShouldSuppress(SBUnixSignals self, int32_t signo) -> bool"""
return _lldb.SBUnixSignals_GetShouldSuppress(self, signo)
def SetShouldSuppress(self, signo, value):
r"""SetShouldSuppress(SBUnixSignals self, int32_t signo, bool value) -> bool"""
return _lldb.SBUnixSignals_SetShouldSuppress(self, signo, value)
def GetShouldStop(self, signo):
r"""GetShouldStop(SBUnixSignals self, int32_t signo) -> bool"""
return _lldb.SBUnixSignals_GetShouldStop(self, signo)
def SetShouldStop(self, signo, value):
r"""SetShouldStop(SBUnixSignals self, int32_t signo, bool value) -> bool"""
return _lldb.SBUnixSignals_SetShouldStop(self, signo, value)
def GetShouldNotify(self, signo):
r"""GetShouldNotify(SBUnixSignals self, int32_t signo) -> bool"""
return _lldb.SBUnixSignals_GetShouldNotify(self, signo)
def SetShouldNotify(self, signo, value):
r"""SetShouldNotify(SBUnixSignals self, int32_t signo, bool value) -> bool"""
return _lldb.SBUnixSignals_SetShouldNotify(self, signo, value)
def GetNumSignals(self):
r"""GetNumSignals(SBUnixSignals self) -> int32_t"""
return _lldb.SBUnixSignals_GetNumSignals(self)
def GetSignalAtIndex(self, index):
r"""GetSignalAtIndex(SBUnixSignals self, int32_t index) -> int32_t"""
return _lldb.SBUnixSignals_GetSignalAtIndex(self, index)
def get_unix_signals_list(self):
signals = []
for idx in range(0, self.GetNumSignals()):
signals.append(self.GetSignalAtIndex(sig))
return signals
threads = property(get_unix_signals_list, None, doc='''A read only property that returns a list() of valid signal numbers for this platform.''')
# Register SBUnixSignals in _lldb:
_lldb.SBUnixSignals_swigregister(SBUnixSignals)
class SBValue(object):
r"""
Represents the value of a variable, a register, or an expression.
SBValue supports iteration through its child, which in turn is represented
as an SBValue. For example, we can get the general purpose registers of a
frame as an SBValue, and iterate through all the registers,::
registerSet = frame.registers # Returns an SBValueList.
for regs in registerSet:
if 'general purpose registers' in regs.name.lower():
GPRs = regs
break
print('%s (number of children = %d):' % (GPRs.name, GPRs.num_children))
for reg in GPRs:
print('Name: ', reg.name, ' Value: ', reg.value)
produces the output: ::
General Purpose Registers (number of children = 21):
Name: rax Value: 0x0000000100000c5c
Name: rbx Value: 0x0000000000000000
Name: rcx Value: 0x00007fff5fbffec0
Name: rdx Value: 0x00007fff5fbffeb8
Name: rdi Value: 0x0000000000000001
Name: rsi Value: 0x00007fff5fbffea8
Name: rbp Value: 0x00007fff5fbffe80
Name: rsp Value: 0x00007fff5fbffe60
Name: r8 Value: 0x0000000008668682
Name: r9 Value: 0x0000000000000000
Name: r10 Value: 0x0000000000001200
Name: r11 Value: 0x0000000000000206
Name: r12 Value: 0x0000000000000000
Name: r13 Value: 0x0000000000000000
Name: r14 Value: 0x0000000000000000
Name: r15 Value: 0x0000000000000000
Name: rip Value: 0x0000000100000dae
Name: rflags Value: 0x0000000000000206
Name: cs Value: 0x0000000000000027
Name: fs Value: 0x0000000000000010
Name: gs Value: 0x0000000000000048
See also linked_list_iter() for another perspective on how to iterate through an
SBValue instance which interprets the value object as representing the head of a
linked list.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBValue self) -> SBValue
__init__(SBValue self, SBValue rhs) -> SBValue
"""
_lldb.SBValue_swiginit(self, _lldb.new_SBValue(*args))
__swig_destroy__ = _lldb.delete_SBValue
def __nonzero__(self):
return _lldb.SBValue___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBValue self) -> bool"""
return _lldb.SBValue_IsValid(self)
def Clear(self):
r"""Clear(SBValue self)"""
return _lldb.SBValue_Clear(self)
def GetError(self):
r"""GetError(SBValue self) -> SBError"""
return _lldb.SBValue_GetError(self)
def GetID(self):
r"""GetID(SBValue self) -> lldb::user_id_t"""
return _lldb.SBValue_GetID(self)
def GetName(self):
r"""GetName(SBValue self) -> char const *"""
return _lldb.SBValue_GetName(self)
def GetTypeName(self):
r"""GetTypeName(SBValue self) -> char const *"""
return _lldb.SBValue_GetTypeName(self)
def GetDisplayTypeName(self):
r"""GetDisplayTypeName(SBValue self) -> char const *"""
return _lldb.SBValue_GetDisplayTypeName(self)
def GetByteSize(self):
r"""GetByteSize(SBValue self) -> size_t"""
return _lldb.SBValue_GetByteSize(self)
def IsInScope(self):
r"""IsInScope(SBValue self) -> bool"""
return _lldb.SBValue_IsInScope(self)
def GetFormat(self):
r"""GetFormat(SBValue self) -> lldb::Format"""
return _lldb.SBValue_GetFormat(self)
def SetFormat(self, format):
r"""SetFormat(SBValue self, lldb::Format format)"""
return _lldb.SBValue_SetFormat(self, format)
def GetValue(self):
r"""GetValue(SBValue self) -> char const *"""
return _lldb.SBValue_GetValue(self)
def GetValueAsSigned(self, *args):
r"""
GetValueAsSigned(SBValue self, SBError error, int64_t fail_value=0) -> int64_t
GetValueAsSigned(SBValue self, int64_t fail_value=0) -> int64_t
"""
return _lldb.SBValue_GetValueAsSigned(self, *args)
def GetValueAsUnsigned(self, *args):
r"""
GetValueAsUnsigned(SBValue self, SBError error, uint64_t fail_value=0) -> uint64_t
GetValueAsUnsigned(SBValue self, uint64_t fail_value=0) -> uint64_t
"""
return _lldb.SBValue_GetValueAsUnsigned(self, *args)
def GetValueType(self):
r"""GetValueType(SBValue self) -> lldb::ValueType"""
return _lldb.SBValue_GetValueType(self)
def GetValueDidChange(self):
r"""GetValueDidChange(SBValue self) -> bool"""
return _lldb.SBValue_GetValueDidChange(self)
def GetSummary(self, *args):
r"""
GetSummary(SBValue self) -> char const
GetSummary(SBValue self, SBStream stream, SBTypeSummaryOptions options) -> char const *
"""
return _lldb.SBValue_GetSummary(self, *args)
def GetObjectDescription(self):
r"""GetObjectDescription(SBValue self) -> char const *"""
return _lldb.SBValue_GetObjectDescription(self)
def GetDynamicValue(self, use_dynamic):
r"""GetDynamicValue(SBValue self, lldb::DynamicValueType use_dynamic) -> SBValue"""
return _lldb.SBValue_GetDynamicValue(self, use_dynamic)
def GetStaticValue(self):
r"""GetStaticValue(SBValue self) -> SBValue"""
return _lldb.SBValue_GetStaticValue(self)
def GetNonSyntheticValue(self):
r"""GetNonSyntheticValue(SBValue self) -> SBValue"""
return _lldb.SBValue_GetNonSyntheticValue(self)
def GetPreferDynamicValue(self):
r"""GetPreferDynamicValue(SBValue self) -> lldb::DynamicValueType"""
return _lldb.SBValue_GetPreferDynamicValue(self)
def SetPreferDynamicValue(self, use_dynamic):
r"""SetPreferDynamicValue(SBValue self, lldb::DynamicValueType use_dynamic)"""
return _lldb.SBValue_SetPreferDynamicValue(self, use_dynamic)
def GetPreferSyntheticValue(self):
r"""GetPreferSyntheticValue(SBValue self) -> bool"""
return _lldb.SBValue_GetPreferSyntheticValue(self)
def SetPreferSyntheticValue(self, use_synthetic):
r"""SetPreferSyntheticValue(SBValue self, bool use_synthetic)"""
return _lldb.SBValue_SetPreferSyntheticValue(self, use_synthetic)
def IsDynamic(self):
r"""IsDynamic(SBValue self) -> bool"""
return _lldb.SBValue_IsDynamic(self)
def IsSynthetic(self):
r"""IsSynthetic(SBValue self) -> bool"""
return _lldb.SBValue_IsSynthetic(self)
def IsSyntheticChildrenGenerated(self):
r"""IsSyntheticChildrenGenerated(SBValue self) -> bool"""
return _lldb.SBValue_IsSyntheticChildrenGenerated(self)
def SetSyntheticChildrenGenerated(self, arg2):
r"""SetSyntheticChildrenGenerated(SBValue self, bool arg2)"""
return _lldb.SBValue_SetSyntheticChildrenGenerated(self, arg2)
def GetLocation(self):
r"""GetLocation(SBValue self) -> char const *"""
return _lldb.SBValue_GetLocation(self)
def SetValueFromCString(self, *args):
r"""
SetValueFromCString(SBValue self, char const * value_str) -> bool
SetValueFromCString(SBValue self, char const * value_str, SBError error) -> bool
"""
return _lldb.SBValue_SetValueFromCString(self, *args)
def GetTypeFormat(self):
r"""GetTypeFormat(SBValue self) -> SBTypeFormat"""
return _lldb.SBValue_GetTypeFormat(self)
def GetTypeSummary(self):
r"""GetTypeSummary(SBValue self) -> SBTypeSummary"""
return _lldb.SBValue_GetTypeSummary(self)
def GetTypeFilter(self):
r"""GetTypeFilter(SBValue self) -> SBTypeFilter"""
return _lldb.SBValue_GetTypeFilter(self)
def GetTypeSynthetic(self):
r"""GetTypeSynthetic(SBValue self) -> SBTypeSynthetic"""
return _lldb.SBValue_GetTypeSynthetic(self)
def CreateChildAtOffset(self, name, offset, type):
r"""CreateChildAtOffset(SBValue self, char const * name, uint32_t offset, SBType type) -> SBValue"""
return _lldb.SBValue_CreateChildAtOffset(self, name, offset, type)
def Cast(self, type):
r"""Cast(SBValue self, SBType type) -> SBValue"""
return _lldb.SBValue_Cast(self, type)
def CreateValueFromExpression(self, *args):
r"""
CreateValueFromExpression(SBValue self, char const * name, char const * expression) -> SBValue
CreateValueFromExpression(SBValue self, char const * name, char const * expression, SBExpressionOptions options) -> SBValue
"""
return _lldb.SBValue_CreateValueFromExpression(self, *args)
def CreateValueFromAddress(self, name, address, type):
r"""CreateValueFromAddress(SBValue self, char const * name, lldb::addr_t address, SBType type) -> SBValue"""
return _lldb.SBValue_CreateValueFromAddress(self, name, address, type)
def CreateValueFromData(self, name, data, type):
r"""CreateValueFromData(SBValue self, char const * name, SBData data, SBType type) -> SBValue"""
return _lldb.SBValue_CreateValueFromData(self, name, data, type)
def GetChildAtIndex(self, *args):
r"""
GetChildAtIndex(SBValue self, uint32_t idx) -> SBValue
GetChildAtIndex(SBValue self, uint32_t idx, lldb::DynamicValueType use_dynamic, bool can_create_synthetic) -> SBValue
Get a child value by index from a value.
Structs, unions, classes, arrays and pointers have child
values that can be access by index.
Structs and unions access child members using a zero based index
for each child member. For
Classes reserve the first indexes for base classes that have
members (empty base classes are omitted), and all members of the
current class will then follow the base classes.
Pointers differ depending on what they point to. If the pointer
points to a simple type, the child at index zero
is the only child value available, unless synthetic_allowed
is true, in which case the pointer will be used as an array
and can create 'synthetic' child values using positive or
negative indexes. If the pointer points to an aggregate type
(an array, class, union, struct), then the pointee is
transparently skipped and any children are going to be the indexes
of the child values within the aggregate type. For example if
we have a 'Point' type and we have a SBValue that contains a
pointer to a 'Point' type, then the child at index zero will be
the 'x' member, and the child at index 1 will be the 'y' member
(the child at index zero won't be a 'Point' instance).
If you actually need an SBValue that represents the type pointed
to by a SBValue for which GetType().IsPointeeType() returns true,
regardless of the pointee type, you can do that with the SBValue.Dereference
method (or the equivalent deref property).
Arrays have a preset number of children that can be accessed by
index and will returns invalid child values for indexes that are
out of bounds unless the synthetic_allowed is true. In this
case the array can create 'synthetic' child values for indexes
that aren't in the array bounds using positive or negative
indexes.
@param[in] idx
The index of the child value to get
@param[in] use_dynamic
An enumeration that specifies whether to get dynamic values,
and also if the target can be run to figure out the dynamic
type of the child value.
@param[in] synthetic_allowed
If true, then allow child values to be created by index
for pointers and arrays for indexes that normally wouldn't
be allowed.
@return
A new SBValue object that represents the child member value.
"""
return _lldb.SBValue_GetChildAtIndex(self, *args)
def GetIndexOfChildWithName(self, name):
r"""
GetIndexOfChildWithName(SBValue self, char const * name) -> uint32_t
Returns the child member index.
Matches children of this object only and will match base classes and
member names if this is a clang typed object.
@param[in] name
The name of the child value to get
@return
An index to the child member value.
"""
return _lldb.SBValue_GetIndexOfChildWithName(self, name)
def GetChildMemberWithName(self, *args):
r"""
GetChildMemberWithName(SBValue self, char const * name) -> SBValue
GetChildMemberWithName(SBValue self, char const * name, lldb::DynamicValueType use_dynamic) -> SBValue
Returns the child member value.
Matches child members of this object and child members of any base
classes.
@param[in] name
The name of the child value to get
@param[in] use_dynamic
An enumeration that specifies whether to get dynamic values,
and also if the target can be run to figure out the dynamic
type of the child value.
@return
A new SBValue object that represents the child member value.
"""
return _lldb.SBValue_GetChildMemberWithName(self, *args)
def GetValueForExpressionPath(self, expr_path):
r"""
GetValueForExpressionPath(SBValue self, char const * expr_path) -> SBValue
Expands nested expressions like .a->b[0].c[1]->d.
"""
return _lldb.SBValue_GetValueForExpressionPath(self, expr_path)
def AddressOf(self):
r"""AddressOf(SBValue self) -> SBValue"""
return _lldb.SBValue_AddressOf(self)
def GetLoadAddress(self):
r"""GetLoadAddress(SBValue self) -> lldb::addr_t"""
return _lldb.SBValue_GetLoadAddress(self)
def GetAddress(self):
r"""GetAddress(SBValue self) -> SBAddress"""
return _lldb.SBValue_GetAddress(self)
def GetPointeeData(self, item_idx=0, item_count=1):
r"""
GetPointeeData(SBValue self, uint32_t item_idx=0, uint32_t item_count=1) -> SBData
Get an SBData wrapping what this SBValue points to.
This method will dereference the current SBValue, if its
data type is a ``T\*`` or ``T[]``, and extract ``item_count`` elements
of type ``T`` from it, copying their contents in an :py:class:`SBData`.
:param item_idx: The index of the first item to retrieve. For an array
this is equivalent to array[item_idx], for a pointer
to ``\*(pointer + item_idx)``. In either case, the measurement
unit for item_idx is the ``sizeof(T)`` rather than the byte
:param item_count: How many items should be copied into the output. By default
only one item is copied, but more can be asked for.
:return: The contents of the copied items on success. An empty :py:class:`SBData` otherwise.
:rtype: SBData
"""
return _lldb.SBValue_GetPointeeData(self, item_idx, item_count)
def GetData(self):
r"""
GetData(SBValue self) -> SBData
Get an SBData wrapping the contents of this SBValue.
This method will read the contents of this object in memory
and copy them into an SBData for future use.
@return
An SBData with the contents of this SBValue, on success.
An empty SBData otherwise.
"""
return _lldb.SBValue_GetData(self)
def SetData(self, data, error):
r"""SetData(SBValue self, SBData data, SBError error) -> bool"""
return _lldb.SBValue_SetData(self, data, error)
def Clone(self, new_name):
r"""Clone(SBValue self, char const * new_name) -> SBValue"""
return _lldb.SBValue_Clone(self, new_name)
def GetDeclaration(self):
r"""GetDeclaration(SBValue self) -> SBDeclaration"""
return _lldb.SBValue_GetDeclaration(self)
def MightHaveChildren(self):
r"""MightHaveChildren(SBValue self) -> bool"""
return _lldb.SBValue_MightHaveChildren(self)
def IsRuntimeSupportValue(self):
r"""IsRuntimeSupportValue(SBValue self) -> bool"""
return _lldb.SBValue_IsRuntimeSupportValue(self)
def GetNumChildren(self, *args):
r"""
GetNumChildren(SBValue self) -> uint32_t
GetNumChildren(SBValue self, uint32_t max) -> uint32_t
"""
return _lldb.SBValue_GetNumChildren(self, *args)
def GetOpaqueType(self):
r"""GetOpaqueType(SBValue self) -> void *"""
return _lldb.SBValue_GetOpaqueType(self)
def GetTarget(self):
r"""GetTarget(SBValue self) -> SBTarget"""
return _lldb.SBValue_GetTarget(self)
def GetProcess(self):
r"""GetProcess(SBValue self) -> SBProcess"""
return _lldb.SBValue_GetProcess(self)
def GetThread(self):
r"""GetThread(SBValue self) -> SBThread"""
return _lldb.SBValue_GetThread(self)
def GetFrame(self):
r"""GetFrame(SBValue self) -> SBFrame"""
return _lldb.SBValue_GetFrame(self)
def Dereference(self):
r"""Dereference(SBValue self) -> SBValue"""
return _lldb.SBValue_Dereference(self)
def TypeIsPointerType(self):
r"""TypeIsPointerType(SBValue self) -> bool"""
return _lldb.SBValue_TypeIsPointerType(self)
def GetType(self):
r"""GetType(SBValue self) -> SBType"""
return _lldb.SBValue_GetType(self)
def Persist(self):
r"""Persist(SBValue self) -> SBValue"""
return _lldb.SBValue_Persist(self)
def GetDescription(self, description):
r"""GetDescription(SBValue self, SBStream description) -> bool"""
return _lldb.SBValue_GetDescription(self, description)
def GetExpressionPath(self, *args):
r"""
GetExpressionPath(SBValue self, SBStream description) -> bool
GetExpressionPath(SBValue self, SBStream description, bool qualify_cxx_base_classes) -> bool
Returns an expression path for this value.
"""
return _lldb.SBValue_GetExpressionPath(self, *args)
def EvaluateExpression(self, *args):
r"""
EvaluateExpression(SBValue self, char const * expr) -> SBValue
EvaluateExpression(SBValue self, char const * expr, SBExpressionOptions options) -> SBValue
EvaluateExpression(SBValue self, char const * expr, SBExpressionOptions options, char const * name) -> SBValue
"""
return _lldb.SBValue_EvaluateExpression(self, *args)
def Watch(self, *args):
r"""
Watch(SBValue self, bool resolve_location, bool read, bool write, SBError error) -> SBWatchpoint
Watch(SBValue self, bool resolve_location, bool read, bool write) -> SBWatchpoint
Find and watch a variable.
It returns an SBWatchpoint, which may be invalid.
"""
return _lldb.SBValue_Watch(self, *args)
def WatchPointee(self, resolve_location, read, write, error):
r"""
WatchPointee(SBValue self, bool resolve_location, bool read, bool write, SBError error) -> SBWatchpoint
Find and watch the location pointed to by a variable.
It returns an SBWatchpoint, which may be invalid.
"""
return _lldb.SBValue_WatchPointee(self, resolve_location, read, write, error)
def GetVTable(self):
r"""GetVTable(SBValue self) -> SBValue"""
return _lldb.SBValue_GetVTable(self)
def __repr__(self):
r"""__repr__(SBValue self) -> std::string"""
return _lldb.SBValue___repr__(self)
def __get_dynamic__ (self):
'''Helper function for the "SBValue.dynamic" property.'''
return self.GetDynamicValue (eDynamicCanRunTarget)
class children_access(object):
'''A helper object that will lazily hand out thread for a process when supplied an index.'''
def __init__(self, sbvalue):
self.sbvalue = sbvalue
def __len__(self):
if self.sbvalue:
return int(self.sbvalue.GetNumChildren())
return 0
def __getitem__(self, key):
if isinstance(key, int):
count = len(self)
if -count <= key < count:
key %= count
return self.sbvalue.GetChildAtIndex(key)
return None
def get_child_access_object(self):
'''An accessor function that returns a children_access() object which allows lazy member variable access from a lldb.SBValue object.'''
return self.children_access (self)
def get_value_child_list(self):
'''An accessor function that returns a list() that contains all children in a lldb.SBValue object.'''
children = []
accessor = self.get_child_access_object()
for idx in range(len(accessor)):
children.append(accessor[idx])
return children
def __iter__(self):
'''Iterate over all child values of a lldb.SBValue object.'''
return lldb_iter(self, 'GetNumChildren', 'GetChildAtIndex')
def __len__(self):
'''Return the number of child values of a lldb.SBValue object.'''
return self.GetNumChildren()
children = property(get_value_child_list, None, doc='''A read only property that returns a list() of lldb.SBValue objects for the children of the value.''')
child = property(get_child_access_object, None, doc='''A read only property that returns an object that can access children of a variable by index (child_value = value.children[12]).''')
name = property(GetName, None, doc='''A read only property that returns the name of this value as a string.''')
type = property(GetType, None, doc='''A read only property that returns a lldb.SBType object that represents the type for this value.''')
size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this value.''')
is_in_scope = property(IsInScope, None, doc='''A read only property that returns a boolean value that indicates whether this value is currently lexically in scope.''')
format = property(GetName, SetFormat, doc='''A read/write property that gets/sets the format used for lldb.SBValue().GetValue() for this value. See enumerations that start with "lldb.eFormat".''')
value = property(GetValue, SetValueFromCString, doc='''A read/write property that gets/sets value from a string.''')
value_type = property(GetValueType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eValueType") that represents the type of this value (local, argument, global, register, etc.).''')
changed = property(GetValueDidChange, None, doc='''A read only property that returns a boolean value that indicates if this value has changed since it was last updated.''')
data = property(GetData, None, doc='''A read only property that returns an lldb object (lldb.SBData) that represents the bytes that make up the value for this object.''')
load_addr = property(GetLoadAddress, None, doc='''A read only property that returns the load address of this value as an integer.''')
addr = property(GetAddress, None, doc='''A read only property that returns an lldb.SBAddress that represents the address of this value if it is in memory.''')
deref = property(Dereference, None, doc='''A read only property that returns an lldb.SBValue that is created by dereferencing this value.''')
address_of = property(AddressOf, None, doc='''A read only property that returns an lldb.SBValue that represents the address-of this value.''')
error = property(GetError, None, doc='''A read only property that returns the lldb.SBError that represents the error from the last time the variable value was calculated.''')
summary = property(GetSummary, None, doc='''A read only property that returns the summary for this value as a string''')
description = property(GetObjectDescription, None, doc='''A read only property that returns the language-specific description of this value as a string''')
dynamic = property(__get_dynamic__, None, doc='''A read only property that returns an lldb.SBValue that is created by finding the dynamic type of this value.''')
location = property(GetLocation, None, doc='''A read only property that returns the location of this value as a string.''')
target = property(GetTarget, None, doc='''A read only property that returns the lldb.SBTarget that this value is associated with.''')
process = property(GetProcess, None, doc='''A read only property that returns the lldb.SBProcess that this value is associated with, the returned value might be invalid and should be tested.''')
thread = property(GetThread, None, doc='''A read only property that returns the lldb.SBThread that this value is associated with, the returned value might be invalid and should be tested.''')
frame = property(GetFrame, None, doc='''A read only property that returns the lldb.SBFrame that this value is associated with, the returned value might be invalid and should be tested.''')
num_children = property(GetNumChildren, None, doc='''A read only property that returns the number of child lldb.SBValues that this value has.''')
unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this SBValue as an usigned integer.''')
signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this SBValue as a signed integer.''')
def get_expr_path(self):
s = SBStream()
self.GetExpressionPath (s)
return s.GetData()
path = property(get_expr_path, None, doc='''A read only property that returns the expression path that one can use to reach this value in an expression.''')
def synthetic_child_from_expression(self, name, expr, options=None):
if options is None: options = lldb.SBExpressionOptions()
child = self.CreateValueFromExpression(name, expr, options)
child.SetSyntheticChildrenGenerated(True)
return child
def synthetic_child_from_data(self, name, data, type):
child = self.CreateValueFromData(name, data, type)
child.SetSyntheticChildrenGenerated(True)
return child
def synthetic_child_from_address(self, name, addr, type):
child = self.CreateValueFromAddress(name, addr, type)
child.SetSyntheticChildrenGenerated(True)
return child
def __eol_test(val):
"""Default function for end of list test takes an SBValue object.
Return True if val is invalid or it corresponds to a null pointer.
Otherwise, return False.
"""
if not val or val.GetValueAsUnsigned() == 0:
return True
else:
return False
# ==================================================
# Iterator for lldb.SBValue treated as a linked list
# ==================================================
def linked_list_iter(self, next_item_name, end_of_list_test=__eol_test):
"""Generator adaptor to support iteration for SBValue as a linked list.
linked_list_iter() is a special purpose iterator to treat the SBValue as
the head of a list data structure, where you specify the child member
name which points to the next item on the list and you specify the
end-of-list test function which takes an SBValue for an item and returns
True if EOL is reached and False if not.
linked_list_iter() also detects infinite loop and bails out early.
The end_of_list_test arg, if omitted, defaults to the __eol_test
function above.
For example,
# Get Frame #0.
...
# Get variable 'task_head'.
task_head = frame0.FindVariable('task_head')
...
for t in task_head.linked_list_iter('next'):
print t
"""
if end_of_list_test(self):
return
item = self
visited = set()
try:
while not end_of_list_test(item) and not item.GetValueAsUnsigned() in visited:
visited.add(item.GetValueAsUnsigned())
yield item
# Prepare for the next iteration.
item = item.GetChildMemberWithName(next_item_name)
except:
# Exception occurred. Stop the generator.
pass
return
# Register SBValue in _lldb:
_lldb.SBValue_swigregister(SBValue)
class SBValueList(object):
r"""
Represents a collection of SBValues. Both :py:class:`SBFrame.GetVariables()` and
:py:class:`SBFrame.GetRegisters()` return a SBValueList.
SBValueList supports :py:class:`SBValue` iteration. For example (from test/lldbutil.py),::
def get_registers(frame, kind):
'''Returns the registers given the frame and the kind of registers desired.
Returns None if there's no such kind.
'''
registerSet = frame.GetRegisters() # Return type of SBValueList.
for value in registerSet:
if kind.lower() in value.GetName().lower():
return value
return None
def get_GPRs(frame):
'''Returns the general purpose registers of the frame as an SBValue.
The returned SBValue object is iterable. An example:
...
from lldbutil import get_GPRs
regs = get_GPRs(frame)
for reg in regs:
print('%s => %s' % (reg.GetName(), reg.GetValue()))
...
'''
return get_registers(frame, 'general purpose')
def get_FPRs(frame):
'''Returns the floating point registers of the frame as an SBValue.
The returned SBValue object is iterable. An example:
...
from lldbutil import get_FPRs
regs = get_FPRs(frame)
for reg in regs:
print('%s => %s' % (reg.GetName(), reg.GetValue()))
...
'''
return get_registers(frame, 'floating point')
def get_ESRs(frame):
'''Returns the exception state registers of the frame as an SBValue.
The returned SBValue object is iterable. An example:
...
from lldbutil import get_ESRs
regs = get_ESRs(frame)
for reg in regs:
print('%s => %s' % (reg.GetName(), reg.GetValue()))
...
'''
return get_registers(frame, 'exception state')
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBValueList self) -> SBValueList
__init__(SBValueList self, SBValueList rhs) -> SBValueList
"""
_lldb.SBValueList_swiginit(self, _lldb.new_SBValueList(*args))
__swig_destroy__ = _lldb.delete_SBValueList
def __nonzero__(self):
return _lldb.SBValueList___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBValueList self) -> bool"""
return _lldb.SBValueList_IsValid(self)
def Clear(self):
r"""Clear(SBValueList self)"""
return _lldb.SBValueList_Clear(self)
def Append(self, *args):
r"""
Append(SBValueList self, SBValue val_obj)
Append(SBValueList self, SBValueList value_list)
"""
return _lldb.SBValueList_Append(self, *args)
def GetSize(self):
r"""GetSize(SBValueList self) -> uint32_t"""
return _lldb.SBValueList_GetSize(self)
def GetValueAtIndex(self, idx):
r"""GetValueAtIndex(SBValueList self, uint32_t idx) -> SBValue"""
return _lldb.SBValueList_GetValueAtIndex(self, idx)
def GetFirstValueByName(self, name):
r"""GetFirstValueByName(SBValueList self, char const * name) -> SBValue"""
return _lldb.SBValueList_GetFirstValueByName(self, name)
def FindValueObjectByUID(self, uid):
r"""FindValueObjectByUID(SBValueList self, lldb::user_id_t uid) -> SBValue"""
return _lldb.SBValueList_FindValueObjectByUID(self, uid)
def GetError(self):
r"""GetError(SBValueList self) -> SBError"""
return _lldb.SBValueList_GetError(self)
def __str__(self):
r"""__str__(SBValueList self) -> std::string"""
return _lldb.SBValueList___str__(self)
def __iter__(self):
'''Iterate over all values in a lldb.SBValueList object.'''
return lldb_iter(self, 'GetSize', 'GetValueAtIndex')
def __len__(self):
return int(self.GetSize())
def __getitem__(self, key):
count = len(self)
#------------------------------------------------------------
# Access with "int" to get Nth item in the list
#------------------------------------------------------------
if type(key) is int:
if -count <= key < count:
key %= count
return self.GetValueAtIndex(key)
#------------------------------------------------------------
# Access with "str" to get values by name
#------------------------------------------------------------
elif type(key) is str:
matches = []
for idx in range(count):
value = self.GetValueAtIndex(idx)
if value.name == key:
matches.append(value)
return matches
#------------------------------------------------------------
# Match with regex
#------------------------------------------------------------
elif isinstance(key, type(re.compile('.'))):
matches = []
for idx in range(count):
value = self.GetValueAtIndex(idx)
re_match = key.search(value.name)
if re_match:
matches.append(value)
return matches
# Register SBValueList in _lldb:
_lldb.SBValueList_swigregister(SBValueList)
class SBVariablesOptions(object):
r"""Describes which variables should be returned from :py:class:`SBFrame.GetVariables`."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBVariablesOptions self) -> SBVariablesOptions
__init__(SBVariablesOptions self, SBVariablesOptions options) -> SBVariablesOptions
"""
_lldb.SBVariablesOptions_swiginit(self, _lldb.new_SBVariablesOptions(*args))
__swig_destroy__ = _lldb.delete_SBVariablesOptions
def __nonzero__(self):
return _lldb.SBVariablesOptions___nonzero__(self)
__bool__ = __nonzero__
def IsValid(self):
r"""IsValid(SBVariablesOptions self) -> bool"""
return _lldb.SBVariablesOptions_IsValid(self)
def GetIncludeArguments(self):
r"""GetIncludeArguments(SBVariablesOptions self) -> bool"""
return _lldb.SBVariablesOptions_GetIncludeArguments(self)
def SetIncludeArguments(self, arg2):
r"""SetIncludeArguments(SBVariablesOptions self, bool arg2)"""
return _lldb.SBVariablesOptions_SetIncludeArguments(self, arg2)
def GetIncludeRecognizedArguments(self, arg2):
r"""GetIncludeRecognizedArguments(SBVariablesOptions self, SBTarget arg2) -> bool"""
return _lldb.SBVariablesOptions_GetIncludeRecognizedArguments(self, arg2)
def SetIncludeRecognizedArguments(self, arg2):
r"""SetIncludeRecognizedArguments(SBVariablesOptions self, bool arg2)"""
return _lldb.SBVariablesOptions_SetIncludeRecognizedArguments(self, arg2)
def GetIncludeLocals(self):
r"""GetIncludeLocals(SBVariablesOptions self) -> bool"""
return _lldb.SBVariablesOptions_GetIncludeLocals(self)
def SetIncludeLocals(self, arg2):
r"""SetIncludeLocals(SBVariablesOptions self, bool arg2)"""
return _lldb.SBVariablesOptions_SetIncludeLocals(self, arg2)
def GetIncludeStatics(self):
r"""GetIncludeStatics(SBVariablesOptions self) -> bool"""
return _lldb.SBVariablesOptions_GetIncludeStatics(self)
def SetIncludeStatics(self, arg2):
r"""SetIncludeStatics(SBVariablesOptions self, bool arg2)"""
return _lldb.SBVariablesOptions_SetIncludeStatics(self, arg2)
def GetInScopeOnly(self):
r"""GetInScopeOnly(SBVariablesOptions self) -> bool"""
return _lldb.SBVariablesOptions_GetInScopeOnly(self)
def SetInScopeOnly(self, arg2):
r"""SetInScopeOnly(SBVariablesOptions self, bool arg2)"""
return _lldb.SBVariablesOptions_SetInScopeOnly(self, arg2)
def GetIncludeRuntimeSupportValues(self):
r"""GetIncludeRuntimeSupportValues(SBVariablesOptions self) -> bool"""
return _lldb.SBVariablesOptions_GetIncludeRuntimeSupportValues(self)
def SetIncludeRuntimeSupportValues(self, arg2):
r"""SetIncludeRuntimeSupportValues(SBVariablesOptions self, bool arg2)"""
return _lldb.SBVariablesOptions_SetIncludeRuntimeSupportValues(self, arg2)
def GetUseDynamic(self):
r"""GetUseDynamic(SBVariablesOptions self) -> lldb::DynamicValueType"""
return _lldb.SBVariablesOptions_GetUseDynamic(self)
def SetUseDynamic(self, arg2):
r"""SetUseDynamic(SBVariablesOptions self, lldb::DynamicValueType arg2)"""
return _lldb.SBVariablesOptions_SetUseDynamic(self, arg2)
# Register SBVariablesOptions in _lldb:
_lldb.SBVariablesOptions_swigregister(SBVariablesOptions)
class SBWatchpoint(object):
r"""
Represents an instance of watchpoint for a specific target program.
A watchpoint is determined by the address and the byte size that resulted in
this particular instantiation. Each watchpoint has its settable options.
See also :py:class:`SBTarget.watchpoint_iter()` for example usage of iterating through the
watchpoints of the target.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args):
r"""
__init__(SBWatchpoint self) -> SBWatchpoint
__init__(SBWatchpoint self, SBWatchpoint rhs) -> SBWatchpoint
"""
_lldb.SBWatchpoint_swiginit(self, _lldb.new_SBWatchpoint(*args))
__swig_destroy__ = _lldb.delete_SBWatchpoint
def __nonzero__(self):
return _lldb.SBWatchpoint___nonzero__(self)
__bool__ = __nonzero__
def __eq__(self, rhs):
r"""__eq__(SBWatchpoint self, SBWatchpoint rhs) -> bool"""
return _lldb.SBWatchpoint___eq__(self, rhs)
def __ne__(self, rhs):
r"""__ne__(SBWatchpoint self, SBWatchpoint rhs) -> bool"""
return _lldb.SBWatchpoint___ne__(self, rhs)
def IsValid(self):
r"""IsValid(SBWatchpoint self) -> bool"""
return _lldb.SBWatchpoint_IsValid(self)
def GetError(self):
r"""GetError(SBWatchpoint self) -> SBError"""
return _lldb.SBWatchpoint_GetError(self)
def GetID(self):
r"""GetID(SBWatchpoint self) -> lldb::watch_id_t"""
return _lldb.SBWatchpoint_GetID(self)
def GetHardwareIndex(self):
r"""
GetHardwareIndex(SBWatchpoint self) -> int32_t
With -1 representing an invalid hardware index.
"""
return _lldb.SBWatchpoint_GetHardwareIndex(self)
def GetWatchAddress(self):
r"""GetWatchAddress(SBWatchpoint self) -> lldb::addr_t"""
return _lldb.SBWatchpoint_GetWatchAddress(self)
def GetWatchSize(self):
r"""GetWatchSize(SBWatchpoint self) -> size_t"""
return _lldb.SBWatchpoint_GetWatchSize(self)
def SetEnabled(self, enabled):
r"""SetEnabled(SBWatchpoint self, bool enabled)"""
return _lldb.SBWatchpoint_SetEnabled(self, enabled)
def IsEnabled(self):
r"""IsEnabled(SBWatchpoint self) -> bool"""
return _lldb.SBWatchpoint_IsEnabled(self)
def GetHitCount(self):
r"""GetHitCount(SBWatchpoint self) -> uint32_t"""
return _lldb.SBWatchpoint_GetHitCount(self)
def GetIgnoreCount(self):
r"""GetIgnoreCount(SBWatchpoint self) -> uint32_t"""
return _lldb.SBWatchpoint_GetIgnoreCount(self)
def SetIgnoreCount(self, n):
r"""SetIgnoreCount(SBWatchpoint self, uint32_t n)"""
return _lldb.SBWatchpoint_SetIgnoreCount(self, n)
def GetCondition(self):
r"""
GetCondition(SBWatchpoint self) -> char const *
Get the condition expression for the watchpoint.
"""
return _lldb.SBWatchpoint_GetCondition(self)
def SetCondition(self, condition):
r"""
SetCondition(SBWatchpoint self, char const * condition)
The watchpoint stops only if the condition expression evaluates to true.
"""
return _lldb.SBWatchpoint_SetCondition(self, condition)
def GetDescription(self, description, level):
r"""GetDescription(SBWatchpoint self, SBStream description, lldb::DescriptionLevel level) -> bool"""
return _lldb.SBWatchpoint_GetDescription(self, description, level)
def Clear(self):
r"""Clear(SBWatchpoint self)"""
return _lldb.SBWatchpoint_Clear(self)
@staticmethod
def EventIsWatchpointEvent(event):
r"""EventIsWatchpointEvent(SBEvent event) -> bool"""
return _lldb.SBWatchpoint_EventIsWatchpointEvent(event)
@staticmethod
def GetWatchpointEventTypeFromEvent(event):
r"""GetWatchpointEventTypeFromEvent(SBEvent event) -> lldb::WatchpointEventType"""
return _lldb.SBWatchpoint_GetWatchpointEventTypeFromEvent(event)
@staticmethod
def GetWatchpointFromEvent(event):
r"""GetWatchpointFromEvent(SBEvent event) -> SBWatchpoint"""
return _lldb.SBWatchpoint_GetWatchpointFromEvent(event)
def GetType(self):
r"""
GetType(SBWatchpoint self) -> SBType
Returns the type recorded when the watchpoint was created. For variable
watchpoints it is the type of the watched variable. For expression
watchpoints it is the type of the provided expression.
"""
return _lldb.SBWatchpoint_GetType(self)
def GetWatchValueKind(self):
r"""
GetWatchValueKind(SBWatchpoint self) -> lldb::WatchpointValueKind
Returns the kind of value that was watched when the watchpoint was created.
Returns one of the following eWatchPointValueKindVariable,
eWatchPointValueKindExpression, eWatchPointValueKindInvalid.
"""
return _lldb.SBWatchpoint_GetWatchValueKind(self)
def GetWatchSpec(self):
r"""
GetWatchSpec(SBWatchpoint self) -> char const *
Get the spec for the watchpoint. For variable watchpoints this is the name
of the variable. For expression watchpoints it is empty
(may change in the future).
"""
return _lldb.SBWatchpoint_GetWatchSpec(self)
def IsWatchingReads(self):
r"""
IsWatchingReads(SBWatchpoint self) -> bool
Returns true if the watchpoint is watching reads. Returns false otherwise.
"""
return _lldb.SBWatchpoint_IsWatchingReads(self)
def IsWatchingWrites(self):
r"""
IsWatchingWrites(SBWatchpoint self) -> bool
Returns true if the watchpoint is watching writes. Returns false otherwise.
"""
return _lldb.SBWatchpoint_IsWatchingWrites(self)
def __repr__(self):
r"""__repr__(SBWatchpoint self) -> std::string"""
return _lldb.SBWatchpoint___repr__(self)
# Register SBWatchpoint in _lldb:
_lldb.SBWatchpoint_swigregister(SBWatchpoint)
class SBWatchpointOptions(object):
r"""A container for options to use when creating watchpoints."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(SBWatchpointOptions self) -> SBWatchpointOptions
__init__(SBWatchpointOptions self, SBWatchpointOptions rhs) -> SBWatchpointOptions
"""
_lldb.SBWatchpointOptions_swiginit(self, _lldb.new_SBWatchpointOptions(*args))
__swig_destroy__ = _lldb.delete_SBWatchpointOptions
def SetWatchpointTypeRead(self, read):
r"""
SetWatchpointTypeRead(SBWatchpointOptions self, bool read)
Sets whether the watchpoint should stop on read accesses.
"""
return _lldb.SBWatchpointOptions_SetWatchpointTypeRead(self, read)
def GetWatchpointTypeRead(self):
r"""
GetWatchpointTypeRead(SBWatchpointOptions self) -> bool
Gets whether the watchpoint should stop on read accesses.
"""
return _lldb.SBWatchpointOptions_GetWatchpointTypeRead(self)
def SetWatchpointTypeWrite(self, write_type):
r"""
SetWatchpointTypeWrite(SBWatchpointOptions self, lldb::WatchpointWriteType write_type)
Sets whether the watchpoint should stop on write accesses. eWatchpointWriteTypeOnModify is the most commonly useful mode, where lldb will stop when the watched value has changed. eWatchpointWriteTypeAlways will stop on any write to the watched region, even if it's the value is the same.
"""
return _lldb.SBWatchpointOptions_SetWatchpointTypeWrite(self, write_type)
def GetWatchpointTypeWrite(self):
r"""
GetWatchpointTypeWrite(SBWatchpointOptions self) -> lldb::WatchpointWriteType
Gets whether the watchpoint should stop on write accesses, returning WatchpointWriteType to indicate the type of write watching that is enabled, or eWatchpointWriteTypeDisabled.
"""
return _lldb.SBWatchpointOptions_GetWatchpointTypeWrite(self)
# Register SBWatchpointOptions in _lldb:
_lldb.SBWatchpointOptions_swigregister(SBWatchpointOptions)
# ==================================
# Helper function for SBModule class
# ==================================
def in_range(symbol, section):
"""Test whether a symbol is within the range of a section."""
symSA = symbol.GetStartAddress().GetFileAddress()
symEA = symbol.GetEndAddress().GetFileAddress()
secSA = section.GetFileAddress()
secEA = secSA + section.GetByteSize()
if symEA != LLDB_INVALID_ADDRESS:
if secSA <= symSA and symEA <= secEA:
return True
else:
return False
else:
if secSA <= symSA and symSA < secEA:
return True
else:
return False
def command(command_name=None, doc=None):
import lldb
"""A decorator function that registers an LLDB command line
command that is bound to the function it is attached to."""
def callable(function):
"""Registers an lldb command for the decorated function."""
command = "command script add -f %s.%s %s" % (function.__module__, function.__name__, command_name or function.__name__)
lldb.debugger.HandleCommand(command)
if doc:
function.__doc__ = doc
return function
return callable
class declaration(object):
'''A class that represents a source declaration location with file, line and column.'''
def __init__(self, file, line, col):
self.file = file
self.line = line
self.col = col
class value_iter(object):
'''Allows iterating over the children of an :py:class:`SBValue`.'''
def __iter__(self):
return self
def __next__(self):
if self.index >= self.length:
raise StopIteration()
child_sbvalue = self.sbvalue.GetChildAtIndex(self.index)
self.index += 1
return value(child_sbvalue)
def next(self):
return self.__next__()
def __init__(self,value):
self.index = 0
self.sbvalue = value
if type(self.sbvalue) is value:
self.sbvalue = self.sbvalue.sbvalue
self.length = self.sbvalue.GetNumChildren()
class value(object):
'''Wraps :py:class:`SBValue` objects so the resulting object can be used as a variable would be in code.
So if you have a Point structure variable in your code in the current frame named "pt",
you can initialize an instance of this class with it: ::
pt = lldb.value(lldb.frame.FindVariable("pt"))
print pt
print pt.x
print pt.y
pt = lldb.value(lldb.frame.FindVariable("rectangle_array"))
print rectangle_array[12]
print rectangle_array[5].origin.x'''
def __init__(self, sbvalue):
self.sbvalue = sbvalue
def __nonzero__(self):
return self.sbvalue.__nonzero__()
def __bool__(self):
return self.sbvalue.__bool__()
def __str__(self):
return self.sbvalue.__str__()
def __getitem__(self, key):
# Allow array access if this value has children...
if type(key) is value:
key = int(key)
if type(key) is int:
child_sbvalue = (self.sbvalue.GetValueForExpressionPath("[%i]" % key))
if child_sbvalue and child_sbvalue.IsValid():
return value(child_sbvalue)
raise IndexError("Index '%d' is out of range" % key)
raise TypeError("No array item of type %s" % str(type(key)))
def __iter__(self):
return value_iter(self.sbvalue)
def __getattr__(self, name):
child_sbvalue = self.sbvalue.GetChildMemberWithName (name)
if child_sbvalue and child_sbvalue.IsValid():
return value(child_sbvalue)
raise AttributeError("Attribute '%s' is not defined" % name)
def __add__(self, other):
return int(self) + int(other)
def __sub__(self, other):
return int(self) - int(other)
def __mul__(self, other):
return int(self) * int(other)
def __floordiv__(self, other):
return int(self) // int(other)
def __mod__(self, other):
return int(self) % int(other)
def __divmod__(self, other):
return int(self) % int(other)
def __pow__(self, other):
return int(self) ** int(other)
def __lshift__(self, other):
return int(self) << int(other)
def __rshift__(self, other):
return int(self) >> int(other)
def __and__(self, other):
return int(self) & int(other)
def __xor__(self, other):
return int(self) ^ int(other)
def __or__(self, other):
return int(self) | int(other)
def __div__(self, other):
return int(self) / int(other)
def __truediv__(self, other):
return int(self) / int(other)
def __iadd__(self, other):
result = self.__add__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __isub__(self, other):
result = self.__sub__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __imul__(self, other):
result = self.__mul__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __idiv__(self, other):
result = self.__div__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __itruediv__(self, other):
result = self.__truediv__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __ifloordiv__(self, other):
result = self.__floordiv__(self, other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __imod__(self, other):
result = self.__and__(self, other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __ipow__(self, other):
result = self.__pow__(self, other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __ipow__(self, other, modulo):
result = self.__pow__(self, other, modulo)
self.sbvalue.SetValueFromCString (str(result))
return result
def __ilshift__(self, other):
result = self.__lshift__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __irshift__(self, other):
result = self.__rshift__(other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __iand__(self, other):
result = self.__and__(self, other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __ixor__(self, other):
result = self.__xor__(self, other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __ior__(self, other):
result = self.__ior__(self, other)
self.sbvalue.SetValueFromCString (str(result))
return result
def __neg__(self):
return -int(self)
def __pos__(self):
return +int(self)
def __abs__(self):
return abs(int(self))
def __invert__(self):
return ~int(self)
def __complex__(self):
return complex (int(self))
def __int__(self):
is_num,is_sign = is_numeric_type(self.sbvalue.GetType().GetCanonicalType().GetBasicType())
if is_num and not is_sign: return self.sbvalue.GetValueAsUnsigned()
return self.sbvalue.GetValueAsSigned()
def __long__(self):
return self.__int__()
def __float__(self):
return float (self.sbvalue.GetValueAsSigned())
def __oct__(self):
return '0%o' % self.sbvalue.GetValueAsUnsigned()
def __hex__(self):
return '0x%x' % self.sbvalue.GetValueAsUnsigned()
def __len__(self):
return self.sbvalue.GetNumChildren()
def __eq__(self, other):
if type(other) is int:
return int(self) == other
elif type(other) is str:
return str(self) == other
elif type(other) is value:
self_err = SBError()
other_err = SBError()
self_val = self.sbvalue.GetValueAsUnsigned(self_err)
if self_err.fail:
raise ValueError("unable to extract value of self")
other_val = other.sbvalue.GetValueAsUnsigned(other_err)
if other_err.fail:
raise ValueError("unable to extract value of other")
return self_val == other_val
raise TypeError("Unknown type %s, No equality operation defined." % str(type(other)))
def __ne__(self, other):
return not self.__eq__(other)
class SBSyntheticValueProvider(object):
def __init__(self,valobj):
pass
def num_children(self):
return 0
def get_child_index(self,name):
return None
def get_child_at_index(self,idx):
return None
def update(self):
pass
def has_children(self):
return False
# given an lldb.SBBasicType it returns a tuple
# (is_numeric, is_signed)
# the value of is_signed is undefined if is_numeric == false
def is_numeric_type(basic_type):
if basic_type == eBasicTypeInvalid: return (False,False)
if basic_type == eBasicTypeVoid: return (False,False)
if basic_type == eBasicTypeChar: return (True,False)
if basic_type == eBasicTypeSignedChar: return (True,True)
if basic_type == eBasicTypeUnsignedChar: return (True,False)
if basic_type == eBasicTypeWChar: return (True,False)
if basic_type == eBasicTypeSignedWChar: return (True,True)
if basic_type == eBasicTypeUnsignedWChar: return (True,False)
if basic_type == eBasicTypeChar16: return (True,False)
if basic_type == eBasicTypeChar32: return (True,False)
if basic_type == eBasicTypeChar8: return (True,False)
if basic_type == eBasicTypeShort: return (True,True)
if basic_type == eBasicTypeUnsignedShort: return (True,False)
if basic_type == eBasicTypeInt: return (True,True)
if basic_type == eBasicTypeUnsignedInt: return (True,False)
if basic_type == eBasicTypeLong: return (True,True)
if basic_type == eBasicTypeUnsignedLong: return (True,False)
if basic_type == eBasicTypeLongLong: return (True,True)
if basic_type == eBasicTypeUnsignedLongLong: return (True,False)
if basic_type == eBasicTypeInt128: return (True,True)
if basic_type == eBasicTypeUnsignedInt128: return (True,False)
if basic_type == eBasicTypeBool: return (False,False)
if basic_type == eBasicTypeHalf: return (True,True)
if basic_type == eBasicTypeFloat: return (True,True)
if basic_type == eBasicTypeDouble: return (True,True)
if basic_type == eBasicTypeLongDouble: return (True,True)
if basic_type == eBasicTypeFloatComplex: return (True,True)
if basic_type == eBasicTypeDoubleComplex: return (True,True)
if basic_type == eBasicTypeLongDoubleComplex: return (True,True)
if basic_type == eBasicTypeObjCID: return (False,False)
if basic_type == eBasicTypeObjCClass: return (False,False)
if basic_type == eBasicTypeObjCSel: return (False,False)
if basic_type == eBasicTypeNullPtr: return (False,False)
#if basic_type == eBasicTypeOther:
return (False,False)
debugger_unique_id = 0
SBDebugger.Initialize()
debugger = None
target = None
process = None
thread = None
frame = None
|