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
@@ -0,0 +1,640 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 267
13
+ 45
14
+ 0
15
+ 1
16
+ 49
17
+ 2
18
+ 0
19
+ 7
20
+ 3
21
+ 7
22
+ 4
23
+ 13
24
+ 18
25
+ 3
26
+ 49
27
+ 5
28
+ 2
29
+ 15
30
+ 15
31
+ 45
32
+ 0
33
+ 6
34
+ 49
35
+ 2
36
+ 0
37
+ 7
38
+ 7
39
+ 49
40
+ 8
41
+ 1
42
+ 7
43
+ 4
44
+ 44
45
+ 43
46
+ 9
47
+ 4
48
+ 5
49
+ 49
50
+ 10
51
+ 1
52
+ 13
53
+ 7
54
+ 11
55
+ 7
56
+ 12
57
+ 64
58
+ 49
59
+ 5
60
+ 2
61
+ 15
62
+ 13
63
+ 7
64
+ 13
65
+ 7
66
+ 14
67
+ 64
68
+ 49
69
+ 5
70
+ 2
71
+ 15
72
+ 13
73
+ 7
74
+ 15
75
+ 7
76
+ 14
77
+ 64
78
+ 49
79
+ 5
80
+ 2
81
+ 15
82
+ 13
83
+ 7
84
+ 16
85
+ 1
86
+ 49
87
+ 5
88
+ 2
89
+ 15
90
+ 13
91
+ 7
92
+ 17
93
+ 7
94
+ 18
95
+ 64
96
+ 49
97
+ 5
98
+ 2
99
+ 15
100
+ 13
101
+ 18
102
+ 3
103
+ 49
104
+ 5
105
+ 2
106
+ 15
107
+ 15
108
+ 5
109
+ 7
110
+ 19
111
+ 64
112
+ 47
113
+ 49
114
+ 20
115
+ 1
116
+ 15
117
+ 5
118
+ 7
119
+ 21
120
+ 64
121
+ 47
122
+ 49
123
+ 20
124
+ 1
125
+ 15
126
+ 99
127
+ 43
128
+ 22
129
+ 7
130
+ 23
131
+ 49
132
+ 24
133
+ 1
134
+ 9
135
+ 127
136
+ 7
137
+ 25
138
+ 8
139
+ 128
140
+ 1
141
+ 13
142
+ 9
143
+ 140
144
+ 15
145
+ 99
146
+ 43
147
+ 22
148
+ 7
149
+ 23
150
+ 49
151
+ 8
152
+ 1
153
+ 9
154
+ 152
155
+ 5
156
+ 7
157
+ 26
158
+ 64
159
+ 47
160
+ 49
161
+ 20
162
+ 1
163
+ 8
164
+ 153
165
+ 1
166
+ 15
167
+ 99
168
+ 43
169
+ 22
170
+ 7
171
+ 27
172
+ 49
173
+ 24
174
+ 1
175
+ 9
176
+ 168
177
+ 7
178
+ 25
179
+ 8
180
+ 169
181
+ 1
182
+ 13
183
+ 9
184
+ 181
185
+ 15
186
+ 99
187
+ 43
188
+ 22
189
+ 7
190
+ 27
191
+ 49
192
+ 8
193
+ 1
194
+ 9
195
+ 193
196
+ 5
197
+ 7
198
+ 28
199
+ 64
200
+ 47
201
+ 49
202
+ 20
203
+ 1
204
+ 8
205
+ 194
206
+ 1
207
+ 15
208
+ 99
209
+ 43
210
+ 22
211
+ 7
212
+ 29
213
+ 49
214
+ 24
215
+ 1
216
+ 9
217
+ 209
218
+ 7
219
+ 25
220
+ 8
221
+ 210
222
+ 1
223
+ 13
224
+ 9
225
+ 222
226
+ 15
227
+ 99
228
+ 43
229
+ 22
230
+ 7
231
+ 29
232
+ 49
233
+ 8
234
+ 1
235
+ 9
236
+ 234
237
+ 5
238
+ 7
239
+ 30
240
+ 64
241
+ 47
242
+ 49
243
+ 20
244
+ 1
245
+ 8
246
+ 235
247
+ 1
248
+ 15
249
+ 99
250
+ 7
251
+ 31
252
+ 1
253
+ 45
254
+ 0
255
+ 32
256
+ 49
257
+ 33
258
+ 3
259
+ 13
260
+ 99
261
+ 12
262
+ 7
263
+ 34
264
+ 12
265
+ 7
266
+ 35
267
+ 12
268
+ 65
269
+ 12
270
+ 49
271
+ 36
272
+ 4
273
+ 15
274
+ 49
275
+ 34
276
+ 0
277
+ 15
278
+ 2
279
+ 11
280
+ I
281
+ 6
282
+ I
283
+ 0
284
+ I
285
+ 0
286
+ I
287
+ 0
288
+ n
289
+ p
290
+ 37
291
+ x
292
+ 3
293
+ IRB
294
+ n
295
+ x
296
+ 4
297
+ conf
298
+ x
299
+ 11
300
+ PROMPT_MODE
301
+ x
302
+ 6
303
+ SIMPLE
304
+ x
305
+ 3
306
+ []=
307
+ n
308
+ x
309
+ 6
310
+ PROMPT
311
+ x
312
+ 2
313
+ []
314
+ x
315
+ 4
316
+ Hash
317
+ x
318
+ 16
319
+ new_from_literal
320
+ x
321
+ 8
322
+ PROMPT_C
323
+ s
324
+ 11
325
+ trepanx ?>
326
+ x
327
+ 8
328
+ PROMPT_I
329
+ s
330
+ 11
331
+ trepanx >>
332
+ x
333
+ 8
334
+ PROMPT_N
335
+ x
336
+ 8
337
+ PROMPT_S
338
+ x
339
+ 6
340
+ RETURN
341
+ s
342
+ 6
343
+ => %s
344
+
345
+ s
346
+ 69
347
+ You are in a trepan session. You should have access to program scope.
348
+ x
349
+ 4
350
+ puts
351
+ s
352
+ 59
353
+ 'dbgr', 'step', 'ne', 'q', 'cont' commands have been added.
354
+ x
355
+ 7
356
+ Globals
357
+ x
358
+ 8
359
+ $trepanx
360
+ x
361
+ 4
362
+ key?
363
+ s
364
+ 15
365
+ global-variable
366
+ s
367
+ 69
368
+ You should have access to debugger state via global variable $trepanx
369
+ x
370
+ 14
371
+ $trepanx_frame
372
+ s
373
+ 78
374
+ You should have access to the program frame via global variable $trepanx_frame
375
+ x
376
+ 16
377
+ $trepanx_cmdproc
378
+ s
379
+ 84
380
+ You should have access to the command processor via global variable $trepanx_cmdproc
381
+ x
382
+ 7
383
+ Context
384
+ n
385
+ x
386
+ 16
387
+ open_class_under
388
+ x
389
+ 14
390
+ __class_init__
391
+ M
392
+ 1
393
+ n
394
+ n
395
+ x
396
+ 7
397
+ Context
398
+ i
399
+ 26
400
+ 5
401
+ 66
402
+ 5
403
+ 7
404
+ 0
405
+ 7
406
+ 1
407
+ 47
408
+ 49
409
+ 2
410
+ 2
411
+ 15
412
+ 99
413
+ 7
414
+ 1
415
+ 7
416
+ 3
417
+ 65
418
+ 67
419
+ 49
420
+ 4
421
+ 0
422
+ 49
423
+ 5
424
+ 4
425
+ 11
426
+ I
427
+ 5
428
+ I
429
+ 0
430
+ I
431
+ 0
432
+ I
433
+ 0
434
+ n
435
+ p
436
+ 6
437
+ x
438
+ 26
439
+ _trepanx_original_evaluate
440
+ x
441
+ 8
442
+ evaluate
443
+ x
444
+ 12
445
+ alias_method
446
+ M
447
+ 1
448
+ n
449
+ n
450
+ x
451
+ 8
452
+ evaluate
453
+ i
454
+ 21
455
+ 99
456
+ 43
457
+ 0
458
+ 7
459
+ 1
460
+ 20
461
+ 0
462
+ 49
463
+ 2
464
+ 2
465
+ 15
466
+ 5
467
+ 20
468
+ 0
469
+ 20
470
+ 1
471
+ 47
472
+ 49
473
+ 3
474
+ 2
475
+ 11
476
+ I
477
+ 5
478
+ I
479
+ 2
480
+ I
481
+ 2
482
+ I
483
+ 2
484
+ n
485
+ p
486
+ 4
487
+ x
488
+ 7
489
+ Globals
490
+ x
491
+ 23
492
+ $trepanx_irb_statements
493
+ x
494
+ 3
495
+ []=
496
+ x
497
+ 26
498
+ _trepanx_original_evaluate
499
+ p
500
+ 7
501
+ I
502
+ 0
503
+ I
504
+ 24
505
+ I
506
+ 0
507
+ I
508
+ 25
509
+ I
510
+ b
511
+ I
512
+ 26
513
+ I
514
+ 15
515
+ x
516
+ 50
517
+ /home/rocky-rvm/.rvm/src/rbx-trepanning/data/irbrc
518
+ p
519
+ 2
520
+ x
521
+ 4
522
+ line
523
+ x
524
+ 7
525
+ line_no
526
+ x
527
+ 17
528
+ method_visibility
529
+ x
530
+ 15
531
+ add_defn_method
532
+ p
533
+ 5
534
+ I
535
+ 2
536
+ I
537
+ 23
538
+ I
539
+ c
540
+ I
541
+ 24
542
+ I
543
+ 1a
544
+ x
545
+ 50
546
+ /home/rocky-rvm/.rvm/src/rbx-trepanning/data/irbrc
547
+ p
548
+ 0
549
+ x
550
+ 13
551
+ attach_method
552
+ p
553
+ 41
554
+ I
555
+ 0
556
+ I
557
+ 6
558
+ I
559
+ 12
560
+ I
561
+ 7
562
+ I
563
+ 1f
564
+ I
565
+ c
566
+ I
567
+ 28
568
+ I
569
+ 8
570
+ I
571
+ 32
572
+ I
573
+ 9
574
+ I
575
+ 3c
576
+ I
577
+ a
578
+ I
579
+ 46
580
+ I
581
+ b
582
+ I
583
+ 4e
584
+ I
585
+ c
586
+ I
587
+ 5f
588
+ I
589
+ 14
590
+ I
591
+ 68
592
+ I
593
+ 15
594
+ I
595
+ 71
596
+ I
597
+ 17
598
+ I
599
+ 8e
600
+ I
601
+ 18
602
+ I
603
+ 98
604
+ I
605
+ 17
606
+ I
607
+ 9a
608
+ I
609
+ 1a
610
+ I
611
+ b7
612
+ I
613
+ 1b
614
+ I
615
+ c1
616
+ I
617
+ 1a
618
+ I
619
+ c3
620
+ I
621
+ 1d
622
+ I
623
+ e0
624
+ I
625
+ 1e
626
+ I
627
+ ea
628
+ I
629
+ 1d
630
+ I
631
+ ec
632
+ I
633
+ 22
634
+ I
635
+ 10b
636
+ x
637
+ 50
638
+ /home/rocky-rvm/.rvm/src/rbx-trepanning/data/irbrc
639
+ p
640
+ 0
@@ -16,7 +16,7 @@ class Trepan
16
16
  # - another interface in another process or computer
17
17
  class Interface
18
18
 
19
- attr_accessor :interactive, :input, :output
19
+ attr_accessor :interactive, :history_io, :history_save, :input, :output
20
20
 
21
21
  unless defined?(YES)
22
22
  YES = %w(y yes oui si yep ja)
@@ -25,10 +25,14 @@ class Trepan
25
25
  end
26
26
 
27
27
  def initialize(inp=nil, out=nil, opts={})
28
- @input = inp || STDIN
29
- @interactive = false
30
- @opts = opts
31
- @output = out || STDOUT
28
+ @histfile = nil
29
+ @history_io = nil
30
+ @history_save = false
31
+ @histsize = nil
32
+ @input = inp || STDIN
33
+ @interactive = false
34
+ @opts = opts
35
+ @output = out || STDOUT
32
36
  end
33
37
 
34
38
  # Closes all input and/or output.