rbx-trepanning 0.0.4-universal-rubinius-1.2 → 0.0.6-universal-rubinius-1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/ChangeLog +682 -0
  2. data/NEWS +19 -0
  3. data/README.textile +8 -9
  4. data/Rakefile +8 -8
  5. data/app/complete.rb +52 -0
  6. data/app/complete.rbc +1288 -0
  7. data/app/irb.rb +1 -2
  8. data/app/irb.rbc +55 -72
  9. data/app/llvm.rbc +780 -878
  10. data/app/method.rb +1 -1
  11. data/app/method.rbc +31 -35
  12. data/app/method_name.rbc +2467 -0
  13. data/app/options.rb +7 -24
  14. data/app/options.rbc +238 -132
  15. data/app/rbx-llvm.rbc +2478 -0
  16. data/app/util.rb +3 -3
  17. data/app/util.rbc +23 -27
  18. data/bin/trepanx +4 -3
  19. data/bin/trepanx.compiled.rbc +42 -32
  20. data/data/irbrc +41 -0
  21. data/data/irbrc.compiled.rbc +640 -0
  22. data/interface/base_intf.rb +9 -5
  23. data/interface/base_intf.rbc +200 -146
  24. data/interface/comcodes.rb +10 -8
  25. data/interface/comcodes.rbc +68 -26
  26. data/interface/script.rbc +21 -9
  27. data/interface/user.rb +74 -8
  28. data/interface/user.rbc +1702 -156
  29. data/io/input.rb +37 -14
  30. data/io/input.rbc +869 -320
  31. data/io/tcpclient.rb +7 -1
  32. data/io/tcpclient.rbc +205 -113
  33. data/io/tcpfns.rb +5 -3
  34. data/io/tcpfns.rbc +82 -40
  35. data/io/tcpserver.rb +13 -10
  36. data/io/tcpserver.rbc +236 -183
  37. data/lib/trepanning.rb +62 -21
  38. data/lib/trepanning.rbc +1304 -874
  39. data/lib/{trepanning.rb.orig → trepanning2.rb} +12 -4
  40. data/processor/breakpoint.rb +4 -1
  41. data/processor/command/base/cmd.rb +48 -3
  42. data/processor/command/base/subcmd.rb +2 -1
  43. data/processor/command/base/submgr.rb +23 -20
  44. data/processor/command/base/subsubmgr.rb +13 -2
  45. data/processor/command/complete.rb +7 -17
  46. data/processor/command/continue.rb +19 -11
  47. data/processor/command/disassemble.rb +39 -12
  48. data/processor/command/eval.rb +23 -5
  49. data/processor/command/help.rb +60 -6
  50. data/processor/command/info_subcmd/{file.rb → files.rb} +76 -18
  51. data/processor/command/info_subcmd/line.rb +86 -0
  52. data/processor/command/info_subcmd/program.rb +2 -11
  53. data/processor/command/info_subcmd/ruby.rb +62 -0
  54. data/processor/command/info_subcmd/variables.rb +7 -0
  55. data/processor/command/irb.rb +39 -7
  56. data/processor/command/macro.rb +76 -0
  57. data/processor/command/set_subcmd/confirm.rb +24 -0
  58. data/processor/command/set_subcmd/max.rb +4 -5
  59. data/processor/command/show.rb +11 -0
  60. data/processor/command/show_subcmd/auto.rb +1 -0
  61. data/processor/command/show_subcmd/basename.rb +1 -2
  62. data/processor/command/show_subcmd/confirm.rb +18 -0
  63. data/processor/command/show_subcmd/max.rb +0 -2
  64. data/processor/command/source.rb +0 -1
  65. data/processor/default.rb +2 -0
  66. data/processor/disassemble.rb +1 -0
  67. data/processor/load_cmds.rb +104 -20
  68. data/processor/location.rb +11 -12
  69. data/processor/main.rb +10 -6
  70. data/processor/mock.rb +6 -2
  71. data/processor/stepping.rb +1 -4
  72. data/processor/subcmd.rb +3 -2
  73. data/processor/validate.rb +3 -3
  74. data/sample/list-terminal-colors.rbc +158 -4
  75. data/sample/rocky-trepanx-colors.rb +15 -7
  76. data/sample/rocky-trepanx-colors.rbc +530 -0
  77. data/test/data/quit2.cmd +6 -0
  78. data/test/data/quit2.right +3 -0
  79. data/test/data/step-bug.cmd +11 -0
  80. data/test/data/step-bug.right +3 -0
  81. data/test/example/step-bug.rb +14 -0
  82. data/test/integration/helper.rb +1 -1
  83. data/test/integration/skip-test-step-bug.rb +17 -0
  84. data/test/integration/test-quit.rb +11 -0
  85. data/test/unit/test-app-util.rb +0 -1
  86. data/test/unit/test-base-cmd.rb +47 -0
  87. data/test/unit/test-base-subcmd.rb +2 -2
  88. data/test/unit/test-base-submgr.rb +24 -0
  89. data/test/unit/test-cmd-help.rb +4 -0
  90. data/test/unit/test-completion.rb +38 -0
  91. data/test/unit/test-intf-user.rb +2 -2
  92. data/test/unit/test-io-tcpclient.rb +3 -2
  93. data/test/unit/test-proc-eval.rb +1 -1
  94. data/test/unit/test-proc-load_cmds.rb +9 -0
  95. data/test/unit/test-subcmd-help.rb +1 -5
  96. metadata +182 -167
  97. data/app/options.rb.orig +0 -154
  98. data/bin/trepan.orig +0 -0
  99. data/bin/trepan.rej +0 -11
  100. data/lib/trepanning.rb.rej +0 -11
  101. data/sample/rocky-dot-trepanrc.orig +0 -0
  102. data/sample/rocky-dot-trepanrc.rej +0 -11
data/app/irb.rb CHANGED
@@ -69,7 +69,7 @@ module IRB # :nodoc:
69
69
  def self.start_session(binding, dbg_cmdproc, conf={})
70
70
  unless @__initialized
71
71
 
72
- # Set to run the standard rbdbgr IRB profile
72
+ # Set to run the standard trepanx IRB profile
73
73
  irbrc = File.expand_path(File.join(File.dirname(__FILE__),
74
74
  %w(.. data irbrc)))
75
75
  ENV['IRBRC'] = irbrc
@@ -90,7 +90,6 @@ module IRB # :nodoc:
90
90
  end
91
91
 
92
92
  workspace = WorkSpace.new(binding)
93
- workspace.instance_variable_set('@dbg_cmdproc', dbg_cmdproc)
94
93
 
95
94
  irb = Irb.new(workspace)
96
95
 
data/app/irb.rbc CHANGED
@@ -643,18 +643,14 @@ x
643
643
  5
644
644
  throw
645
645
  p
646
- 23
646
+ 25
647
647
  I
648
- 0
648
+ -1
649
649
  I
650
650
  b
651
651
  I
652
652
  0
653
653
  I
654
- c
655
- I
656
- 0
657
- I
658
654
  d
659
655
  I
660
656
  1b
@@ -665,6 +661,10 @@ I
665
661
  I
666
662
  10
667
663
  I
664
+ 29
665
+ I
666
+ c
667
+ I
668
668
  2c
669
669
  I
670
670
  12
@@ -685,6 +685,10 @@ I
685
685
  I
686
686
  17
687
687
  I
688
+ 5e
689
+ I
690
+ 13
691
+ I
688
692
  62
689
693
  I
690
694
  1a
@@ -937,9 +941,9 @@ x
937
941
  11
938
942
  run_command
939
943
  p
940
- 15
944
+ 17
941
945
  I
942
- 0
946
+ -1
943
947
  I
944
948
  27
945
949
  I
@@ -959,6 +963,10 @@ I
959
963
  I
960
964
  2c
961
965
  I
966
+ 37
967
+ I
968
+ 28
969
+ I
962
970
  3b
963
971
  I
964
972
  2e
@@ -1271,7 +1279,7 @@ x
1271
1279
  13
1272
1280
  start_session
1273
1281
  i
1274
- 326
1282
+ 315
1275
1283
  23
1276
1284
  2
1277
1285
  10
@@ -1472,26 +1480,15 @@ i
1472
1480
  19
1473
1481
  5
1474
1482
  15
1475
- 20
1476
- 5
1477
- 7
1483
+ 45
1478
1484
  41
1479
- 64
1480
- 20
1481
- 1
1482
- 49
1483
1485
  42
1484
- 2
1485
- 15
1486
- 45
1487
- 43
1488
- 44
1489
1486
  13
1490
1487
  71
1491
1488
  38
1492
1489
  47
1493
1490
  9
1494
- 234
1491
+ 223
1495
1492
  47
1496
1493
  49
1497
1494
  39
@@ -1505,7 +1502,7 @@ i
1505
1502
  1
1506
1503
  15
1507
1504
  8
1508
- 239
1505
+ 228
1509
1506
  20
1510
1507
  5
1511
1508
  49
@@ -1517,39 +1514,39 @@ i
1517
1514
  39
1518
1515
  32
1519
1516
  7
1520
- 45
1517
+ 43
1521
1518
  49
1522
1519
  29
1523
1520
  1
1524
1521
  9
1525
- 268
1522
+ 257
1526
1523
  39
1527
1524
  32
1528
1525
  7
1529
- 45
1526
+ 43
1530
1527
  49
1531
1528
  29
1532
1529
  1
1533
1530
  20
1534
1531
  6
1535
1532
  49
1536
- 46
1533
+ 44
1537
1534
  0
1538
1535
  49
1539
- 47
1536
+ 45
1540
1537
  1
1541
1538
  8
1542
- 269
1539
+ 258
1543
1540
  1
1544
1541
  15
1545
1542
  39
1546
1543
  32
1547
1544
  7
1548
- 48
1545
+ 46
1549
1546
  20
1550
1547
  6
1551
1548
  49
1552
- 46
1549
+ 44
1553
1550
  0
1554
1551
  13
1555
1552
  18
@@ -1562,21 +1559,21 @@ i
1562
1559
  20
1563
1560
  2
1564
1561
  56
1565
- 49
1566
- 50
1562
+ 47
1567
1563
  50
1564
+ 48
1568
1565
  0
1569
1566
  15
1570
1567
  45
1571
1568
  23
1572
- 51
1573
1569
  49
1574
- 52
1570
+ 49
1571
+ 50
1575
1572
  0
1576
1573
  39
1577
1574
  32
1578
1575
  7
1579
- 53
1576
+ 51
1580
1577
  49
1581
1578
  29
1582
1579
  1
@@ -1584,18 +1581,18 @@ i
1584
1581
  18
1585
1582
  2
1586
1583
  49
1587
- 54
1584
+ 52
1588
1585
  1
1589
1586
  15
1590
1587
  15
1591
1588
  5
1592
1589
  7
1593
- 55
1594
- 56
1590
+ 53
1595
1591
  56
1592
+ 54
1596
1593
  47
1597
1594
  50
1598
- 57
1595
+ 55
1599
1596
  1
1600
1597
  11
1601
1598
  I
@@ -1608,7 +1605,7 @@ I
1608
1605
  3
1609
1606
  n
1610
1607
  p
1611
- 58
1608
+ 56
1612
1609
  x
1613
1610
  4
1614
1611
  Hash
@@ -1706,12 +1703,6 @@ allocate
1706
1703
  x
1707
1704
  10
1708
1705
  initialize
1709
- s
1710
- 12
1711
- @dbg_cmdproc
1712
- x
1713
- 21
1714
- instance_variable_set
1715
1706
  x
1716
1707
  3
1717
1708
  Irb
@@ -1788,7 +1779,7 @@ p
1788
1779
  I
1789
1780
  0
1790
1781
  I
1791
- 63
1782
+ 62
1792
1783
  I
1793
1784
  18
1794
1785
  x
@@ -1855,16 +1846,12 @@ x
1855
1846
  10
1856
1847
  eval_input
1857
1848
  p
1858
- 5
1849
+ 3
1859
1850
  I
1860
1851
  0
1861
1852
  I
1862
1853
  67
1863
1854
  I
1864
- 0
1865
- I
1866
- 68
1867
- I
1868
1855
  7
1869
1856
  x
1870
1857
  50
@@ -1875,9 +1862,9 @@ x
1875
1862
  5
1876
1863
  catch
1877
1864
  p
1878
- 49
1865
+ 47
1879
1866
  I
1880
- 0
1867
+ -1
1881
1868
  I
1882
1869
  45
1883
1870
  I
@@ -1947,33 +1934,29 @@ I
1947
1934
  I
1948
1935
  c8
1949
1936
  I
1950
- 5d
1937
+ 5e
1951
1938
  I
1952
- d3
1939
+ e7
1953
1940
  I
1954
- 5f
1941
+ 60
1955
1942
  I
1956
- f2
1943
+ 103
1957
1944
  I
1958
1945
  61
1959
1946
  I
1960
- 10e
1947
+ 114
1961
1948
  I
1962
1949
  62
1963
1950
  I
1964
- 11f
1965
- I
1966
- 63
1967
- I
1968
- 127
1951
+ 11c
1969
1952
  I
1970
- 65
1953
+ 64
1971
1954
  I
1972
- 13c
1955
+ 131
1973
1956
  I
1974
- 67
1957
+ 66
1975
1958
  I
1976
- 146
1959
+ 13b
1977
1960
  x
1978
1961
  50
1979
1962
  /home/rocky-rvm/.rvm/src/rbx-trepanning/app/irb.rb
@@ -2093,15 +2076,15 @@ I
2093
2076
  I
2094
2077
  23
2095
2078
  I
2096
- 6d
2079
+ 6c
2097
2080
  I
2098
2081
  33
2099
2082
  I
2100
- 6f
2083
+ 6e
2101
2084
  I
2102
2085
  4d
2103
2086
  I
2104
- 6d
2087
+ 6c
2105
2088
  I
2106
2089
  51
2107
2090
  x