jdwp.spec 134.9 KB
Newer Older
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
/*
 * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

JDWP "Java(tm) Debug Wire Protocol"
(CommandSet VirtualMachine=1
    (Command Version=1 
        "Returns the JDWP version implemented by the target VM. "
	"The version string format is implementation dependent. "
	(Out 
        )
        (Reply 
	    (string description "Text information on the VM version")
	    (int    jdwpMajor   "Major JDWP Version number")
	    (int    jdwpMinor   "Minor JDWP Version number")
	    (string vmVersion   "Target VM JRE version, as in the java.version property")
	    (string vmName      "Target VM name, as in the java.vm.name property")
        )
        (ErrorSet
            (Error VM_DEAD)   
        )
    )
    (Command ClassesBySignature=2
        "Returns reference types for all the classes loaded by the target VM "
	"which match the given signature. "
	"Multple reference types will be returned if two or more class "
	"loaders have loaded a class of the same name. "
	"The search is confined to loaded classes only; no attempt is made "
	"to load a class of the given signature. "
	(Out
	    (string signature "JNI signature of the class to find "
	                      "(for example, \"Ljava/lang/String;\"). "
            )
        )
        (Reply 
            (Repeat classes "Number of reference types that follow." 
                (Group ClassInfo
                    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
		                      "of following reference type. ")
                    (referenceTypeID typeID "Matching loaded reference type")
                    (int status "The current class "
		                "<a href=\"#JDWP_ClassStatus\">status.</a> ")
                )
            )
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command AllClasses=3
        "Returns reference types for all classes currently loaded by the "
	"target VM."
	(Out 
        )
        (Reply 
            (Repeat classes "Number of reference types that follow." 
                (Group ClassInfo
                    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
		                      "of following reference type. ")
                    (referenceTypeID typeID "Loaded reference type")
                    (string signature 
                                "The JNI signature of the loaded reference type")
                    (int status "The current class "
		                "<a href=\"#JDWP_ClassStatus\">status.</a> ")
                )
            )
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command AllThreads=4
        "Returns all threads currently running in the target VM . "
	"The returned list contains threads created through "
	"java.lang.Thread, all native threads attached to "
	"the target VM through JNI, and system threads created "
	"by the target VM. Threads that have not yet been started "
	"and threads that have completed their execution are not "
	"included in the returned list. "
        (Out
        )
        (Reply
            (Repeat threads "Number of threads that follow." 
                (threadObject thread "A running thread")
            )
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command TopLevelThreadGroups=5
        "Returns all thread groups that do not have a parent. This command "
	"may be used as the first step in building a tree (or trees) of the "
	"existing thread groups."
        (Out
        )
        (Reply
            (Repeat groups "Number of thread groups that follow." 
                (threadGroupObject group "A top level thread group")
            )
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command Dispose=6
	"Invalidates this virtual machine mirror. "
	"The communication channel to the target VM is closed, and "
	"the target VM prepares to accept another subsequent connection "
	"from this debugger or another debugger, including the "
	"following tasks: "
	"<ul>"
	"<li>All event requests are cancelled. "
	"<li>All threads suspended by the thread-level "
	"<a href=\"#JDWP_ThreadReference_Resume\">resume</a> command "
	"or the VM-level "
	"<a href=\"#JDWP_VirtualMachine_Resume\">resume</a> command "
	"are resumed as many times as necessary for them to run. "
	"<li>Garbage collection is re-enabled in all cases where it was "
	"<a href=\"#JDWP_ObjectReference_DisableCollection\">disabled</a> "
	"</ul>"
	"Any current method invocations executing in the target VM "
	"are continued after the disconnection. Upon completion of any such "
	"method invocation, the invoking thread continues from the "
	"location where it was originally stopped. "
	"<p>"
	"Resources originating in  "
	"this VirtualMachine (ObjectReferences, ReferenceTypes, etc.) "
	"will become invalid. "
        (Out
        )
        (Reply
        )
        (ErrorSet
        )
    )
    (Command IDSizes=7
        "Returns the sizes of variably-sized data types in the target VM."
	"The returned values indicate the number of bytes used by the "
	"identifiers in command and reply packets."
        (Out
        )
        (Reply
            (int fieldIDSize "fieldID size in bytes ")
            (int methodIDSize "methodID size in bytes ")
            (int objectIDSize "objectID size in bytes ")
            (int referenceTypeIDSize "referenceTypeID size in bytes ")
            (int frameIDSize "frameID size in bytes ")
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command Suspend=8
	"Suspends the execution of the application running in the target "
	"VM. All Java threads currently running will be suspended. "
	"<p>"
	"Unlike java.lang.Thread.suspend, "
	"suspends of both the virtual machine and individual threads are "
	"counted. Before a thread will run again, it must be resumed through "
	"the <a href=\"#JDWP_VirtualMachine_Resume\">VM-level resume</a> command "
	"or the <a href=\"#JDWP_ThreadReference_Resume\">thread-level resume</a> command "
	"the same number of times it has been suspended. "
        (Out
        )
        (Reply
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command Resume=9
        "Resumes execution of the application after the suspend "
        "command or an event has stopped it. "
	"Suspensions of the Virtual Machine and individual threads are "
	"counted. If a particular thread is suspended n times, it must "
	"resumed n times before it will continue. "
        (Out
        )
        (Reply
        )
        (ErrorSet
        )
    )
    (Command Exit=10
        "Terminates the target VM with the given exit code. "
        "On some platforms, the exit code might be truncated, for "
        "example, to the low order 8 bits. "
	"All ids previously returned from the target VM become invalid. "
	"Threads running in the VM are abruptly terminated. "
	"A thread death exception is not thrown and "
	"finally blocks are not run."
        (Out
            (int exitCode "the exit code")
        )
        (Reply
        )
        (ErrorSet
        )
    )
    (Command CreateString=11
        "Creates a new string object in the target VM and returns "
	"its id. " 
        (Out
	    (string utf "UTF-8 characters to use in the created string. ")
        )
        (Reply
            (stringObject stringObject 
                "Created string (instance of java.lang.String) ")
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command Capabilities=12
        "Retrieve this VM's capabilities. The capabilities are returned "
	"as booleans, each indicating the presence or absence of a "
	"capability. The commands associated with each capability will "
	"return the NOT_IMPLEMENTED error if the cabability is not "
	"available."
        (Out
        )
        (Reply
            (boolean canWatchFieldModification 
	             "Can the VM watch field modification, and therefore "
		     "can it send the Modification Watchpoint Event?")
            (boolean canWatchFieldAccess 
	             "Can the VM watch field access, and therefore "
		     "can it send the Access Watchpoint Event?")
            (boolean canGetBytecodes 
	             "Can the VM get the bytecodes of a given method? ")
            (boolean canGetSyntheticAttribute 
	             "Can the VM determine whether a field or method is "
		     "synthetic? (that is, can the VM determine if the "
		     "method or the field was invented by the compiler?) ")
            (boolean canGetOwnedMonitorInfo 
	             "Can the VM get the owned monitors infornation for "
		     "a thread?")
            (boolean canGetCurrentContendedMonitor 
	             "Can the VM get the current contended monitor of a thread?")
            (boolean canGetMonitorInfo 
	             "Can the VM get the monitor information for a given object? ")
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command ClassPaths=13
        "Retrieve the classpath and bootclasspath of the target VM. "
	"If the classpath is not defined, returns an empty list. If the "
        "bootclasspath is not defined returns an empty list."
        (Out
        )
        (Reply
	    (string baseDir "Base directory used to resolve relative "
	                    "paths in either of the following lists.")
            (Repeat classpaths "Number of paths in classpath."
                (string path "One component of classpath") )
            (Repeat bootclasspaths "Number of paths in bootclasspath."
                (string path "One component of bootclasspath") )
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command DisposeObjects=14
        "Releases a list of object IDs. For each object in the list, the "
        "following applies. "
        "The count of references held by the back-end (the reference "
        "count) will be decremented by refCnt. "
        "If thereafter the reference count is less than "
        "or equal to zero, the ID is freed. "
        "Any back-end resources associated with the freed ID may "
        "be freed, and if garbage collection was "
        "disabled for the object, it will be re-enabled. "
        "The sender of this command "
        "promises that no further commands will be sent "
        "referencing a freed ID.
	"<p>"
	"Use of this command is not required. If it is not sent, "
	"resources associated with each ID will be freed by the back-end "
	"at some time after the corresponding object is garbage collected. "
	"It is most useful to use this command to reduce the load on the "
	"back-end if a very large number of "
	"objects has been retrieved from the back-end (a large array, "
	"for example) but may not be garbage collected any time soon. "
	"<p>"
        "IDs may be re-used by the back-end after they "
        "have been freed with this command."
        "This description assumes reference counting, "
        "a back-end may use any implementation which operates "
        "equivalently. "
	(Out
	    (Repeat requests "Number of object dispose requests that follow"
		(Group Request
	 	    (object object "The object ID")
		    (int refCnt "The number of times this object ID has been "
				"part of a packet received from the back-end. "
				"An accurate count prevents the object ID "
				"from being freed on the back-end if "
				"it is part of an incoming packet, not yet "
				"handled by the front-end.")
		)
	    )
        )
        (Reply
        )
        (ErrorSet
        )
    )
    (Command HoldEvents=15
        "Tells the target VM to stop sending events. Events are not discarded; "
	"they are held until a subsequent ReleaseEvents command is sent. "
	"This command is useful to control the number of events sent "
	"to the debugger VM in situations where very large numbers of events "
	"are generated. "
	"While events are held by the debugger back-end, application "
	"execution may be frozen by the debugger back-end to prevent "
	"buffer overflows on the back end. 
	"Responses to commands are never held and are not affected by this 
	"command. If events are already being held, this command is "
	"ignored."
        (Out
        )
        (Reply
        )
        (ErrorSet
        )
    )
    (Command ReleaseEvents=16
        "Tells the target VM to continue sending events. This command is "
	"used to restore normal activity after a HoldEvents command. If "
	"there is no current HoldEvents command in effect, this command is "
	"ignored."
        (Out
        )
        (Reply
        )
        (ErrorSet
        )
    )
    (Command CapabilitiesNew=17
        "Retrieve all of this VM's capabilities. The capabilities are returned "
	"as booleans, each indicating the presence or absence of a "
	"capability. The commands associated with each capability will "
	"return the NOT_IMPLEMENTED error if the cabability is not "
	"available."
        "Since JDWP version 1.4."
        (Out
        )
        (Reply
            (boolean canWatchFieldModification 
	             "Can the VM watch field modification, and therefore "
		     "can it send the Modification Watchpoint Event?")
            (boolean canWatchFieldAccess 
	             "Can the VM watch field access, and therefore "
		     "can it send the Access Watchpoint Event?")
            (boolean canGetBytecodes 
	             "Can the VM get the bytecodes of a given method? ")
            (boolean canGetSyntheticAttribute 
	             "Can the VM determine whether a field or method is "
		     "synthetic? (that is, can the VM determine if the "
		     "method or the field was invented by the compiler?) ")
            (boolean canGetOwnedMonitorInfo 
	             "Can the VM get the owned monitors infornation for "
		     "a thread?")
            (boolean canGetCurrentContendedMonitor 
	             "Can the VM get the current contended monitor of a thread?")
            (boolean canGetMonitorInfo 
	             "Can the VM get the monitor information for a given object? ")
            (boolean canRedefineClasses 
	             "Can the VM redefine classes?")
            (boolean canAddMethod 
	             "Can the VM add methods when redefining "
                     "classes?")
            (boolean canUnrestrictedlyRedefineClasses 
	             "Can the VM redefine classes"
                     "in arbitrary ways?")
            (boolean canPopFrames
	             "Can the VM pop stack frames?")
            (boolean canUseInstanceFilters
	             "Can the VM filter events by specific object?")
            (boolean canGetSourceDebugExtension
	             "Can the VM get the source debug extension?")
            (boolean canRequestVMDeathEvent
	             "Can the VM request VM death events?")
            (boolean canSetDefaultStratum
	             "Can the VM set a default stratum?")
            (boolean canGetInstanceInfo
	             "Can the VM return instances, counts of instances of classes "
                     "and referring objects?")
            (boolean canRequestMonitorEvents
	             "Can the VM request monitor events?")
            (boolean canGetMonitorFrameInfo
	             "Can the VM get monitors with frame depth info?")
            (boolean canUseSourceNameFilters
	             "Can the VM filter class prepare events by source name?")
            (boolean canGetConstantPool
	             "Can the VM return the constant pool information?")
            (boolean canForceEarlyReturn
	             "Can the VM force early return from a method?")
            (boolean reserved22
	             "Reserved for future capability")
            (boolean reserved23
	             "Reserved for future capability")
            (boolean reserved24
	             "Reserved for future capability")
            (boolean reserved25
	             "Reserved for future capability")
            (boolean reserved26
	             "Reserved for future capability")
            (boolean reserved27
	             "Reserved for future capability")
            (boolean reserved28
	             "Reserved for future capability")
            (boolean reserved29
	             "Reserved for future capability")
            (boolean reserved30
	             "Reserved for future capability")
            (boolean reserved31
	             "Reserved for future capability")
            (boolean reserved32
	             "Reserved for future capability")
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command RedefineClasses=18
        "Installs new class definitions. "	
	"If there are active stack frames in methods of the redefined classes in the "
	"target VM then those active frames continue to run the bytecodes of the "
	"original method. These methods are considered obsolete - see "
	"<a href=\"#JDWP_Method_IsObsolete\">IsObsolete</a>. The methods in the "
	"redefined classes will be used for new invokes in the target VM. "
	"The original method ID refers to the redefined method. "
	"All breakpoints in the redefined classes are cleared."
	"If resetting of stack frames is desired, the "
	"<a href=\"#JDWP_StackFrame_PopFrames\">PopFrames</a> command can be used "
	"to pop frames with obsolete methods."
	"<p>"
	"Requires canRedefineClasses capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
	"In addition to the canRedefineClasses capability, the target VM must "
	"have the canAddMethod capability to add methods when redefining classes, "
	"or the canUnrestrictedlyRedefineClasses to redefine classes in arbitrary "
	"ways."
	(Out 
            (Repeat classes "Number of reference types that follow." 
                (Group ClassDef
                    (referenceType refType "The reference type.")
                    (Repeat classfile "Number of bytes defining class (below)"
                         (byte classbyte "byte in JVM class file "
                                         "format.")
                    )
                )
            )
        )
        (Reply 
        )
        (ErrorSet
            (Error INVALID_CLASS    "One of the refTypes is not the ID of a reference "
                                    "type.")
            (Error INVALID_OBJECT   "One of the refTypes is not a known ID.")
            (Error UNSUPPORTED_VERSION)
            (Error INVALID_CLASS_FORMAT)
            (Error CIRCULAR_CLASS_DEFINITION)
            (Error FAILS_VERIFICATION)
            (Error NAMES_DONT_MATCH)
            (Error NOT_IMPLEMENTED  "No aspect of this functionality is implemented "
                                    "(CapabilitiesNew.canRedefineClasses is false)")
            (Error ADD_METHOD_NOT_IMPLEMENTED)
            (Error SCHEMA_CHANGE_NOT_IMPLEMENTED)
            (Error HIERARCHY_CHANGE_NOT_IMPLEMENTED)
            (Error DELETE_METHOD_NOT_IMPLEMENTED)
            (Error CLASS_MODIFIERS_CHANGE_NOT_IMPLEMENTED)
            (Error METHOD_MODIFIERS_CHANGE_NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command SetDefaultStratum=19
        "Set the default stratum. Requires canSetDefaultStratum capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
	(Out
	    (string stratumID "default stratum, or empty string to use "
                              "reference type default.")
        )
        (Reply
        )
        (ErrorSet
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command AllClassesWithGeneric=20
        "Returns reference types for all classes currently loaded by the "
	"target VM.  "
        "Both the JNI signature and the generic signature are "
        "returned for each class.  "
	"Generic signatures are described in the signature attribute "
        "section in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
        "Since JDWP version 1.5."
	(Out 
        )
        (Reply 
            (Repeat classes "Number of reference types that follow." 
                (Group ClassInfo
                    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
		                      "of following reference type. ")
                    (referenceTypeID typeID "Loaded reference type")
                    (string signature 
                                "The JNI signature of the loaded reference type.")
                    (string genericSignature 
                                "The generic signature of the loaded reference type "
                                "or an empty string if there is none.")
                    (int status "The current class "
		                "<a href=\"#JDWP_ClassStatus\">status.</a> ")
                )
            )
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    
    (Command InstanceCounts=21
        "Returns the number of instances of each reference type in the input list. "
        "Only instances that are reachable for the purposes of "
        "garbage collection are counted.  If a reference type is invalid, "
        "eg. it has been unloaded, zero is returned for its instance count."
        "<p>Since JDWP version 1.6. Requires canGetInstanceInfo capability - see "
        "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (Repeat refTypesCount "Number of reference types that follow.    Must be non-negative."
                (referenceType refType "A reference type ID.")
            )
          )
        (Reply
            (Repeat counts "The number of counts that follow."
              (long instanceCount "The number of instances for the corresponding reference type "
                                  "in 'Out Data'.")
            )
        )
        (ErrorSet
            (Error ILLEGAL_ARGUMENT   "refTypesCount is less than zero.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
)

(CommandSet ReferenceType=2
    (Command Signature=1
        "Returns the JNI signature of a reference type. "
	"JNI signature formats are described in the "
	"<a href=\"http://java.sun.com/products/jdk/1.2/docs/guide/jni/index.html\">Java Native Inteface Specification</a>"
	"<p>
	"For primitive classes "
	"the returned signature is the signature of the corresponding primitive "
	"type; for example, \"I\" is returned as the signature of the class "
	"represented by java.lang.Integer.TYPE."
	(Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (string signature 
                "The JNI signature for the reference type.")
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command ClassLoader=2
        "Returns the instance of java.lang.ClassLoader which loaded "
        "a given reference type. If the reference type was loaded by the "
	"system class loader, the returned object ID is null."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (classLoaderObject classLoader "The class loader for the reference type. ")
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Modifiers=3
        "Returns the modifiers (also known as access flags) for a reference type. "
	"The returned bit mask contains information on the declaration "
	"of the reference type. If the reference type is an array or " 
	"a primitive class (for example, java.lang.Integer.TYPE), the "
	"value of the returned bit mask is undefined."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (int modBits "Modifier bits as defined in Chapter 4 of "
	                 "<cite>The Java&trade; Virtual Machine Specification</cite>")
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Fields=4
        "Returns information for each field in a reference type. "
        "Inherited fields are not included. "
	"The field list will include any synthetic fields created "
	"by the compiler. "
        "Fields are returned in the order they occur in the class file."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (Repeat declared "Number of declared fields."
                (Group FieldInfo
                    (field fieldID "Field ID.")
                    (string name "Name of field.")
                    (string signature "JNI Signature of field.")
                    (int modBits "The modifier bit flags (also known as access flags) "
		                 "which provide additional information on the  "
                                 "field declaration. Individual flag values are "
				 "defined in Chapter 4 of "
 	                         "<cite>The Java&trade; Virtual Machine Specification</cite>. "
				 "In addition, The <code>0xf0000000</code> bit identifies "
				 "the field as synthetic, if the synthetic attribute "
				 "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
                )
            )
        )
        (ErrorSet
            (Error CLASS_NOT_PREPARED)
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Methods=5
        "Returns information for each method in a reference type. "
        "Inherited methods are not included. The list of methods will "
	"include constructors (identified with the name \"&lt;init&gt;\"), "
	"the initialization method (identified with the name \"&lt;clinit&gt;\") "
	"if present, and any synthetic methods created by the compiler. "
        "Methods are returned in the order they occur in the class file."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (Repeat declared "Number of declared methods."
                (Group MethodInfo
                    (method methodID "Method ID.")
                    (string name "Name of method.")
                    (string signature "JNI signature of method.")
                    (int modBits "The modifier bit flags (also known as access flags) "
		                 "which provide additional information on the  "
                                 "method declaration. Individual flag values are "
				 "defined in Chapter 4 of "
 	                         "<cite>The Java&trade; Virtual Machine Specification</cite>. "
				 "In addition, The <code>0xf0000000</code> bit identifies "
				 "the method as synthetic, if the synthetic attribute "
				 "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
                )
            )
        )
        (ErrorSet
            (Error CLASS_NOT_PREPARED)
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command GetValues=6
        "Returns the value of one or more static fields of the "
	"reference type. Each field must be member of the reference type "
	"or one of its superclasses, superinterfaces, or implemented interfaces. "
	"Access control is not enforced; for example, the values of private "
	"fields can be obtained."
        (Out
            (referenceType refType "The reference type ID.")
            (Repeat fields "The number of values to get"	    	    
                (Group Field
                    (field fieldID "A field to get")
                )
            )
        )
        (Reply
            (Repeat values "The number of values returned, always equal to fields, "
	    		   "the number of values to get."	    
                (value value "The field value")
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error INVALID_FIELDID)
            (Error VM_DEAD)
        )
    )
    (Command SourceFile=7
        "Returns the name of source file in which a reference type was "
	"declared. "
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (string sourceFile "The source file name. No path information "
	                       "for the file is included")
        )
        (ErrorSet	    
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
	    (Error ABSENT_INFORMATION	"The source file attribute is absent.")	    
            (Error VM_DEAD)
        )
    )
    (Command NestedTypes=8
        "Returns the classes and interfaces directly nested within this type."
        "Types further nested within those types are not included. "
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (Repeat classes "The number of nested classes and interfaces"
                (Group TypeInfo
                    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
		                      "of following reference type. ")
                    (referenceTypeID typeID "The nested class or interface ID.")
                )
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Status=9
        "Returns the current status of the reference type. The status "
	"indicates the extent to which the reference type has been "
	"initialized, as described in section 2.1.6 of "
	"<cite>The Java&trade; Virtual Machine Specification</cite>. "
	"If the class is linked the PREPARED and VERIFIED bits in the returned status bits "
	"will be set. If the class is initialized the INITIALIZED bit in the returned "
	"status bits will be set. If an error occured during initialization then the "
	"ERROR bit in the returned status bits will be set. "	
	"The returned status bits are undefined for array types and for "
	"primitive classes (such as java.lang.Integer.TYPE). "		
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (int status "<a href=\"#JDWP_ClassStatus\">Status</a> bits:"
                        "See <a href=\"#JDWP_ClassStatus\">JDWP.ClassStatus</a>")
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Interfaces=10
        "Returns the interfaces declared as implemented by this class. "
        "Interfaces indirectly implemented (extended by the implemented "
        "interface or implemented by a superclass) are not included."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (Repeat interfaces "The number of implemented interfaces"
                (interfaceType interfaceType "implemented interface.")
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command ClassObject=11
        "Returns the class object corresponding to this type. "
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (classObject classObject "class object.")
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command SourceDebugExtension=12
        "Returns the value of the SourceDebugExtension attribute. "
        "Since JDWP version 1.4. Requires canGetSourceDebugExtension capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (string extension "extension attribute")
        )
        (ErrorSet
            (Error INVALID_CLASS      "refType is not the ID of a reference "
                                      "type.")
            (Error INVALID_OBJECT     "refType is not a known ID.")
            (Error ABSENT_INFORMATION "If the extension is not specified.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command SignatureWithGeneric=13
        "Returns the JNI signature of a reference type along with the "
        "generic signature if there is one.  "
	"Generic signatures are described in the signature attribute "
        "section in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
        "Since JDWP version 1.5."
	"<p>
	(Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (string signature 
                "The JNI signature for the reference type.")
            (string genericSignature 
                "The generic signature for the reference type or an empty "
                "string if there is none.")
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command FieldsWithGeneric=14
        "Returns information, including the generic signature if any, "
        "for each field in a reference type. "
        "Inherited fields are not included. "
	"The field list will include any synthetic fields created "
	"by the compiler. "
        "Fields are returned in the order they occur in the class file.  "
	"Generic signatures are described in the signature attribute "
        "section in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
        "Since JDWP version 1.5."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (Repeat declared "Number of declared fields."
                (Group FieldInfo
                    (field fieldID "Field ID.")
                    (string name "The name of the field.")
                    (string signature "The JNI signature of the field.")
                    (string genericSignature "The generic signature of the "
                                             "field, or an empty string if there is none.")
                    (int modBits "The modifier bit flags (also known as access flags) "
		                 "which provide additional information on the  "
                                 "field declaration. Individual flag values are "
				 "defined in Chapter 4 of "
 	                         "<cite>The Java&trade; Virtual Machine Specification</cite>. "
				 "In addition, The <code>0xf0000000</code> bit identifies "
				 "the field as synthetic, if the synthetic attribute "
				 "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
                )
            )
        )
        (ErrorSet
            (Error CLASS_NOT_PREPARED)
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command MethodsWithGeneric=15
        "Returns information, including the generic signature if any, "
        "for each method in a reference type. "
        "Inherited methodss are not included. The list of methods will "
	"include constructors (identified with the name \"&lt;init&gt;\"), "
	"the initialization method (identified with the name \"&lt;clinit&gt;\") "
	"if present, and any synthetic methods created by the compiler. "
        "Methods are returned in the order they occur in the class file.  "
	"Generic signatures are described in the signature attribute "
        "section in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
        "Since JDWP version 1.5."
        (Out
            (referenceType refType "The reference type ID.")
        )
        (Reply
            (Repeat declared "Number of declared methods."
                (Group MethodInfo
                    (method methodID "Method ID.")
                    (string name "The name of the method.")
                    (string signature "The JNI signature of the method.")
                    (string genericSignature "The generic signature of the method, or "
                                             "an empty string if there is none.")
                    (int modBits "The modifier bit flags (also known as access flags) "
		                 "which provide additional information on the  "
                                 "method declaration. Individual flag values are "
				 "defined in Chapter 4 of "
 	                         "<cite>The Java&trade; Virtual Machine Specification</cite>. "
				 "In addition, The <code>0xf0000000</code> bit identifies "
				 "the method as synthetic, if the synthetic attribute "
				 "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
                )
            )
        )
        (ErrorSet
            (Error CLASS_NOT_PREPARED)
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Instances=16
        "Returns instances of this reference type. " 
        "Only instances that are reachable for the purposes of "
        "garbage collection are returned. "
        "<p>Since JDWP version 1.6. Requires canGetInstanceInfo capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (referenceType refType "The reference type ID.")
            (int maxInstances "Maximum number of instances to return.  Must be non-negative. "
                              "If zero, all instances are returned.")
        )       
        (Reply
            (Repeat instances "The number of instances that follow."
                 (tagged-object instance "An instance of this reference type.")
             )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error ILLEGAL_ARGUMENT  "maxInstances is less than zero.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command ClassFileVersion=17
	"Returns the class file major and minor version numbers, as defined in the class "
        "file format of the Java Virtual Machine specification. "
         "<p>Since JDWP version 1.6. "
        (Out
            (referenceType refType "The class.")
        )
        (Reply
	    (int majorVersion "Major version number")
	    (int minorVersion "Minor version number")		
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
	    (Error ABSENT_INFORMATION "The class file version information is "
				      "absent for primitive and array types.")	    
            (Error VM_DEAD)
        )
    )
    (Command ConstantPool=18
        "Return the raw bytes of the constant pool in the format of the "
        "constant_pool item of the Class File Format in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
        "<p>Since JDWP version 1.6. Requires canGetConstantPool capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>.""
        (Out
            (referenceType refType "The class.")
        )
        (Reply
            (int count "Total number of constant pool entries plus one. This "
                       "corresponds to the constant_pool_count item of the "
                       "Class File Format in "
                       "<cite>The Java&trade; Virtual Machine Specification</cite>. ")
            (Repeat bytes
                (byte cpbytes "Raw bytes of constant pool")
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error NOT_IMPLEMENTED   "If the target virtual machine does not "
                                     "support the retrieval of constant pool information.")
	    (Error ABSENT_INFORMATION "The Constant Pool information is "
			              "absent for primitive and array types.")	    
            (Error VM_DEAD)
        )
    )
)
(CommandSet ClassType=3
    (Command Superclass=1
        "Returns the immediate superclass of a class."
        (Out
            (classType clazz "The class type ID.")
        )
        (Reply
            (classType superclass 
                "The superclass (null if the class ID for java.lang.Object is specified).")
        )
        (ErrorSet
            (Error INVALID_CLASS     "clazz is not the ID of a class.")
            (Error INVALID_OBJECT    "clazz is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command SetValues=2
        "Sets the value of one or more static fields. "
	"Each field must be member of the class type "
	"or one of its superclasses, superinterfaces, or implemented interfaces. "
	"Access control is not enforced; for example, the values of private "
	"fields can be set. Final fields cannot be set."
	"For primitive values, the value's type must match the "
	"field's type exactly. For object values, there must exist a "
	"widening reference conversion from the value's type to the 
	"field's type and the field's type must be loaded. "
        (Out
            (classType clazz "The class type ID.")
            (Repeat values "The number of fields to set."
                (Group FieldValue "A Field/Value pair."
                    (field fieldID "Field to set.")
                    (untagged-value value "Value to put in the field.")
                )
            )
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_CLASS     "clazz is not the ID of a class.")
            (Error CLASS_NOT_PREPARED)
            (Error INVALID_OBJECT    "clazz is not a known ID or a value of an "
                                     "object field is not a known ID.")
            (Error INVALID_FIELDID)
            (Error VM_DEAD)
        ) 
    )
    (Command InvokeMethod=3
        "Invokes a static method. "
	"The method must be member of the class type "
	"or one of its superclasses, superinterfaces, or implemented interfaces. "
	"Access control is not enforced; for example, private "
	"methods can be invoked."
	"<p>"
	"The method invocation will occur in the specified thread. "
	"Method invocation can occur only if the specified thread "
	"has been suspended by an event. "
	"Method invocation is not supported "
	"when the target VM has been suspended by the front-end. "
	"<p>"
	"The specified method is invoked with the arguments in the specified "
	"argument list. "
	"The method invocation is synchronous; the reply packet is not "
	"sent until the invoked method returns in the target VM. "
	"The return value (possibly the void value) is "
	"included in the reply packet. "
	"If the invoked method throws an exception, the "
	"exception object ID is set in the reply packet; otherwise, the "
	"exception object ID is null. "
	"<p>"
	"For primitive arguments, the argument value's type must match the "
	"argument's type exactly. For object arguments, there must exist a "
	"widening reference conversion from the argument value's type to the "
	"argument's type and the argument's type must be loaded. "
	"<p>"
        "By default, all threads in the target VM are resumed while "
        "the method is being invoked if they were previously "
        "suspended by an event or by command. "
        "This is done to prevent the deadlocks "
        "that will occur if any of the threads own monitors "
        "that will be needed by the invoked method. It is possible that "
        "breakpoints or other events might occur during the invocation. "
        "Note, however, that this implicit resume acts exactly like "
        "the ThreadReference resume command, so if the thread's suspend "
        "count is greater than 1, it will remain in a suspended state "
	"during the invocation. By default, when the invocation completes, "
	"all threads in the target VM are suspended, regardless their state "
	"before the invocation. "
        "<p>"
        "The resumption of other threads during the invoke can be prevented "
        "by specifying the INVOKE_SINGLE_THREADED "
        "bit flag in the <code>options</code> field; however, "
        "there is no protection against or recovery from the deadlocks "
        "described above, so this option should be used with great caution. "
	"Only the specified thread will be resumed (as described for all "
	"threads above). Upon completion of a single threaded invoke, the invoking thread "
	"will be suspended once again. Note that any threads started during "
	"the single threaded invocation will not be suspended when the "
	"invocation completes. "
	"<p>"
        "If the target VM is disconnected during the invoke (for example, through "
        "the VirtualMachine dispose command) the method invocation continues. "
        (Out
            (classType clazz "The class type ID.")
            (threadObject thread "The thread in which to invoke.")
            (method methodID "The method to invoke.")
            (Repeat arguments 
                (value arg "The argument value.")
            )
            (int options "Invocation <a href=\"#JDWP_InvokeOptions\">options</a>")
        )
        (Reply
            (value returnValue "The returned value.")
            (tagged-object exception "The thrown exception.")
        )
        (ErrorSet
            (Error INVALID_CLASS     "clazz is not the ID of a class.")
            (Error INVALID_OBJECT    "clazz is not a known ID.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error INVALID_THREAD)
            (Error THREAD_NOT_SUSPENDED)
            (Error VM_DEAD)
        )
    )
    (Command NewInstance=4
        "Creates a new object of this type, invoking the specified "
	"constructor. The constructor method ID must be a member of "
	"the class type."
	"<p>"
	"Instance creation will occur in the specified thread. "
	"Instance creation can occur only if the specified thread "
	"has been suspended by an event. "
	"Method invocation is not supported "
	"when the target VM has been suspended by the front-end. "
	"<p>"
	"The specified constructor is invoked with the arguments in the specified "
	"argument list. "
	"The constructor invocation is synchronous; the reply packet is not "
	"sent until the invoked method returns in the target VM. "
	"The return value (possibly the void value) is "
	"included in the reply packet. "
	"If the constructor throws an exception, the "
	"exception object ID is set in the reply packet; otherwise, the "
	"exception object ID is null. "
	"<p>"
	"For primitive arguments, the argument value's type must match the "
	"argument's type exactly. For object arguments, there must exist a "
	"widening reference conversion from the argument value's type to the "
	"argument's type and the argument's type must be loaded. "
	"<p>"
        "By default, all threads in the target VM are resumed while "
        "the method is being invoked if they were previously "
        "suspended by an event or by command. "
        "This is done to prevent the deadlocks "
        "that will occur if any of the threads own monitors "
        "that will be needed by the invoked method. It is possible that "
        "breakpoints or other events might occur during the invocation. "
        "Note, however, that this implicit resume acts exactly like "
        "the ThreadReference resume command, so if the thread's suspend "
        "count is greater than 1, it will remain in a suspended state "
	"during the invocation. By default, when the invocation completes, "
	"all threads in the target VM are suspended, regardless their state "
	"before the invocation. "
        "<p>"
        "The resumption of other threads during the invoke can be prevented "
        "by specifying the INVOKE_SINGLE_THREADED "
        "bit flag in the <code>options</code> field; however, "
        "there is no protection against or recovery from the deadlocks "
        "described above, so this option should be used with great caution. "
	"Only the specified thread will be resumed (as described for all "
	"threads above). Upon completion of a single threaded invoke, the invoking thread "
	"will be suspended once again. Note that any threads started during "
	"the single threaded invocation will not be suspended when the "
	"invocation completes. "
        "<p>"
        "If the target VM is disconnected during the invoke (for example, through "
        "the VirtualMachine dispose command) the method invocation continues. "
        (Out
            (classType clazz "The class type ID.")
            (threadObject thread "The thread in which to invoke the constructor.")
            (method methodID "The constructor to invoke.")
            (Repeat arguments 
                (value arg "The argument value.")
            )
            (int options "Constructor invocation <a href=\"#JDWP_InvokeOptions\">options</a>")
        )
        (Reply
            (tagged-object newObject "The newly created object, or null "
	                             "if the constructor threw an exception.")
            (tagged-object exception "The thrown exception, if any; otherwise, null.")
        )
        (ErrorSet
            (Error INVALID_CLASS     "clazz is not the ID of a class.")
            (Error INVALID_OBJECT    "clazz is not a known ID or a value of an "
                                     "object parameter is not a known ID..")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error INVALID_OBJECT)
            (Error INVALID_THREAD)
            (Error THREAD_NOT_SUSPENDED)
            (Error VM_DEAD)
        )
    )
)
(CommandSet ArrayType=4
    (Command NewInstance=1
        "Creates a new array object of this type with a given length."
        (Out
            (arrayType arrType "The array type of the new instance.")
            (int length "The length of the array.")
        )
        (Reply  
	    (tagged-object newArray "The newly created array object. ")
        )
        (ErrorSet
            (Error INVALID_ARRAY)
            (Error INVALID_OBJECT)
            (Error VM_DEAD)
        )
    )
)
(CommandSet InterfaceType=5
)
(CommandSet Method=6
    (Command LineTable=1
        "Returns line number information for the method, if present. "
	"The line table maps source line numbers to the initial code index "
	"of the line. The line table "
	"is ordered by code index (from lowest to highest). The line number " 
	"information is constant unless a new class definition is installed "
	"using <a href=\"#JDWP_VirtualMachine_RedefineClasses\">RedefineClasses</a>."	
        (Out
            (referenceType refType "The class.")
            (method methodID "The method.")
        )
        (Reply
            (long start "Lowest valid code index for the method, >=0, or -1 if the method is native ")
            (long end "Highest valid code index for the method, >=0, or -1 if the method is native")
            (Repeat lines "The number of entries in the line table for this method."
                (Group LineInfo
                    (long lineCodeIndex "Initial code index of the line, "
		    			"start <= lineCodeIndex < end")
                    (int lineNumber "Line number.")
                )
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error VM_DEAD)
        )
    )
    (Command VariableTable=2
        "Returns variable information for the method. The variable table "
	"includes arguments and locals declared within the method. For "
	"instance methods, the \"this\" reference is included in the "
	"table. Also, synthetic variables may be present. "
        (Out
            (referenceType refType "The class.")
            (method methodID "The method.")
        )
        (Reply
            (int argCnt "The number of words in the frame used by arguments. "
                        "Eight-byte arguments use two words; all others use one. ")
            (Repeat slots "The number of variables."
                (Group SlotInfo "Information about the variable."
                    (long codeIndex
		        "First code index at which the variable is visible (unsigned). "
		        "Used in conjunction with <code>length</code>. "
		        "The variable can be get or set only when the current "
			"<code>codeIndex</code> <= current frame code index < <code>codeIndex + length</code> ")
                    (string name "The variable's name.")
                    (string signature "The variable type's JNI signature.")
                    (int length 
		        "Unsigned value used in conjunction with <code>codeIndex</code>. "
		        "The variable can be get or set only when the current "
			"<code>codeIndex</code> <= current frame code index < <code>code index + length</code> ")
                    (int slot "The local variable's index in its frame")
                )
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error ABSENT_INFORMATION "there is no variable information for the method.")
            (Error VM_DEAD)
        )
    )
    (Command Bytecodes=3
        "Retrieve the method's bytecodes as defined in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
	"Requires canGetBytecodes capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (referenceType refType "The class.")
            (method methodID "The method.")
        )
        (Reply
            (Repeat bytes
                (byte bytecode "A Java bytecode.")
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error NOT_IMPLEMENTED   "If the target virtual machine does not "
                                     "support the retrieval of bytecodes.")
            (Error VM_DEAD)
        )
    )
    (Command IsObsolete=4
        "Determine if this method is obsolete. A method is obsolete if it has been replaced "
	"by a non-equivalent method using the "
	"<a href=\"#JDWP_VirtualMachine_RedefineClasses\">RedefineClasses</a> command. "
	"The original and redefined methods are considered equivalent if their bytecodes are "
	"the same except for indices into the constant pool and the referenced constants are "
	"equal."
        (Out
            (referenceType refType "The class.")
            (method methodID "The method.")
        )
        (Reply
            (boolean isObsolete    "true if this method has been replaced"
                                   "by a non-equivalent method using"
				   "the RedefineClasses command.") 
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error NOT_IMPLEMENTED   "If the target virtual machine does "
                                     "not support this query.")
            (Error VM_DEAD)
        )
    )
    (Command VariableTableWithGeneric=5
        "Returns variable information for the method, including "
        "generic signatures for the variables. The variable table "
	"includes arguments and locals declared within the method. For "
	"instance methods, the \"this\" reference is included in the "
	"table. Also, synthetic variables may be present. "
	"Generic signatures are described in the signature attribute "
        "section in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>. "
        "Since JDWP version 1.5."
        (Out
            (referenceType refType "The class.")
            (method methodID "The method.")
        )
        (Reply
            (int argCnt "The number of words in the frame used by arguments. "
                        "Eight-byte arguments use two words; all others use one. ")
            (Repeat slots "The number of variables."
                (Group SlotInfo "Information about the variable."
                    (long codeIndex
		        "First code index at which the variable is visible (unsigned). "
		        "Used in conjunction with <code>length</code>. "
		        "The variable can be get or set only when the current "
			"<code>codeIndex</code> <= current frame code index < <code>codeIndex + length</code> ")
                    (string name "The variable's name.")
                    (string signature "The variable type's JNI signature.")
                    (string genericSignature "The variable type's generic "
                         "signature or an empty string if there is none.")
                    (int length 
		        "Unsigned value used in conjunction with <code>codeIndex</code>. "
		        "The variable can be get or set only when the current "
			"<code>codeIndex</code> <= current frame code index < <code>code index + length</code> ")
                    (int slot "The local variable's index in its frame")
                )
            )
        )
        (ErrorSet
            (Error INVALID_CLASS     "refType is not the ID of a reference "
                                     "type.")
            (Error INVALID_OBJECT    "refType is not a known ID.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error ABSENT_INFORMATION "there is no variable information for the method.")
            (Error VM_DEAD)
        )
    )

) 
(CommandSet Field=8
)
(CommandSet ObjectReference=9
    (Command ReferenceType=1
        "Returns the runtime type of the object. "
        "The runtime type will be a class or an array. "
        (Out
            (object object "The object ID")
        )
        (Reply
	    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
			      "of following reference type. ")
            (referenceTypeID typeID "The runtime reference type.")
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error VM_DEAD)
        )
    )
    (Command GetValues=2
        "Returns the value of one or more instance fields. "
	"Each field must be member of the object's type "
	"or one of its superclasses, superinterfaces, or implemented interfaces. "
	"Access control is not enforced; for example, the values of private "
	"fields can be obtained."
        (Out
            (object object "The object ID")
            (Repeat fields "The number of values to get"
                (Group Field
                    (field fieldID "Field to get.")
                )
            )
        )
        (Reply
            (Repeat values "The number of values returned, always equal to 'fields', "
	    		   "the number of values to get. Field values are ordered "
			   "in the reply in the same order as corresponding fieldIDs "
 			   "in the command."
                (value value "The field value")
            )
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error INVALID_FIELDID)
            (Error VM_DEAD)
        )
    )
    (Command SetValues=3
        "Sets the value of one or more instance fields. "
	"Each field must be member of the object's type "
	"or one of its superclasses, superinterfaces, or implemented interfaces. "
	"Access control is not enforced; for example, the values of private "
	"fields can be set. "
	"For primitive values, the value's type must match the "
	"field's type exactly. For object values, there must be a "
	"widening reference conversion from the value's type to the 
	"field's type and the field's type must be loaded. "
        (Out
            (object object "The object ID")
            (Repeat values "The number of fields to set."
                (Group FieldValue "A Field/Value pair."
                    (field fieldID "Field to set.")
                    (untagged-value value "Value to put in the field.")
                )
            )
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error INVALID_FIELDID)
            (Error VM_DEAD)
        ) 
    )
    (Command MonitorInfo=5
        "Returns monitor information for an object. All threads int the VM must "
	"be suspended."
	"Requires canGetMonitorInfo capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (object object "The object ID")
        )
        (Reply
            (threadObject owner "The monitor owner, or null if it is not currently owned.")
            (int entryCount "The number of times the monitor has been entered.")
            (Repeat waiters "The number of threads that are waiting for the monitor "
	                    "0 if there is no current owner"
                (threadObject thread "A thread waiting for this monitor.")
            )
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command InvokeMethod=6
        "Invokes a instance method. "
	"The method must be member of the object's type "
	"or one of its superclasses, superinterfaces, or implemented interfaces. "
	"Access control is not enforced; for example, private "
	"methods can be invoked."
	"<p>"
	"The method invocation will occur in the specified thread. "
	"Method invocation can occur only if the specified thread "
	"has been suspended by an event. "
	"Method invocation is not supported "
	"when the target VM has been suspended by the front-end. "
	"<p>"
	"The specified method is invoked with the arguments in the specified "
	"argument list. "
	"The method invocation is synchronous; the reply packet is not "
	"sent until the invoked method returns in the target VM. "
	"The return value (possibly the void value) is "
	"included in the reply packet. "
	"If the invoked method throws an exception, the "
	"exception object ID is set in the reply packet; otherwise, the "
	"exception object ID is null. "
	"<p>"
	"For primitive arguments, the argument value's type must match the "
	"argument's type exactly. For object arguments, there must be a "
	"widening reference conversion from the argument value's type to the "
	"argument's type and the argument's type must be loaded. "
	"<p>"
        "By default, all threads in the target VM are resumed while "
        "the method is being invoked if they were previously "
        "suspended by an event or by command. "
        "This is done to prevent the deadlocks "
        "that will occur if any of the threads own monitors "
        "that will be needed by the invoked method. It is possible that "
        "breakpoints or other events might occur during the invocation. "
        "Note, however, that this implicit resume acts exactly like "
        "the ThreadReference resume command, so if the thread's suspend "
        "count is greater than 1, it will remain in a suspended state "
	"during the invocation. By default, when the invocation completes, "
	"all threads in the target VM are suspended, regardless their state "
	"before the invocation. "
        "<p>"
        "The resumption of other threads during the invoke can be prevented "
        "by specifying the INVOKE_SINGLE_THREADED "
        "bit flag in the <code>options</code> field; however, "
        "there is no protection against or recovery from the deadlocks "
        "described above, so this option should be used with great caution. "
	"Only the specified thread will be resumed (as described for all "
	"threads above). Upon completion of a single threaded invoke, the invoking thread "
	"will be suspended once again. Note that any threads started during "
	"the single threaded invocation will not be suspended when the "
	"invocation completes. "
        "<p>"
        "If the target VM is disconnected during the invoke (for example, through "
        "the VirtualMachine dispose command) the method invocation continues. "
        (Out
            (object object "The object ID")
            (threadObject thread "The thread in which to invoke.")
            (classType clazz "The class type.")
            (method methodID "The method to invoke.")
            (Repeat arguments "The number of arguments."
                (value arg "The argument value.")
            )
            (int options "Invocation <a href=\"#JDWP_InvokeOptions\">options</a>")
        )
        (Reply
            (value returnValue "The returned value, or null if an exception is thrown.")
            (tagged-object exception "The thrown exception, if any.")
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error INVALID_CLASS     "clazz is not the ID of a reference "
                                     "type.")
            (Error INVALID_METHODID  "methodID is not the ID of a method.")
            (Error INVALID_THREAD)
            (Error THREAD_NOT_SUSPENDED)
            (Error VM_DEAD)
        )
    )
    (Command DisableCollection=7
	"Prevents garbage collection for the given object. By "
	"default all objects in back-end replies may be "
	"collected at any time the target VM is running. A call to "
	"this command guarantees that the object will not be "
	"collected. The "
	"<a href=\"#JDWP_ObjectReference_EnableCollection\">EnableCollection</a> "
	"command can be used to "
	"allow collection once again. "
	"<p>"
	"Note that while the target VM is suspended, no garbage "
	"collection will occur because all threads are suspended. "
	"The typical examination of variables, fields, and arrays "
	"during the suspension is safe without explicitly disabling "
	"garbage collection. "
	"<p>"
	"This method should be used sparingly, as it alters the "
	"pattern of garbage collection in the target VM and, "
	"consequently, may result in application behavior under the "
	"debugger that differs from its non-debugged behavior. "
	(Out 
	    (object object "The object ID")
	)
	(Reply "none"
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error VM_DEAD)
        )
    )
    (Command EnableCollection=8
	"Permits garbage collection for this object. By default all "
	"objects returned by JDWP may become unreachable in the target VM, "
	"and hence may be garbage collected. A call to this command is "
	"necessary only if garbage collection was previously disabled with "
	"the <a href=\"#JDWP_ObjectReference_DisableCollection\">DisableCollection</a> "
	"command."
        (Out 
            (object object "The object ID")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
    (Command IsCollected=9
        "Determines whether an object has been garbage collected in the "
	"target VM. "
        (Out
            (object object "The object ID")
        )
        (Reply
            (boolean isCollected "true if the object has been collected; false otherwise")
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error VM_DEAD)
        )
    )
    (Command ReferringObjects=10
        "Returns objects that directly reference this object.  "
        "Only objects that are reachable for the purposes "
        "of garbage collection are returned. "
        "Note that an object can also be referenced in other ways, "
        "such as from a local variable in a stack frame, or from a JNI global "
        "reference.  Such non-object referrers are not returned by this command. "
        "<p>Since JDWP version 1.6. Requires canGetInstanceInfo capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (object object "The object ID")
            (int maxReferrers "Maximum number of referring objects to return. "
                              "Must be non-negative. If zero, all referring "
                              "objects are returned.")
        )       
        (Reply
            (Repeat referringObjects "The number of objects that follow."
                (tagged-object instance "An object that references this object.")
             )
        )
        (ErrorSet
            (Error INVALID_OBJECT    "object is not a known ID.")
            (Error ILLEGAL_ARGUMENT  "maxReferrers is less than zero.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
)

(CommandSet StringReference=10
    (Command Value=1
        "Returns the characters contained in the string. "
        (Out
            (object stringObject "The String object ID. ")
        )
        (Reply
            (string stringValue "UTF-8 representation of the string value.")
       )
        (ErrorSet
            (Error INVALID_STRING)
            (Error INVALID_OBJECT)
            (Error VM_DEAD)
        )
    )
)
(CommandSet ThreadReference=11
    (Command Name=1
        "Returns the thread name. "
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply
            (string threadName "The thread name.")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Suspend=2
        "Suspends the thread. "
	"<p>"
	"Unlike java.lang.Thread.suspend(), suspends of both "
	"the virtual machine and individual threads are counted. Before "
	"a thread will run again, it must be resumed the same number "
	"of times it has been suspended. "
	"<p>"
	"Suspending single threads with command has the same "
	"dangers java.lang.Thread.suspend(). If the suspended "
	"thread holds a monitor needed by another running thread, "
	"deadlock is possible in the target VM (at least until the "
	"suspended thread is resumed again). "
	"<p>"
	"The suspended thread is guaranteed to remain suspended until "
	"resumed through one of the JDI resume methods mentioned above; "
	"the application in the target VM cannot resume the suspended thread "
	"through {@link java.lang.Thread#resume}. "
	"<p>"
	"Note that this doesn't change the status of the thread (see the "
	"<a href=\"#JDWP_ThreadReference_Status\">ThreadStatus</a> command.) "
	"For example, if it was "
	"Running, it will still appear running to other threads. "
	(Out
	    (threadObject thread "The thread object ID. ")
	)
	(Reply "none"
	)
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Resume=3
	"Resumes the execution of a given thread. If this thread was "
	"not previously suspended by the front-end, "
	"calling this command has no effect. "
	"Otherwise, the count of pending suspends on this thread is "
	"decremented. If it is decremented to 0, the thread will "
	"continue to execute. "
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Status=4
        "Returns the current status of a thread. The thread status "
	"reply indicates the thread status the last time it was running. "
	"the suspend status provides information on the thread's "
	"suspension, if any."
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply 
            (int threadStatus "One of the thread status codes "
                    "See <a href=\"#JDWP_ThreadStatus\">JDWP.ThreadStatus</a>")
            (int suspendStatus "One of the suspend status codes "
                    "See <a href=\"#JDWP_SuspendStatus\">JDWP.SuspendStatus</a>")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command ThreadGroup=5
        "Returns the thread group that contains a given thread. "
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply
            (threadGroupObject group "The thread group of this thread. ")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Frames=6
        "Returns the current call stack of a suspended thread. "
        "The sequence of frames starts with "
        "the currently executing frame, followed by its caller, "
        "and so on. The thread must be suspended, and the returned "
	"frameID is valid only while the thread is suspended. "
        (Out
            (threadObject thread "The thread object ID. ")
            (int startFrame "The index of the first frame to retrieve.")
            (int length 
                        "The count of frames to retrieve "
                        "(-1 means all remaining). ")
        )
        (Reply
            (Repeat frames "The number of frames retreived"
                (Group Frame
                    (frame frameID "The ID of this frame. ")
                    (location location "The current location of this frame")
                )
            )
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command FrameCount=7
        "Returns the count of frames on this thread's stack. "
	"The thread must be suspended, and the returned "	   	
	"count is valid only while the thread is suspended. "	
        "Returns JDWP.Error.errorThreadNotSuspended if not suspended. "
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply
            (int frameCount "The count of frames on this thread's stack. ")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command OwnedMonitors=8
        "Returns the objects whose monitors have been entered by this thread. "
	"The thread must be suspended, and the returned information is "
	"relevant only while the thread is suspended. "
	"Requires canGetOwnedMonitorInfo capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply
            (Repeat owned "The number of owned monitors"
                (tagged-object monitor "An owned monitor")
            )
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command CurrentContendedMonitor=9
        "Returns the object, if any, for which this thread is waiting. The "
	"thread may be waiting to enter a monitor, or it may be waiting, via "
	"the java.lang.Object.wait method, for another thread to invoke the "
	"notify method. "
	"The thread must be suspended, and the returned information is "
	"relevant only while the thread is suspended. "
	"Requires canGetCurrentContendedMonitor capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply
            (tagged-object monitor "The contended monitor, or null if "
	                           "there is no current contended monitor. ")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command Stop=10
        "Stops the thread with an asynchronous exception, as if done by "
	"java.lang.Thread.stop "
        (Out
            (threadObject thread "The thread object ID. ")
            (object throwable "Asynchronous exception. This object must "
	                      "be an instance of java.lang.Throwable or a subclass")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT "If thread is not a known ID or the asynchronous "
                                  "exception has been garbage collected.")
            (Error VM_DEAD)
        )
    )
    (Command Interrupt=11
        "Interrupt the thread, as if done by java.lang.Thread.interrupt "
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command SuspendCount=12
        "Get the suspend count for this thread. The suspend count is the  "
	"number of times the thread has been suspended through the "
	"thread-level or VM-level suspend commands without a corresponding resume "
        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply 
            (int suspendCount "The number of outstanding suspends of this thread. ")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command OwnedMonitorsStackDepthInfo=13
        "Returns monitor objects owned by the thread, along with stack depth at which "
        "the monitor was acquired. Returns stack depth of -1  if "
        "the implementation cannot determine the stack depth "
        "(e.g., for monitors acquired by JNI MonitorEnter)."
	"The thread must be suspended, and the returned information is "
	"relevant only while the thread is suspended. "
	"Requires canGetMonitorFrameInfo capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
	"<p>Since JDWP version 1.6. "

        (Out
            (threadObject thread "The thread object ID. ")
        )
        (Reply
            (Repeat owned "The number of owned monitors"
	       (Group monitor
                  (tagged-object monitor "An owned monitor")
		  (int stack_depth "Stack depth location where monitor was acquired")
               )
            )
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command ForceEarlyReturn=14
        "Force a method to return before it reaches a return "
        "statement.  "
	"<p>"
        "The method which will return early is referred to as the "
        "called method. The called method is the current method (as "
        "defined by the Frames section in "
        "<cite>The Java&trade; Virtual Machine Specification</cite>) "
        "for the specified thread at the time this command "
        "is received. "
	"<p>"
        "The specified thread must be suspended. "
        "The return occurs when execution of Java programming "
        "language code is resumed on this thread. Between sending this "
        "command and resumption of thread execution, the "
        "state of the stack is undefined. "
	"<p>"
        "No further instructions are executed in the called "
        "method. Specifically, finally blocks are not executed. Note: "
        "this can cause inconsistent states in the application. "
	"<p>"
        "A lock acquired by calling the called method (if it is a "
        "synchronized method) and locks acquired by entering "
        "synchronized blocks within the called method are "
        "released. Note: this does not apply to JNI locks or "
        "java.util.concurrent.locks locks. "
	"<p>"
        "Events, such as MethodExit, are generated as they would be in "
        "a normal return. "
	"<p>"
        "The called method must be a non-native Java programming "
        "language method. Forcing return on a thread with only one "
        "frame on the stack causes the thread to exit when resumed. "
	"<p>"
        "For void methods, the value must be a void value. " 
        "For methods that return primitive values, the value's type must "
        "match the return type exactly.  For object values, there must be a "
	"widening reference conversion from the value's type to the "
	"return type type and the return type must be loaded. "
        "<p>"
        "Since JDWP version 1.6. Requires canForceEarlyReturn capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (threadObject thread "The thread object ID. ")
            (value value "The value to return. ")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "Thread or value is not a known ID.")
            (Error THREAD_NOT_SUSPENDED)
            (Error THREAD_NOT_ALIVE)
            (Error OPAQUE_FRAME      "Attempted to return early from "
                                     "a frame corresponding to a native "
                                     "method. Or the implementation is "
                                     "unable to provide this functionality "
                                     "on this frame.")
            (Error NO_MORE_FRAMES)
            (Error NOT_IMPLEMENTED)
            (Error TYPE_MISMATCH   "Value is not an appropriate type for the "
                                   "return value of the method.")
            (Error VM_DEAD)
        )
    )

)
(CommandSet ThreadGroupReference=12
    (Command Name=1
        "Returns the thread group name. "
        (Out
            (threadGroupObject group "The thread group object ID. ")
        )
        (Reply
            (string groupName "The thread group's name.")
        )
        (ErrorSet
            (Error INVALID_THREAD_GROUP)
            (Error INVALID_OBJECT    "group is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Parent=2
        "Returns the thread group, if any, which contains a given thread group. "
        (Out
            (threadGroupObject group "The thread group object ID. ")
        )
        (Reply
            (threadGroupObject parentGroup "The parent thread group object, or "
	                                   "null if the given thread group "
					   "is a top-level thread group")
        )
        (ErrorSet
            (Error INVALID_THREAD_GROUP)
            (Error INVALID_OBJECT    "group is not a known ID.")
            (Error VM_DEAD)
        )
    )
    (Command Children=3
        "Returns the live threads and active thread groups directly contained "
        "in this thread group. Threads and thread groups in child "
	"thread groups are not included. "
        "A thread is alive if it has been started and has not yet been stopped. "
        "See <a href=../../../api/java/lang/ThreadGroup.html>java.lang.ThreadGroup </a>
        "for information about active ThreadGroups.
        (Out
            (threadGroupObject group "The thread group object ID. ")
        )
        (Reply
            (Repeat childThreads "The number of live child threads. "
                (threadObject childThread "A direct child thread ID. ")
            )
            (Repeat childGroups "The number of active child thread groups. "
                (threadGroupObject childGroup "A direct child thread group ID. ")
            )
        )
        (ErrorSet
            (Error INVALID_THREAD_GROUP)
            (Error INVALID_OBJECT    "group is not a known ID.")
            (Error VM_DEAD)
        )
    )
)
(CommandSet ArrayReference=13
    (Command Length=1
        "Returns the number of components in a given array. "
        (Out
            (arrayObject arrayObject "The array object ID. ")
        )
        (Reply
            (int arrayLength "The length of the array.")
        )
        (ErrorSet
            (Error INVALID_OBJECT    "arrayObject is not a known ID.")
            (Error INVALID_ARRAY)
            (Error VM_DEAD)
        )
    )
    (Command GetValues=2
        "Returns a range of array components. The specified range must "
	"be within the bounds of the array. "
        (Out
            (arrayObject arrayObject "The array object ID. ")
            (int firstIndex "The first index to retrieve.")
            (int length "The number of components to retrieve.")
        )
        (Reply
            (typed-sequence values "The retrieved values. If the values "
	                           "are objects, they are tagged-values; "
				   "otherwise, they are untagged-values")
        )
        (ErrorSet
            (Error INVALID_LENGTH "If index is beyond the end of this array.")
            (Error INVALID_OBJECT    "arrayObject is not a known ID.")
            (Error INVALID_ARRAY)
            (Error VM_DEAD)
        )
    )
    (Command SetValues=3
        "Sets a range of array components. The specified range must "
	"be within the bounds of the array. "
	"For primitive values, each value's type must match the "
	"array component type exactly. For object values, there must be a "
	"widening reference conversion from the value's type to the 
	"array component type and the array component type must be loaded. "
        (Out
            (arrayObject arrayObject "The array object ID. ")
            (int firstIndex "The first index to set.")
            (Repeat values "The number of values to set. "
                (untagged-value value "A value to set. ")
            )
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_LENGTH "If index is beyond the end of this array.")
            (Error INVALID_OBJECT    "arrayObject is not a known ID.")
            (Error INVALID_ARRAY)
            (Error VM_DEAD)
        )
    )
)
(CommandSet ClassLoaderReference=14
    (Command VisibleClasses=1
	"Returns a list of all classes which this class loader has "
	"been requested to load. This class loader is considered to be "
	"an <i>initiating</i> class loader for each class in the returned "
	"list. The list contains each "
	"reference type defined by this loader and any types for which "
	"loading was delegated by this class loader to another class loader. "
	"<p>"
	"The visible class list has useful properties with respect to "
	"the type namespace. A particular type name will occur at most "
	"once in the list. Each field or variable declared with that "
	"type name in a class defined by "
	"this class loader must be resolved to that single type. "
	"<p>"
	"No ordering of the returned list is guaranteed. "
        (Out
            (classLoaderObject classLoaderObject "The class loader object ID. ")
        )
        (Reply
            (Repeat classes "The number of visible classes. "
                (Group ClassInfo
                    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
		                      "of following reference type. ")
                    (referenceTypeID typeID  
                        "A class visible to this class loader.")
                )
            )
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error INVALID_CLASS_LOADER)
            (Error VM_DEAD)
        )
    )
)
(CommandSet EventRequest=15
    (Command Set=1
        "Set an event request. When the event described by this request "
	"occurs, an <a href=\"#JDWP_Event\">event</a> is sent from the "
	"target VM. If an event occurs that has not been requested then it is not sent "
	"from the target VM. The two exceptions to this are the VM Start Event and "
	"the VM Death Event which are automatically generated events - see "
	"<a href=\"#JDWP_Event_Composite\">Composite Command</a> for further details."	
        (Out
            (byte eventKind "Event kind to request. "
                      "See <a href=\"#JDWP_EventKind\">JDWP.EventKind</a> "
		      "for a complete list of events that can be requested; "
                      "some events may require a capability in order to be requested. "
		      )
            (byte suspendPolicy 
                      "What threads are suspended when this event occurs? "
                      "Note that the order of events and command replies "
		      "accurately reflects the order in which threads are "
		      "suspended and resumed. For example, if a "
		      "<a href=\"#JDWP_VirtualMachine_Resume\">VM-wide resume</a> "
		      "is processed before an event occurs which suspends the "
		      "VM, the reply to the resume command will be written to "
		      "the transport before the suspending event.")
            (Repeat modifiers "Constraints used to control the number "
	                      "of generated events."
                              "Modifiers specify additional tests that "
			      "an event must satisfy before it is placed "
			      "in the event queue. Events are filtered by "
                              "applying each modifier to an event in the "
			      "order they are specified in this collection "
			      "Only events that satisfy all modifiers "
			      "are reported. A value of 0 means there are no "
			      "modifiers in the request."
			      "<p>"
                              "Filtering can improve "
                              "debugger performance dramatically by 
			      "reducing the "
                              "amount of event traffic sent from the "
			      "target VM to the debugger VM. "
                (Select Modifier
                    (byte modKind "Modifier kind")
                    (Alt Count=1 
			"Limit the requested event to be reported at most once after a "
			"given number of occurrences.  The event is not reported "
			"the first <code>count - 1</code> times this filter is reached. "
			"To request a one-off event, call this method with a count of 1. "
			"<p>"
			"Once the count reaches 0, any subsequent filters in this request "
			"are applied. If none of those filters cause the event to be "
			"suppressed, the event is reported. Otherwise, the event is not "
			"reported. In either case subsequent events are never reported for "
			"this request. "
			"This modifier can be used with any event kind."
			
			(int count "Count before event. One for one-off.")
                    )
                    (Alt Conditional=2 "Conditional on expression"
                        (int exprID "For the future")
                    )
                    (Alt ThreadOnly=3 
		        "Restricts reported events to "
			"those in the given thread. "
			"This modifier can be used with any event kind "
			"except for class unload. "
			
                        (threadObject thread "Required thread")
                    )
                    (Alt ClassOnly=4 
			"For class prepare events, restricts the events "
			"generated by this request to be the "
			"preparation of the given reference type and any subtypes. "
			"For monitor wait and waited events, restricts the events "
        		"generated by this request to those whose monitor object "
        		"is of the given reference type or any of its subtypes. "
			"For other events, restricts the events generated "
			"by this request to those "
			"whose location is in the given reference type or any of its subtypes. "
			"An event will be generated for any location in a reference type that can "
			"be safely cast to the given reference type. "
			"This modifier can be used with any event kind except "
			"class unload, thread start, and thread end. "
     
                        (referenceType clazz "Required class")
                    )
                    (Alt ClassMatch=5 
			"Restricts reported events to those for classes whose name "
			"matches the given restricted regular expression. "
			"For class prepare events, the prepared class name "
			"is matched. For class unload events, the "
			"unloaded class name is matched. For monitor wait "
			"and waited events, the name of the class of the "
			"monitor object is matched. For other events, "
			"the class name of the event's location is matched. "
			"This modifier can be used with any event kind except "
			"thread start and thread end. "
			
                        (string classPattern "Required class pattern. "
				"Matches are limited to exact matches of the "
				"given class pattern and matches of patterns that "
				"begin or end with '*'; for example, "
				"\"*.Foo\" or \"java.*\". "
			)
			
                    )
                    (Alt ClassExclude=6 
			"Restricts reported events to those for classes whose name "
			"does not match the given restricted regular expression. "
			"For class prepare events, the prepared class name "
			"is matched. For class unload events, the "
			"unloaded class name is matched. For monitor wait and "
			"waited events, the name of the class of the monitor "
			"object is matched. For other events, "
			"the class name of the event's location is matched. "
			"This modifier can be used with any event kind except "
			"thread start and thread end. "
			
                        (string classPattern "Disallowed class pattern. "
				"Matches are limited to exact matches of the "
				"given class pattern and matches of patterns that "
				"begin or end with '*'; for example, "
				"\"*.Foo\" or \"java.*\". "
			)
                    )
                    (Alt LocationOnly=7 
		        "Restricts reported events to those that occur at "
			"the given location. "
			"This modifier can be used with "
			"breakpoint, field access, field modification, "
			"step, and exception event kinds. "
			
                        (location loc "Required location")
                    )
                    (Alt ExceptionOnly=8 
		        "Restricts reported exceptions by their class and "
			"whether they are caught or uncaught. "
			"This modifier can be used with "
			"exception event kinds only. "
			
                        (referenceType exceptionOrNull 
                                "Exception to report. Null (0) means report "
				"exceptions of all types. "
				"A non-null type restricts the reported exception "
				"events to exceptions of the given type or "
				"any of its subtypes. "
			)
                        (boolean caught "Report caught exceptions")
                        (boolean uncaught "Report uncaught exceptions. "
				"Note that it "
				"is not always possible to determine whether an "
				"exception is caught or uncaught at the time it is "
				"thrown. See the exception event catch location under "
				"<a href=\"#JDWP_Event_Composite\">composite events</a> "
				"for more information. "
			)
			
                    )
                    (Alt FieldOnly=9 
			"Restricts reported events to those that occur for "
			"a given field. "
			"This modifier can be used with "
			"field access and field modification event kinds only. "
			
                        (referenceType declaring "Type in which field is declared.")
                        (field fieldID "Required field")
                    )
                    (Alt Step=10 
		        "Restricts reported step events "
			"to those which satisfy "
			"depth and size constraints. "
			"This modifier can be used with "
			"step event kinds only. "
			
                        (threadObject thread "Thread in which to step")
                        (int size "size of each step. "
                           "See <a href=\"#JDWP_StepSize\">JDWP.StepSize</a>")
                        (int depth "relative call stack limit. "
                           "See <a href=\"#JDWP_StepDepth\">JDWP.StepDepth</a>")
                    )
                    (Alt InstanceOnly=11
			"Restricts reported events to those whose "
			"active 'this' object is the given object. "
			"Match value is the null object for static methods. "
			"This modifier can be used with any event kind "
			"except class prepare, class unload, thread start, "
			"and thread end. Introduced in JDWP version 1.4."
     
                        (object instance "Required 'this' object")
                    )
                    (Alt SourceNameMatch=12
			"Restricts reported class prepare events to those "
			"for reference types which have a source name "
                        "which matches the given restricted regular expression. "
                        "The source names are determined by the reference type's "
                        "<a href=\"#JDWP_ReferenceType_SourceDebugExtension\"> "
                        "SourceDebugExtension</a>. "
			"This modifier can only be used with class prepare "
                        "events. "
                        "Since JDWP version 1.6. Requires the canUseSourceNameFilters "
                        "capability - see "
                        "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."

                        (string sourceNamePattern "Required source name pattern. "
				"Matches are limited to exact matches of the "
				"given pattern and matches of patterns that "
				"begin or end with '*'; for example, "
				"\"*.Foo\" or \"java.*\". "
                        )
                    )

                )
            ) 
        )
        (Reply
            (int requestID "ID of created request")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_CLASS)
            (Error INVALID_STRING)
            (Error INVALID_OBJECT)
            (Error INVALID_COUNT)
            (Error INVALID_FIELDID)
            (Error INVALID_METHODID)
            (Error INVALID_LOCATION)
            (Error INVALID_EVENT_TYPE)
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
    (Command Clear=2
        "Clear an event request. See <a href=\"#JDWP_EventKind\">JDWP.EventKind</a> "
        "for a complete list of events that can be cleared. Only the event request matching " 
	"the specified event kind and requestID is cleared. If there isn't a matching event "
	"request the command is a no-op and does not result in an error. Automatically "
	"generated events do not have a corresponding event request and may not be cleared "
	"using this command."
        (Out
            (byte eventKind "Event kind to clear")
            (int requestID "ID of request to clear")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error VM_DEAD)
	    (Error INVALID_EVENT_TYPE)
        )
    )
    (Command ClearAllBreakpoints=3
        "Removes all set breakpoints, a no-op if there are no breakpoints set."
        (Out "none"
        )
        (Reply "none"
        )
        (ErrorSet
            (Error VM_DEAD)
        )
    )
)
(CommandSet StackFrame=16
    (Command GetValues=1
        "Returns the value of one or more local variables in a "
	"given frame. Each variable must be visible at the frame's code index. "
	"Even if local variable information is not available, values can "
	"be retrieved if the front-end is able to "
	"determine the correct local variable index. (Typically, this "
	"index can be determined for method arguments from the method "
	"signature without access to the local variable table information.) "
        (Out
            (threadObject thread "The frame's thread. ")
            (frame frame "The frame ID. ")
            (Repeat slots "The number of values to get. "
                (Group SlotInfo 
                    (int slot "The local variable's index in the frame. ")
                    (byte sigbyte "A <a href=\"#JDWP_Tag\">tag</a> "
		                  "identifying the type of the variable ")
                )
            )   
        )
        (Reply
            (Repeat values "The number of values retrieved, always equal to slots, "
	    		   "the number of values to get."	    
                (value slotValue "The value of the local variable. ")
            )
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT)
            (Error INVALID_FRAMEID)
	    (Error INVALID_SLOT)
            (Error VM_DEAD)
        )
    )
    (Command SetValues=2
        "Sets the value of one or more local variables. "
	"Each variable must be visible at the current frame code index. "
	"For primitive values, the value's type must match the "
	"variable's type exactly. For object values, there must be a "
	"widening reference conversion from the value's type to the 
	"variable's type and the variable's type must be loaded. "
	"<p>"
	"Even if local variable information is not available, values can "
	"be set, if the front-end is able to "
	"determine the correct local variable index. (Typically, this 
	"index can be determined for method arguments from the method "
	"signature without access to the local variable table information.) "
        (Out
            (threadObject thread "The frame's thread. ")
            (frame frame "The frame ID. ")
            (Repeat slotValues "The number of values to set. "
                (Group SlotInfo 
                    (int slot "The slot ID. ")
                    (value slotValue "The value to set. ")
                )
            )   
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT)
            (Error INVALID_FRAMEID)
            (Error VM_DEAD)
        )
    )
    (Command ThisObject=3
        "Returns the value of the 'this' reference for this frame. "
        "If the frame's method is static or native, the reply "
        "will contain the null object reference. "
        (Out
            (threadObject thread "The frame's thread. ")
            (frame frame "The frame ID. ")
        )
        (Reply
            (tagged-object objectThis "The 'this' object for this frame. ")
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT)
            (Error INVALID_FRAMEID)
            (Error VM_DEAD)
        )
    )
    (Command PopFrames=4	
	"Pop the top-most stack frames of the thread stack, up to, and including 'frame'. "
	"The thread must be suspended to perform this command. "
	"The top-most stack frames are discarded and the stack frame previous to 'frame' "
	"becomes the current frame. The operand stack is restored -- the argument values "
	"are added back and if the invoke was not <code>invokestatic</code>, "
	"<code>objectref</code> is added back as well. The Java virtual machine "
	"program counter is restored to the opcode of the invoke instruction."	
	"<p>"
        "Since JDWP version 1.4. Requires canPopFrames capability - see "
	"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
        (Out
            (threadObject thread "The thread object ID. ")
            (frame frame "The frame ID. ")
        )
        (Reply "none"
        )
        (ErrorSet
            (Error INVALID_THREAD)
            (Error INVALID_OBJECT    "thread is not a known ID.")
            (Error INVALID_FRAMEID)
            (Error THREAD_NOT_SUSPENDED)
            (Error NO_MORE_FRAMES)
            (Error INVALID_FRAMEID)
            (Error NOT_IMPLEMENTED)
            (Error VM_DEAD)
        )
    )
)
(CommandSet ClassObjectReference=17
    (Command ReflectedType = 1
        "Returns the reference type reflected by this class object."
        (Out
            (classObject classObject "The class object. ")
        )
        (Reply
	    (byte refTypeTag  "<a href=\"#JDWP_TypeTag\">Kind</a> "
			      "of following reference type. ")
	    (referenceTypeID typeID "reflected reference type")
        )
        (ErrorSet
            (Error INVALID_OBJECT)
            (Error VM_DEAD)
        )
    )
)
(CommandSet Event=64
    (Command Composite=100
	"Several events may occur at a given time in the target VM. "
	"For example, there may be more than one breakpoint request "
	"for a given location "
	"or you might single step to the same location as a "
	"breakpoint request.  These events are delivered "
	"together as a composite event.  For uniformity, a " 
	"composite event is always used "
	"to deliver events, even if there is only one event to report. "
	"<P>"
	"The events that are grouped in a composite event are restricted in the "
	"following ways: "
	"<P>"
	"<UL>"
	"<LI>Only with other thread start events for the same thread:"
	"    <UL>"
	"    <LI>Thread Start Event"
	"    </UL>"
	"<LI>Only with other thread death events for the same thread:"
	"    <UL>"
	"    <LI>Thread Death Event"
	"    </UL>"
	"<LI>Only with other class prepare events for the same class:"
	"    <UL>"
	"    <LI>Class Prepare Event"
	"    </UL>"
	"<LI>Only with other class unload events for the same class:"
	"    <UL>"
	"    <LI>Class Unload Event"
	"    </UL>"
	"<LI>Only with other access watchpoint events for the same field access:"
	"    <UL>"
	"    <LI>Access Watchpoint Event"
	"    </UL>"
	"<LI>Only with other modification watchpoint events for the same field "
	"modification:"
	"    <UL>"
	"    <LI>Modification Watchpoint Event"
	"    </UL>"
	"<LI>Only with other Monitor contended enter events for the same monitor object: "
	"    <UL>"
	"    <LI>Monitor Contended Enter Event"
	"    </UL>"
	"<LI>Only with other Monitor contended entered events for the same monitor object: "
	"    <UL>"
	"    <LI>Monitor Contended Entered Event"
	"    </UL>"
	"<LI>Only with other Monitor wait events for the same monitor object: "
	"    <UL>"
	"    <LI>Monitor Wait Event"
	"    </UL>"
	"<LI>Only with other Monitor waited events for the same monitor object: "
	"    <UL>"
	"    <LI>Monitor Waited Event"
	"    </UL>"
	"<LI>Only with other ExceptionEvents for the same exception occurrance:"
	"    <UL>"
	"    <LI>ExceptionEvent"
	"    </UL>"
	"<LI>Only with other members of this group, at the same location "
	"and in the same thread: "
	"    <UL>"
	"    <LI>Breakpoint Event"
	"    <LI>Step Event"
	"    <LI>Method Entry Event"
	"    <LI>Method Exit Event"
	"    </UL>"
	"</UL>"
	"<P>"
	"The VM Start Event and VM Death Event are automatically generated events. "
	"This means they do not need to be requested using the "
	"<a href=\"#JDWP_EventRequest_Set\">EventRequest.Set</a> command. "
	"The VM Start event signals the completion of VM initialization. The VM Death "
	"event signals the termination of the VM." 	
	"If there is a debugger connected at the time when an automatically generated "
	"event occurs it is sent from the target VM. Automatically generated events may "
	"also be requested using the EventRequest.Set command and thus multiple events "
	"of the same event kind will be sent from the target VM when an event occurs."
	"Automatically generated events are sent with the requestID field "
	"in the Event Data set to 0. The value of the suspendPolicy field in the "
	"Event Data depends on the event. For the automatically generated VM Start "
	"Event the value of suspendPolicy is not defined and is therefore implementation "
	"or configuration specific. In the Sun implementation, for example, the "
	"suspendPolicy is specified as an option to the JDWP agent at launch-time."
	"The automatically generated VM Death Event will have the suspendPolicy set to "
	"NONE."			
	
       (Event "Generated event"
            (byte suspendPolicy 
                "Which threads where suspended by this composite event?")
            (Repeat events "Events in set."
                (Select Events
                    (byte eventKind "Event kind selector")
                    (Alt VMStart=JDWP.EventKind.VM_START 
			"Notification of initialization of a target VM.  This event is "
			"received before the main thread is started and before any "
			"application code has been executed. Before this event occurs "
			"a significant amount of system code has executed and a number "
			"of system classes have been loaded. "
			"This event is always generated by the target VM, even "
			"if not explicitly requested."
			
                     (int requestID 
			     "Request that generated event (or 0 if this "
			     "event is automatically generated.")
                        (threadObject thread "Initial thread")
                    ) 
                    (Alt SingleStep=JDWP.EventKind.SINGLE_STEP 
			"Notification of step completion in the target VM. The step event "
			"is generated before the code at its location is executed. "
			
                        (int requestID "Request that generated event")
                        (threadObject thread "Stepped thread")
                        (location location "Location stepped to")
                    ) 
                    (Alt Breakpoint=JDWP.EventKind.BREAKPOINT
			"Notification of a breakpoint in the target VM. The breakpoint event "
			"is generated before the code at its location is executed. "
			
                        (int requestID "Request that generated event")
                        (threadObject thread "Thread which hit breakpoint")
                        (location location "Location hit")
                    ) 
                    (Alt MethodEntry=JDWP.EventKind.METHOD_ENTRY
			 "Notification of a method invocation in the target VM. This event "
			 "is generated before any code in the invoked method has executed. "
			 "Method entry events are generated for both native and non-native "
			 "methods. "
			 "<P>"
			 "In some VMs method entry events can occur for a particular thread "
			 "before its thread start event occurs if methods are called "
			 "as part of the thread's initialization. "

                        (int requestID "Request that generated event")
                        (threadObject thread "Thread which entered method")
                        (location location "The initial executable location in the method.")
                    ) 
                    (Alt MethodExit=JDWP.EventKind.METHOD_EXIT
			 "Notification of a method return in the target VM. This event "
			 "is generated after all code in the method has executed, but the "
			 "location of this event is the last executed location in the method. "
			 "Method exit events are generated for both native and non-native "
			 "methods. Method exit events are not generated if the method terminates "
			 "with a thrown exception. "
			 
                        (int requestID "Request that generated event")
                        (threadObject thread "Thread which exited method")
                        (location location "Location of exit")
                    ) 
                    (Alt MethodExitWithReturnValue=JDWP.EventKind.METHOD_EXIT_WITH_RETURN_VALUE
			 "Notification of a method return in the target VM. This event "
			 "is generated after all code in the method has executed, but the "
			 "location of this event is the last executed location in the method. "
			 "Method exit events are generated for both native and non-native "
			 "methods. Method exit events are not generated if the method terminates "
			 "with a thrown exception. <p>Since JDWP version 1.6. "
			 
                        (int requestID "Request that generated event")
                        (threadObject thread "Thread which exited method")
                        (location location "Location of exit")
                        (value value "Value that will be returned by the method")
                    )
                    (Alt MonitorContendedEnter=JDWP.EventKind.MONITOR_CONTENDED_ENTER		    
			 "Notification that a thread in the target VM is attempting "
			 "to enter a monitor that is already acquired by another thread. "
			 "Requires canRequestMonitorEvents capability - see "
			 "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
			 "<p>Since JDWP version 1.6. "

                        (int requestID 
                                "Request that generated event")
		        (threadObject thread "Thread which is trying to enter the monitor")
			(tagged-object object "Monitor object reference")
		        (location location "Location of contended monitor enter")
                    )
                    (Alt MonitorContendedEntered=JDWP.EventKind.MONITOR_CONTENDED_ENTERED		    
 			 "Notification of a thread in the target VM is entering a monitor "
		         "after waiting for it to be released by another thread. "
			 "Requires canRequestMonitorEvents capability - see "
			 "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
			 "<p>Since JDWP version 1.6. "

                        (int requestID 
                                "Request that generated event")
		        (threadObject thread "Thread which entered monitor")
			(tagged-object object "Monitor object reference")
		        (location location "Location of contended monitor enter")
                    )
                    (Alt MonitorWait=JDWP.EventKind.MONITOR_WAIT		    
                         "Notification of a thread about to wait on a monitor object. "
			 "Requires canRequestMonitorEvents capability - see "
			 "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
			 "<p>Since JDWP version 1.6. "
 
                        (int requestID 
                                "Request that generated event")
		        (threadObject thread "Thread which is about to wait")
			(tagged-object object "Monitor object reference")
		        (location location "Location at which the wait will occur")
			(long     timeout  "Thread wait time in milliseconds")
                    )
                    (Alt MonitorWaited=JDWP.EventKind.MONITOR_WAITED		
			 "Notification that a thread in the target VM has finished waiting on "
			 "Requires canRequestMonitorEvents capability - see "
			 "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
		         "a monitor object. "
			 "<p>Since JDWP version 1.6. "

                        (int requestID 
                                "Request that generated event")
		        (threadObject thread "Thread which waited")
			(tagged-object object "Monitor object reference")
		        (location location "Location at which the wait occured")
			(boolean  timed_out "True if timed out")
                    )
                    (Alt Exception=JDWP.EventKind.EXCEPTION
			 "Notification of an exception in the target VM. "
			 "If the exception is thrown from a non-native method, "
			 "the exception event is generated at the location where the "
			 "exception is thrown. "
			 "If the exception is thrown from a native method, the exception event "
			 "is generated at the first non-native location reached after the exception "
			 "is thrown. "

                        (int requestID "Request that generated event")
                        (threadObject thread "Thread with exception")
                        (location location "Location of exception throw "
			"(or first non-native location after throw if thrown from a native method)")
                        (tagged-object exception "Thrown exception")
                        (location catchLocation 
			    "Location of catch, or 0 if not caught. An exception "
			    "is considered to be caught if, at the point of the throw, the "
			    "current location is dynamically enclosed in a try statement that "
			    "handles the exception. (See the JVM specification for details). "
			    "If there is such a try statement, the catch location is the "
			    "first location in the appropriate catch clause. "
			    "<p>"
			    "If there are native methods in the call stack at the time of the "
			    "exception, there are important restrictions to note about the "
			    "returned catch location. In such cases, "
			    "it is not possible to predict whether an exception will be handled "
			    "by some native method on the call stack. "
			    "Thus, it is possible that exceptions considered uncaught "
			    "here will, in fact, be handled by a native method and not cause "
			    "termination of the target VM. Furthermore, it cannot be assumed that the "
			    "catch location returned here will ever be reached by the throwing "
			    "thread. If there is "
			    "a native frame between the current location and the catch location, "
			    "the exception might be handled and cleared in that native method "
			    "instead. "
			    "<p>"
			    "Note that compilers can generate try-catch blocks in some cases "
			    "where they are not explicit in the source code; for example, "
			    "the code generated for <code>synchronized</code> and "
			    "<code>finally</code> blocks can contain implicit try-catch blocks. "
			    "If such an implicitly generated try-catch is "
			    "present on the call stack at the time of the throw, the exception "
			    "will be considered caught even though it appears to be uncaught from "
			    "examination of the source code. "
			)
                    ) 
                    (Alt ThreadStart=JDWP.EventKind.THREAD_START
			"Notification of a new running thread in the target VM. "
			"The new thread can be the result of a call to "
			"<code>java.lang.Thread.start</code> or the result of "
			"attaching a new thread to the VM though JNI. The "
			"notification is generated by the new thread some time before "
			"its execution starts. "
			"Because of this timing, it is possible to receive other events "
			"for the thread before this event is received. (Notably, "
			"Method Entry Events and Method Exit Events might occur "
			"during thread initialization. "
			"It is also possible for the "
   		        "<a href=\"#JDWP_VirtualMachine_AllThreads\">VirtualMachine AllThreads</a> "
			"command to return "
			"a thread before its thread start event is received. "
			"<p>"
			"Note that this event gives no information "
			"about the creation of the thread object which may have happened "
			"much earlier, depending on the VM being debugged. "
      	    
                        (int requestID "Request that generated event")
                        (threadObject thread "Started thread")
                    ) 
                    (Alt ThreadDeath=JDWP.EventKind.THREAD_DEATH
			"Notification of a completed thread in the target VM. The "
			"notification is generated by the dying thread before it terminates. "
			"Because of this timing, it is possible "
			"for {@link VirtualMachine#allThreads} to return this thread "
			"after this event is received. "
			"<p>"
			"Note that this event gives no information "
			"about the lifetime of the thread object. It may or may not be collected "
			"soon depending on what references exist in the target VM. "
		    
                        (int requestID "Request that generated event")
                        (threadObject thread "Ending thread")
                    ) 
                    (Alt ClassPrepare=JDWP.EventKind.CLASS_PREPARE
			"Notification of a class prepare in the target VM. See the JVM "
			"specification for a definition of class preparation. Class prepare "
			"events are not generated for primtiive classes (for example, "
			"java.lang.Integer.TYPE). "
			
                        (int requestID "Request that generated event")
                        (threadObject thread "Preparing thread. "
			     "In rare cases, this event may occur in a debugger system "
			     "thread within the target VM. Debugger threads take precautions "
			     "to prevent these events, but they cannot be avoided under some "
			     "conditions, especially for some subclasses of "
			     "java.lang.Error. "
			     "If the event was generated by a debugger system thread, the "
			     "value returned by this method is null, and if the requested  "
			     "<a href=\"#JDWP_SuspendPolicy\">suspend policy</a> "
			     "for the event was EVENT_THREAD "
			     "all threads will be suspended instead, and the "
			     "composite event's suspend policy will reflect this change. "
			     "<p>"
			     "Note that the discussion above does not apply to system threads "
			     "created by the target VM during its normal (non-debug) operation. "
			)
                        (byte refTypeTag  "Kind of reference type. "
                           "See <a href=\"#JDWP_TypeTag\">JDWP.TypeTag</a>")
                        (referenceTypeID typeID "Type being prepared")
                        (string signature "Type signature")
                        (int status "Status of type. "
                         "See <a href=\"#JDWP_ClassStatus\">JDWP.ClassStatus</a>")
                    ) 
                    (Alt ClassUnload=JDWP.EventKind.CLASS_UNLOAD
			 "Notification of a class unload in the target VM. "
			 "<p>"
			 "There are severe constraints on the debugger back-end during "
			 "garbage collection, so unload information is greatly limited.	"
			 
                        (int requestID "Request that generated event")
                        (string signature "Type signature")
                    )
                    (Alt FieldAccess=JDWP.EventKind.FIELD_ACCESS
			"Notification of a field access in the target VM. "
			"Field modifications "
			"are not considered field accesses. "
			"Requires canWatchFieldAccess capability - see "
			"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
			
                      (int requestID "Request that generated event")
                        (threadObject thread "Accessing thread")
                        (location location "Location of access")
                        (byte refTypeTag  "Kind of reference type. "
                           "See <a href=\"#JDWP_TypeTag\">JDWP.TypeTag</a>")
                        (referenceTypeID typeID "Type of field")
                        (field fieldID "Field being accessed")
                        (tagged-object object
                                "Object being accessed (null=0 for statics")
                    )
                    (Alt FieldModification=JDWP.EventKind.FIELD_MODIFICATION
			"Notification of a field modification in the target VM. "
			"Requires canWatchFieldModification capability - see "
			"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
			
                        (int requestID "Request that generated event")
                        (threadObject thread "Modifying thread")
                        (location location "Location of modify")
                        (byte refTypeTag  "Kind of reference type. "
                           "See <a href=\"#JDWP_TypeTag\">JDWP.TypeTag</a>")
                        (referenceTypeID typeID "Type of field")
                        (field fieldID "Field being modified")
                        (tagged-object object
                                "Object being modified (null=0 for statics")
                        (value valueToBe "Value to be assigned")
                    )
		    (Alt VMDeath=JDWP.EventKind.VM_DEATH		    
                        (int requestID 
                                "Request that generated event")
                    ) 
                )
            )
        )
    )
)
(ConstantSet Error
    (Constant NONE                   =0   "No error has occurred.")
    (Constant INVALID_THREAD         =10  "Passed thread is null, is not a valid thread or has exited.")
    (Constant INVALID_THREAD_GROUP   =11  "Thread group invalid.")   
    (Constant INVALID_PRIORITY       =12  "Invalid priority.")   
    (Constant THREAD_NOT_SUSPENDED   =13  "If the specified thread has not been "
                                          "suspended by an event.")   
    (Constant THREAD_SUSPENDED       =14  "Thread already suspended.")   
    (Constant THREAD_NOT_ALIVE       =15  "Thread has not been started or is now dead.")   

    (Constant INVALID_OBJECT         =20  "If this reference type has been unloaded "
                                          "and garbage collected.")   
    (Constant INVALID_CLASS          =21  "Invalid class.")  
    (Constant CLASS_NOT_PREPARED     =22  "Class has been loaded but not yet prepared.")   
    (Constant INVALID_METHODID       =23  "Invalid method.")   
    (Constant INVALID_LOCATION       =24  "Invalid location.")   
    (Constant INVALID_FIELDID        =25  "Invalid field.") 
    (Constant INVALID_FRAMEID        =30  "Invalid jframeID.")   
    (Constant NO_MORE_FRAMES         =31  "There are no more Java or JNI frames on the "
                                          "call stack.")   
    (Constant OPAQUE_FRAME           =32  "Information about the frame is not available.")  
    (Constant NOT_CURRENT_FRAME      =33  "Operation can only be performed on current frame.")
    (Constant TYPE_MISMATCH          =34  "The variable is not an appropriate type for "
                                          "the function used.")   
    (Constant INVALID_SLOT           =35  "Invalid slot.")  
    (Constant DUPLICATE              =40  "Item already set.")   
    (Constant NOT_FOUND              =41  "Desired element not found.")   
    (Constant INVALID_MONITOR        =50  "Invalid monitor.")   
    (Constant NOT_MONITOR_OWNER      =51  "This thread doesn't own the monitor.")   
    (Constant INTERRUPT              =52  "The call has been interrupted before completion.")   
    (Constant INVALID_CLASS_FORMAT   =60  "The virtual machine attempted to read a class "
                                          "file and determined that the file is malformed "
                                          "or otherwise cannot be interpreted as a class file.")
    (Constant CIRCULAR_CLASS_DEFINITION
                                     =61  "A circularity has been detected while "
                                          "initializing a class.")
    (Constant FAILS_VERIFICATION     =62  "The verifier detected that a class file, "
                                          "though well formed, contained some sort of "
                                          "internal inconsistency or security problem.")   
    (Constant ADD_METHOD_NOT_IMPLEMENTED
                                     =63  "Adding methods has not been implemented.")   
    (Constant SCHEMA_CHANGE_NOT_IMPLEMENTED
                                     =64  "Schema change has not been implemented.")   
    (Constant INVALID_TYPESTATE      =65  "The state of the thread has been modified, "
                                          "and is now inconsistent.")   
    (Constant HIERARCHY_CHANGE_NOT_IMPLEMENTED
                                     =66  "A direct superclass is different for the new class "
                                          "version, or the set of directly implemented "
                                          "interfaces is different "
                                          "and canUnrestrictedlyRedefineClasses is false.")   
    (Constant DELETE_METHOD_NOT_IMPLEMENTED
                                     =67  "The new class version does not declare a method "
                                          "declared in the old class version "
                                          "and canUnrestrictedlyRedefineClasses is false.")   
    (Constant UNSUPPORTED_VERSION    =68  "A class file has a version number not supported "
                                          "by this VM.")   
    (Constant NAMES_DONT_MATCH       =69  "The class name defined in the new class file is "
                                          "different from the name in the old class object.")   
    (Constant CLASS_MODIFIERS_CHANGE_NOT_IMPLEMENTED 
                                     =70  "The new class version has different modifiers and "
                                          "and canUnrestrictedlyRedefineClasses is false.")   
    (Constant METHOD_MODIFIERS_CHANGE_NOT_IMPLEMENTED
                                     =71  "A method in the new class version has "
                                          "different modifiers "
                                          "than its counterpart in the old class version and "
                                          "and canUnrestrictedlyRedefineClasses is false.")   
    (Constant NOT_IMPLEMENTED        =99  "The functionality is not implemented in "
                                          "this virtual machine.")
    (Constant NULL_POINTER           =100 "Invalid pointer.")   
    (Constant ABSENT_INFORMATION     =101 "Desired information is not available.")   
    (Constant INVALID_EVENT_TYPE     =102 "The specified event type id is not recognized.")   
    (Constant ILLEGAL_ARGUMENT       =103 "Illegal argument.")   
    (Constant OUT_OF_MEMORY          =110 "The function needed to allocate memory and "
                                          "no more memory was available for allocation.")   
    (Constant ACCESS_DENIED          =111 "Debugging has not been enabled in this "
                                          "virtual machine. JVMTI cannot be used.")   
    (Constant VM_DEAD                =112 "The virtual machine is not running.")   
    (Constant INTERNAL               =113 "An unexpected internal error has occurred.")   
    (Constant UNATTACHED_THREAD      =115 "The thread being used to call this function "
                                          "is not attached to the virtual machine. "
                                          "Calls must be made from attached threads.")   
    (Constant INVALID_TAG            =500 "object type id or class tag.")  
    (Constant ALREADY_INVOKING       =502 "Previous invoke not complete.")   
    (Constant INVALID_INDEX          =503 "Index is invalid.")   
    (Constant INVALID_LENGTH         =504 "The length is invalid.")   
    (Constant INVALID_STRING         =506 "The string is invalid.")   
    (Constant INVALID_CLASS_LOADER   =507 "The class loader is invalid.")   
    (Constant INVALID_ARRAY          =508 "The array is invalid.")   
    (Constant TRANSPORT_LOAD         =509 "Unable to load the transport.")   
    (Constant TRANSPORT_INIT         =510 "Unable to initialize the transport.")
    (Constant NATIVE_METHOD          =511  )
    (Constant INVALID_COUNT          =512 "The count is invalid.")   
)
(ConstantSet EventKind
    (Constant SINGLE_STEP            =1   )
    (Constant BREAKPOINT             =2   )
    (Constant FRAME_POP              =3   )
    (Constant EXCEPTION              =4   )
    (Constant USER_DEFINED           =5   )
    (Constant THREAD_START           =6   )
    (Constant THREAD_DEATH           =7   )
    (Constant THREAD_END             =7   "obsolete - was used in jvmdi")
    (Constant CLASS_PREPARE          =8   )
    (Constant CLASS_UNLOAD           =9   )
    (Constant CLASS_LOAD             =10  )
    (Constant FIELD_ACCESS           =20  )
    (Constant FIELD_MODIFICATION     =21  )
    (Constant EXCEPTION_CATCH        =30  )
    (Constant METHOD_ENTRY           =40  )
    (Constant METHOD_EXIT            =41  )
    (Constant METHOD_EXIT_WITH_RETURN_VALUE =42  )
    (Constant MONITOR_CONTENDED_ENTER          =43  )
    (Constant MONITOR_CONTENDED_ENTERED        =44 )
    (Constant MONITOR_WAIT           =45 )
    (Constant MONITOR_WAITED         =46 )
    (Constant VM_START               =90  )
    (Constant VM_INIT                =90  "obsolete - was used in jvmdi")
    (Constant VM_DEATH               =99  )
    (Constant VM_DISCONNECTED        =100 "Never sent across JDWP")
)

(ConstantSet ThreadStatus
    (Constant ZOMBIE                 =0  )
    (Constant RUNNING                =1  )
    (Constant SLEEPING               =2  )
    (Constant MONITOR                =3  )
    (Constant WAIT                   =4  )
)

(ConstantSet SuspendStatus
    (Constant SUSPEND_STATUS_SUSPENDED = 0x1 )             
)
(ConstantSet ClassStatus
    (Constant VERIFIED               =1  )
    (Constant PREPARED               =2  )
    (Constant INITIALIZED            =4  )
    (Constant ERROR                  =8  )
)
(ConstantSet TypeTag
    (Constant CLASS=1 "ReferenceType is a class. ")             
    (Constant INTERFACE=2 "ReferenceType is an interface. ")             
    (Constant ARRAY=3 "ReferenceType is an array. ")             
)
(ConstantSet Tag
    (Constant ARRAY = '[' "'[' - an array object (objectID size). ")
    (Constant BYTE = 'B' "'B' - a byte value (1 byte).")
    (Constant CHAR = 'C' "'C' - a character value (2 bytes).")
    (Constant OBJECT = 'L' "'L' - an object (objectID size).")
    (Constant FLOAT = 'F' "'F' - a float value (4 bytes).")
    (Constant DOUBLE = 'D' "'D' - a double value (8 bytes).")
    (Constant INT = 'I' "'I' - an int value (4 bytes).")
    (Constant LONG = 'J' "'J' - a long value (8 bytes).")
    (Constant SHORT = 'S' "'S' - a short value (2 bytes).")
    (Constant VOID = 'V' "'V' - a void value (no bytes).")
    (Constant BOOLEAN = 'Z' "'Z' - a boolean value (1 byte).")
    (Constant STRING = 's' "'s' - a String object (objectID size). ")
    (Constant THREAD = 't' "'t' - a Thread object (objectID size). ")
    (Constant THREAD_GROUP = 'g' 
        "'g' - a ThreadGroup object (objectID size). ")
    (Constant CLASS_LOADER = 'l' 
        "'l' - a ClassLoader object (objectID size). ")
    (Constant CLASS_OBJECT = 'c' 
        "'c' - a class object object (objectID size). ")
)

(ConstantSet StepDepth
    (Constant INTO = 0 
        "Step into any method calls that occur before the end of the step. ")
    (Constant OVER = 1 
        "Step over any method calls that occur before the end of the step. ")
    (Constant OUT = 2 
        "Step out of the current method. ")
)

(ConstantSet StepSize
    (Constant MIN = 0 
        "Step by the minimum possible amount (often a bytecode instruction). ")
    (Constant LINE = 1 
        "Step to the next source line unless there is no line number information in which case a MIN step is done instead.")
)

(ConstantSet SuspendPolicy
    (Constant NONE = 0 
        "Suspend no threads when this event is encountered. ")
    (Constant EVENT_THREAD = 1 
        "Suspend the event thread when this event is encountered. ")
    (Constant ALL = 2 
        "Suspend all threads when this event is encountered. ")
)
	
(ConstantSet InvokeOptions
    "The invoke options are a combination of zero or more of the following bit flags:"
    (Constant INVOKE_SINGLE_THREADED = 0x01
        "otherwise, all threads started. ")
    (Constant INVOKE_NONVIRTUAL = 0x02
        "otherwise, normal virtual invoke (instance methods only)")
)