trepanning 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +354 -0
- data/NEWS +21 -0
- data/Rakefile +27 -20
- data/app/cmd_parse.kpeg +20 -4
- data/app/cmd_parse.rb +11 -10
- data/app/cmd_parser.rb +119 -55
- data/app/complete.rb +1 -0
- data/app/core.rb +3 -3
- data/app/disassemble.rb +13 -3
- data/app/file.rb +2 -1
- data/app/frame.rb +3 -1
- data/app/mock.rb +3 -0
- data/app/options.rb +48 -31
- data/app/util.rb +50 -0
- data/interface/base_intf.rb +4 -0
- data/interface/client.rb +4 -0
- data/interface/script.rb +1 -1
- data/interface/server.rb +4 -0
- data/interface/user.rb +5 -0
- data/io/input.rb +3 -2
- data/io/null_output.rb +7 -1
- data/processor/breakpoint.rb +3 -2
- data/processor/command/base/subcmd.rb +1 -1
- data/processor/command/base/submgr.rb +4 -1
- data/processor/command/base/subsubcmd.rb +2 -2
- data/processor/command/base/subsubmgr.rb +1 -1
- data/processor/command/break.rb +7 -3
- data/processor/command/complete.rb +1 -0
- data/processor/command/continue.rb +1 -1
- data/processor/command/disassemble.rb +1 -1
- data/processor/command/edit.rb +35 -14
- data/processor/command/enable.rb +5 -3
- data/processor/command/eval.rb +35 -14
- data/processor/command/exit.rb +2 -0
- data/processor/command/help.rb +0 -9
- data/processor/command/help/command.txt +37 -27
- data/processor/command/help/examples.txt +16 -0
- data/processor/command/help/suffixes.txt +17 -0
- data/processor/command/info.rb +1 -1
- data/processor/command/info_subcmd/args.rb +7 -13
- data/processor/command/info_subcmd/breakpoints.rb +8 -2
- data/processor/command/info_subcmd/frame.rb +2 -0
- data/processor/command/info_subcmd/globals.rb +63 -0
- data/processor/command/info_subcmd/iseq.rb +3 -1
- data/processor/command/info_subcmd/locals.rb +16 -15
- data/processor/command/{show_subcmd → info_subcmd}/macro.rb +7 -7
- data/processor/command/info_subcmd/program.rb +2 -0
- data/processor/command/info_subcmd/registers.rb +5 -1
- data/processor/command/info_subcmd/registers_subcmd/dfp.rb +2 -3
- data/processor/command/info_subcmd/registers_subcmd/helper.rb +8 -9
- data/processor/command/info_subcmd/registers_subcmd/lfp.rb +10 -5
- data/processor/command/info_subcmd/registers_subcmd/pc.rb +9 -4
- data/processor/command/info_subcmd/registers_subcmd/sp.rb +4 -5
- data/processor/command/info_subcmd/ruby.rb +3 -1
- data/processor/command/info_subcmd/source.rb +78 -0
- data/processor/command/info_subcmd/stack.rb +23 -0
- data/processor/command/kill.rb +4 -6
- data/processor/command/list.rb +118 -120
- data/processor/command/macro.rb +1 -1
- data/processor/command/parsetree.rb +56 -0
- data/processor/command/pp.rb +40 -0
- data/processor/command/pr.rb +1 -2
- data/processor/command/quit.rb +2 -1
- data/processor/command/set_subcmd/abbrev.rb +24 -0
- data/processor/command/set_subcmd/auto_subcmd/eval.rb +1 -2
- data/processor/command/set_subcmd/auto_subcmd/irb.rb +2 -3
- data/processor/command/set_subcmd/auto_subcmd/list.rb +2 -3
- data/processor/command/set_subcmd/highlight.rb +8 -2
- data/processor/command/set_subcmd/reload.rb +41 -0
- data/processor/command/set_subcmd/timer.rb +8 -18
- data/processor/command/set_subcmd/trace.rb +2 -2
- data/processor/command/set_subcmd/trace_subcmd/buffer.rb +2 -2
- data/processor/command/set_subcmd/trace_subcmd/print.rb +3 -3
- data/processor/command/{irb.rb → shell.rb} +9 -6
- data/processor/command/show_subcmd/abbrev.rb +19 -0
- data/processor/command/show_subcmd/directories.rb +21 -0
- data/processor/command/show_subcmd/hidelevel.rb +1 -1
- data/processor/command/show_subcmd/highlight.rb +2 -1
- data/processor/command/show_subcmd/reload.rb +17 -0
- data/processor/command/show_subcmd/timer.rb +17 -0
- data/processor/command/show_subcmd/trace_subcmd/buffer.rb +1 -1
- data/processor/command/source.rb +15 -14
- data/processor/command/tbreak.rb +20 -0
- data/processor/command/watchg.rb +114 -0
- data/processor/default.rb +43 -41
- data/processor/display.rb +3 -2
- data/processor/eval.rb +5 -3
- data/processor/eventbuf.rb +3 -2
- data/processor/frame.rb +12 -3
- data/processor/hook.rb +3 -2
- data/processor/load_cmds.rb +186 -179
- data/processor/location.rb +154 -159
- data/processor/main.rb +44 -16
- data/processor/mock.rb +0 -11
- data/processor/msg.rb +3 -1
- data/processor/running.rb +3 -2
- data/processor/validate.rb +25 -4
- data/processor/virtual.rb +32 -0
- data/test/data/debugger-stop.right +1 -0
- data/test/data/fname-with-blank.right +1 -0
- data/test/example/gcd.rb +1 -0
- data/test/functional/{test-trace-var.rb → test-watchg.rb} +15 -4
- data/test/unit/cmd-helper.rb +0 -3
- data/test/unit/test-app-cmd_parser.rb +2 -2
- data/test/unit/test-app-file.rb +1 -0
- data/test/unit/test-app-frame.rb +1 -1
- data/test/unit/test-app-util.rb +21 -0
- data/test/unit/test-base-cmd.rb +4 -6
- data/test/unit/test-base-subcmd.rb +1 -4
- data/test/unit/test-base-submgr.rb +1 -2
- data/test/unit/test-base-subsubcmd.rb +0 -4
- data/test/unit/test-cmd-edit.rb +33 -0
- data/test/unit/test-cmd-parse_list_cmd.rb +33 -0
- data/test/unit/test-completion.rb +1 -1
- data/test/unit/test-proc-frame.rb +4 -1
- data/test/unit/test-proc-load_cmds.rb +2 -1
- data/test/unit/test-proc-location.rb +9 -26
- data/test/unit/test-proc-main.rb +1 -4
- data/test/unit/test-proc-validate.rb +28 -18
- data/test/unit/test-subcmd-help.rb +0 -4
- data/trepanning.gemspec +1 -1
- metadata +27 -10
- data/processor/command/set_subcmd/trace_subcmd/var.rb +0 -57
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
require 'test/unit'
|
|
3
3
|
require_relative '../../app/core'
|
|
4
|
+
require_relative '../../app/mock'
|
|
4
5
|
require_relative '../../processor/main'
|
|
5
6
|
require_relative '../../processor/command/exit'
|
|
6
7
|
require_relative '../../processor/command/base/subcmd'
|
|
7
8
|
|
|
8
|
-
# Mock debugger stub. FIXME: put in common helper routine.
|
|
9
|
-
class Trepan
|
|
10
|
-
end
|
|
11
|
-
|
|
12
9
|
$errors = []
|
|
13
10
|
class TestBaseSubCommand < Test::Unit::TestCase
|
|
14
11
|
|
|
@@ -12,8 +12,7 @@ class TestBaseSubcommandMgr < Test::Unit::TestCase
|
|
|
12
12
|
|
|
13
13
|
def test_basic
|
|
14
14
|
my_cmd = @cmds['show']
|
|
15
|
-
|
|
16
|
-
assert_equal([:debug, :different], my_cmd.complete('d'),
|
|
15
|
+
assert_equal([:debug, :different, :directories], my_cmd.complete('d'),
|
|
17
16
|
"Should be able to complete 'd'")
|
|
18
17
|
assert_equal(%w(show args), my_cmd.subcmds.lookup('ar').prefix,
|
|
19
18
|
"Should be able to complete lookup('ar')")
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require_relative './mock-helper'
|
|
3
|
+
require_relative './cmd-helper'
|
|
4
|
+
require_relative '../../processor/command/edit'
|
|
5
|
+
|
|
6
|
+
class TestCommandEdit < Test::Unit::TestCase
|
|
7
|
+
include MockUnitHelper
|
|
8
|
+
def setup
|
|
9
|
+
@name = File.basename(__FILE__, '.rb').split(/-/)[2]
|
|
10
|
+
$msgs = []
|
|
11
|
+
$errmsgs = []
|
|
12
|
+
common_setup(@name)
|
|
13
|
+
def @cmd.msg(message)
|
|
14
|
+
$msgs << message
|
|
15
|
+
end
|
|
16
|
+
def @cmd.errmsg(message)
|
|
17
|
+
$errmsgs << message
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def test_basic
|
|
22
|
+
old_editor = ENV['EDITOR']
|
|
23
|
+
ENV['EDITOR'] = '#'
|
|
24
|
+
base_file = File.basename(__FILE__)
|
|
25
|
+
@cmd.proc.settings[:basename] = true
|
|
26
|
+
@cmd.run([@name])
|
|
27
|
+
assert_equal "Running # +39 \"edit.rb\"...", $msgs[-1]
|
|
28
|
+
@cmd.run([@name, 7])
|
|
29
|
+
assert_equal "Running # +7 \"edit.rb\"...", $msgs[-1]
|
|
30
|
+
@cmd.run([@name, __FILE__])
|
|
31
|
+
assert_equal "Running # +1 \"#{base_file}\"...", $msgs[-1]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require_relative 'cmd-helper'
|
|
3
|
+
require_relative '../../processor/command/list'
|
|
4
|
+
|
|
5
|
+
class TestCommandParseListCmd < Test::Unit::TestCase
|
|
6
|
+
include UnitHelper
|
|
7
|
+
def setup
|
|
8
|
+
common_setup
|
|
9
|
+
@cmd = @cmds['list']
|
|
10
|
+
end
|
|
11
|
+
def test_parse_list_cmd
|
|
12
|
+
tf = RubyVM::ThreadFrame.current
|
|
13
|
+
@cmdproc.frame_setup(tf)
|
|
14
|
+
short_file = File.basename(__FILE__)
|
|
15
|
+
listsize = 10
|
|
16
|
+
line = __LINE__ - 8
|
|
17
|
+
load 'tmpdir.rb'
|
|
18
|
+
[['', [short_file, line, line+listsize-1]],
|
|
19
|
+
["#{__FILE__}:10", [short_file, 5, 14]],
|
|
20
|
+
["#{__FILE__} 10", [short_file, 5, 14]],
|
|
21
|
+
['tmpdir.rb', ['tmpdir.rb', 1, listsize]],
|
|
22
|
+
['tmpdir.rb 10', ['tmpdir.rb', 5, 5+listsize-1]],
|
|
23
|
+
['Columnize.columnize 15', ['columnize.rb', 10, 10+listsize -1]],
|
|
24
|
+
['Columnize.columnize 30 3', ['columnize.rb', 30, 32]],
|
|
25
|
+
['Columnize.columnize 40 50', ['columnize.rb', 40, 50]],
|
|
26
|
+
].each do |arg_str, expect|
|
|
27
|
+
got = @cmd.parse_list_cmd(arg_str, listsize, listsize/2)[1..-1]
|
|
28
|
+
got[0] = File.basename(got[0])
|
|
29
|
+
assert_equal expect, got
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
@@ -13,7 +13,7 @@ class TestCompletion < Test::Unit::TestCase
|
|
|
13
13
|
def test_completion
|
|
14
14
|
dbgr = Trepan.new
|
|
15
15
|
[
|
|
16
|
-
['
|
|
16
|
+
['sho', 'sho', ['show']], # Simple single completion
|
|
17
17
|
['se', 'se', ['server', 'set']], # Simple multiple completion
|
|
18
18
|
['show', 'show', ['show']], # Completion when word is complete
|
|
19
19
|
['irb ', 'irb ', []], # Don't add anything - no more
|
|
@@ -19,6 +19,9 @@ class TestCmdProcessorFrame < Test::Unit::TestCase
|
|
|
19
19
|
@proc.frame_index = 0
|
|
20
20
|
@proc.frame_initialize
|
|
21
21
|
class << @proc
|
|
22
|
+
def msg(msg)
|
|
23
|
+
$msgs << msg
|
|
24
|
+
end
|
|
22
25
|
def errmsg(msg)
|
|
23
26
|
$errors << msg
|
|
24
27
|
end
|
|
@@ -38,7 +41,7 @@ class TestCmdProcessorFrame < Test::Unit::TestCase
|
|
|
38
41
|
0.upto(@proc.top_frame.stack_size-1) do |i|
|
|
39
42
|
@proc.adjust_frame(i, true)
|
|
40
43
|
assert_equal(0, $errors.size)
|
|
41
|
-
assert_equal(
|
|
44
|
+
assert_equal(true, $msgs.size >= i+1)
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
# Test absolute before the beginning fo the stack
|
|
@@ -21,7 +21,8 @@ class TestCmdProcessorLoadCmds < Test::Unit::TestCase
|
|
|
21
21
|
assert_equal(%w(debug delete directory disable disassemble display down),
|
|
22
22
|
@proc.complete('d', 'd'),
|
|
23
23
|
"Failed completion of 'd' commands")
|
|
24
|
-
assert_equal(['debug', 'different'
|
|
24
|
+
assert_equal(['debug', 'different', 'directories'],
|
|
25
|
+
@proc.complete('sho d', 'd'),
|
|
25
26
|
"Failed completion of 'sho d' subcommands")
|
|
26
27
|
$errors = []
|
|
27
28
|
end
|
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require 'thread_frame'
|
|
4
|
-
require_relative '../../processor/main' # Have to include before frame!
|
|
5
|
-
# FIXME
|
|
6
|
-
require_relative '../../processor/frame'
|
|
7
|
-
require_relative '../../app/mock'
|
|
8
|
-
|
|
9
|
-
$errors = []
|
|
10
|
-
$msgs = []
|
|
2
|
+
require_relative 'cmd-helper'
|
|
11
3
|
|
|
12
4
|
# Test Debugger:CmdProcessor Location portion
|
|
13
5
|
class TestProcLocation < Test::Unit::TestCase
|
|
14
6
|
|
|
7
|
+
include UnitHelper
|
|
15
8
|
def setup
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@
|
|
19
|
-
@proc.instance_variable_set('@settings', {:basename => true})
|
|
20
|
-
@proc.frame_index = 0
|
|
21
|
-
@proc.frame_initialize
|
|
22
|
-
@proc.location_initialize
|
|
23
|
-
class << @proc
|
|
24
|
-
def errmsg(msg)
|
|
25
|
-
$errors << msg
|
|
26
|
-
end
|
|
27
|
-
end
|
|
9
|
+
common_setup
|
|
10
|
+
@name = File.basename(__FILE__, '.rb').split(/-/)[2]
|
|
11
|
+
@cmdproc.settings[:basename] = true
|
|
28
12
|
end
|
|
29
13
|
|
|
30
14
|
def test_it
|
|
31
|
-
assert_equal File.basename(__FILE__), @
|
|
15
|
+
assert_equal File.basename(__FILE__), @cmdproc.canonic_file(__FILE__)
|
|
32
16
|
eval <<-EOE
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
assert @proc.current_source_text
|
|
17
|
+
@cmdproc.frame_initialize
|
|
18
|
+
@cmdproc.frame_setup(RubyVM::ThreadFrame.current)
|
|
19
|
+
assert @cmdproc.current_source_text
|
|
37
20
|
EOE
|
|
38
21
|
end
|
|
39
22
|
end
|
data/test/unit/test-proc-main.rb
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
require 'test/unit'
|
|
3
|
+
require_relative '../../app/mock'
|
|
3
4
|
require_relative '../../processor/main'
|
|
4
5
|
require_relative '../../app/core'
|
|
5
6
|
|
|
6
|
-
# Mock debugger stub. FIXME: put in comment helper routine.
|
|
7
|
-
class Trepan
|
|
8
|
-
end
|
|
9
|
-
|
|
10
7
|
# Test Trepan:CmdProcessor
|
|
11
8
|
class TestCmdProcessor < Test::Unit::TestCase
|
|
12
9
|
|
|
@@ -15,9 +15,9 @@ class TestValidate < Test::Unit::TestCase
|
|
|
15
15
|
def setup
|
|
16
16
|
$errors = []
|
|
17
17
|
$msgs = []
|
|
18
|
-
@
|
|
18
|
+
@cmdproc = Trepan::CmdProcessor.new(Trepan::MockCore.new())
|
|
19
19
|
|
|
20
|
-
class << @
|
|
20
|
+
class << @cmdproc
|
|
21
21
|
def errmsg(msg)
|
|
22
22
|
$errors << msg
|
|
23
23
|
end
|
|
@@ -32,7 +32,7 @@ class TestValidate < Test::Unit::TestCase
|
|
|
32
32
|
def test_get_int
|
|
33
33
|
[['1', 1], ['1E', nil], ['bad', nil], ['1+1', 2], ['-5', -5]].each do
|
|
34
34
|
|arg, expected|
|
|
35
|
-
assert_equal(expected, @
|
|
35
|
+
assert_equal(expected, @cmdproc.get_int_noerr(arg))
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -40,13 +40,13 @@ class TestValidate < Test::Unit::TestCase
|
|
|
40
40
|
onoff =
|
|
41
41
|
[['1', true], ['on', true],
|
|
42
42
|
['0', false], ['off', false]].each do |arg, expected|
|
|
43
|
-
assert_equal(expected, @
|
|
43
|
+
assert_equal(expected, @cmdproc.get_onoff(arg))
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def test_parse_position
|
|
48
48
|
tf = RubyVM::ThreadFrame.current
|
|
49
|
-
@
|
|
49
|
+
@cmdproc.frame_setup(tf)
|
|
50
50
|
file = File.basename(__FILE__)
|
|
51
51
|
[[__FILE__, [true, file, nil, nil]],
|
|
52
52
|
['@8', [true, file, 8, :offset]],
|
|
@@ -54,16 +54,26 @@ class TestValidate < Test::Unit::TestCase
|
|
|
54
54
|
["#{__FILE__}:#{__LINE__}" , [true, file, __LINE__, :line]],
|
|
55
55
|
["#{__FILE__} #{__LINE__}" , [true, file, __LINE__, :line]]
|
|
56
56
|
].each do |pos_str, expected|
|
|
57
|
-
result = @
|
|
58
|
-
result[0] = !!result[0]
|
|
57
|
+
result = @cmdproc.parse_position(pos_str)
|
|
59
58
|
result[1] = File.basename(result[1])
|
|
59
|
+
result[0] = !!result[0]
|
|
60
60
|
assert_equal(expected, result, "parsing position #{pos_str}")
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
def test_file_exists_proc
|
|
65
|
+
load 'tmpdir.rb'
|
|
66
|
+
%W(#{__FILE__} tmpdir.rb app/mock.rb).each do |name|
|
|
67
|
+
assert_equal true, @cmdproc.file_exists_proc.call(name), "Should find #{name}"
|
|
68
|
+
end
|
|
69
|
+
%W(#{File.dirname(__FILE__)} tmpdir).each do |name|
|
|
70
|
+
assert_equal false, @cmdproc.file_exists_proc.call(name), "Should not find #{name}"
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
64
74
|
# def test_breakpoint_position
|
|
65
75
|
# tf = RubyVM::ThreadFrame.current
|
|
66
|
-
# @
|
|
76
|
+
# @cmdproc.frame_setup(tf)
|
|
67
77
|
|
|
68
78
|
# def munge(args)
|
|
69
79
|
# args[1] = 'bogus'
|
|
@@ -71,17 +81,17 @@ class TestValidate < Test::Unit::TestCase
|
|
|
71
81
|
# end
|
|
72
82
|
|
|
73
83
|
# assert_equal([0, 'bogus', true, 'true', nil],
|
|
74
|
-
# munge(@
|
|
84
|
+
# munge(@cmdproc.breakpoint_position(%w(@0))))
|
|
75
85
|
# assert_equal([1, 'bogus', false, 'true', nil],
|
|
76
|
-
# munge(@
|
|
86
|
+
# munge(@cmdproc.breakpoint_position(%w(1))))
|
|
77
87
|
# assert_equal([2, 'bogus', false, 'a > b', nil],
|
|
78
|
-
# munge(@
|
|
88
|
+
# munge(@cmdproc.breakpoint_position(%w(2 if a > b))))
|
|
79
89
|
# end
|
|
80
90
|
|
|
81
91
|
def test_int_list
|
|
82
|
-
assert_equal([1,2,3], @
|
|
92
|
+
assert_equal([1,2,3], @cmdproc.get_int_list(%w(1+0 3-1 3)))
|
|
83
93
|
assert_equal(0, $errors.size)
|
|
84
|
-
assert_equal([2,3], @
|
|
94
|
+
assert_equal([2,3], @cmdproc.get_int_list(%w(a 2 3)))
|
|
85
95
|
assert_equal(1, $errors.size)
|
|
86
96
|
end
|
|
87
97
|
|
|
@@ -89,15 +99,15 @@ class TestValidate < Test::Unit::TestCase
|
|
|
89
99
|
def foo; 5 end
|
|
90
100
|
require 'irb'
|
|
91
101
|
tf = RubyVM::ThreadFrame.current
|
|
92
|
-
@
|
|
93
|
-
@
|
|
94
|
-
%w(Array.map @
|
|
102
|
+
@cmdproc.frame_setup(tf)
|
|
103
|
+
@cmdproc.method?('@cmdproc.errmsg')
|
|
104
|
+
%w(Array.map @cmdproc.errmsg foo Trepan::CmdProcessor.new IRB.start
|
|
95
105
|
).each do |str|
|
|
96
|
-
assert @
|
|
106
|
+
assert @cmdproc.method?(str), "#{str} should be known as a method"
|
|
97
107
|
end
|
|
98
108
|
['food', '.errmsg'
|
|
99
109
|
].each do |str|
|
|
100
|
-
assert_equal(false, !!@
|
|
110
|
+
assert_equal(false, !!@cmdproc.method?(str),
|
|
101
111
|
"#{str} should not be known as a method")
|
|
102
112
|
end
|
|
103
113
|
|
|
@@ -3,10 +3,6 @@ require 'test/unit'
|
|
|
3
3
|
require_relative '../../processor/main'
|
|
4
4
|
require_relative '../../app/core'
|
|
5
5
|
|
|
6
|
-
# Mock debugger stub. FIXME: put in comment helper routine.
|
|
7
|
-
class Trepan
|
|
8
|
-
end
|
|
9
|
-
|
|
10
6
|
# Test Trepan::CmdProcessor
|
|
11
7
|
class TestSubCmdHelp < Test::Unit::TestCase
|
|
12
8
|
|
data/trepanning.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ This version works only with a patched version of Ruby 1.9.2 and rb-threadframe.
|
|
|
19
19
|
See also rbx-trepanning for a version that works with Rubinius.
|
|
20
20
|
EOF
|
|
21
21
|
spec.add_dependency('rb-threadframe', '>= 0.38')
|
|
22
|
-
spec.add_dependency('rb-trace', '>= 0.
|
|
22
|
+
spec.add_dependency('rb-trace', '>= 0.5')
|
|
23
23
|
spec.add_dependency('linecache-tf', '>= 1.0')
|
|
24
24
|
spec.add_dependency('columnize')
|
|
25
25
|
spec.add_dependency('diff-lcs') # For testing only
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 3
|
|
9
|
+
version: 0.1.3
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- R. Bernstein
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-
|
|
17
|
+
date: 2011-06-12 00:00:00 -04:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -41,8 +41,8 @@ dependencies:
|
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
segments:
|
|
43
43
|
- 0
|
|
44
|
-
-
|
|
45
|
-
version: "0.
|
|
44
|
+
- 5
|
|
45
|
+
version: "0.5"
|
|
46
46
|
type: :runtime
|
|
47
47
|
version_requirements: *id002
|
|
48
48
|
- !ruby/object:Gem::Dependency
|
|
@@ -191,16 +191,20 @@ files:
|
|
|
191
191
|
- processor/command/help/.gitignore
|
|
192
192
|
- processor/command/help/README
|
|
193
193
|
- processor/command/help/command.txt
|
|
194
|
+
- processor/command/help/examples.txt
|
|
194
195
|
- processor/command/help/filename.txt
|
|
195
196
|
- processor/command/help/location.txt
|
|
197
|
+
- processor/command/help/suffixes.txt
|
|
196
198
|
- processor/command/info.rb
|
|
197
199
|
- processor/command/info_subcmd/.gitignore
|
|
198
200
|
- processor/command/info_subcmd/args.rb
|
|
199
201
|
- processor/command/info_subcmd/breakpoints.rb
|
|
200
202
|
- processor/command/info_subcmd/files.rb
|
|
201
203
|
- processor/command/info_subcmd/frame.rb
|
|
204
|
+
- processor/command/info_subcmd/globals.rb
|
|
202
205
|
- processor/command/info_subcmd/iseq.rb
|
|
203
206
|
- processor/command/info_subcmd/locals.rb
|
|
207
|
+
- processor/command/info_subcmd/macro.rb
|
|
204
208
|
- processor/command/info_subcmd/program.rb
|
|
205
209
|
- processor/command/info_subcmd/registers.rb
|
|
206
210
|
- processor/command/info_subcmd/registers_subcmd/.gitignore
|
|
@@ -211,13 +215,16 @@ files:
|
|
|
211
215
|
- processor/command/info_subcmd/registers_subcmd/sp.rb
|
|
212
216
|
- processor/command/info_subcmd/return.rb
|
|
213
217
|
- processor/command/info_subcmd/ruby.rb
|
|
218
|
+
- processor/command/info_subcmd/source.rb
|
|
219
|
+
- processor/command/info_subcmd/stack.rb
|
|
214
220
|
- processor/command/info_subcmd/thread.rb
|
|
215
|
-
- processor/command/irb.rb
|
|
216
221
|
- processor/command/kill.rb
|
|
217
222
|
- processor/command/list.rb
|
|
218
223
|
- processor/command/macro.rb
|
|
219
224
|
- processor/command/next.rb
|
|
220
225
|
- processor/command/nocache.rb
|
|
226
|
+
- processor/command/parsetree.rb
|
|
227
|
+
- processor/command/pp.rb
|
|
221
228
|
- processor/command/pr.rb
|
|
222
229
|
- processor/command/ps.rb
|
|
223
230
|
- processor/command/quit.rb
|
|
@@ -230,6 +237,7 @@ files:
|
|
|
230
237
|
- processor/command/server.rb
|
|
231
238
|
- processor/command/set.rb
|
|
232
239
|
- processor/command/set_subcmd/.gitignore
|
|
240
|
+
- processor/command/set_subcmd/abbrev.rb
|
|
233
241
|
- processor/command/set_subcmd/auto.rb
|
|
234
242
|
- processor/command/set_subcmd/auto_subcmd/.gitignore
|
|
235
243
|
- processor/command/set_subcmd/auto_subcmd/eval.rb
|
|
@@ -254,6 +262,7 @@ files:
|
|
|
254
262
|
- processor/command/set_subcmd/max_subcmd/stack.rb
|
|
255
263
|
- processor/command/set_subcmd/max_subcmd/string.rb
|
|
256
264
|
- processor/command/set_subcmd/max_subcmd/width.rb
|
|
265
|
+
- processor/command/set_subcmd/reload.rb
|
|
257
266
|
- processor/command/set_subcmd/return.rb
|
|
258
267
|
- processor/command/set_subcmd/sp.rb
|
|
259
268
|
- processor/command/set_subcmd/substitute.rb
|
|
@@ -266,9 +275,10 @@ files:
|
|
|
266
275
|
- processor/command/set_subcmd/trace_subcmd/.gitignore
|
|
267
276
|
- processor/command/set_subcmd/trace_subcmd/buffer.rb
|
|
268
277
|
- processor/command/set_subcmd/trace_subcmd/print.rb
|
|
269
|
-
- processor/command/
|
|
278
|
+
- processor/command/shell.rb
|
|
270
279
|
- processor/command/show.rb
|
|
271
280
|
- processor/command/show_subcmd/.gitignore
|
|
281
|
+
- processor/command/show_subcmd/abbrev.rb
|
|
272
282
|
- processor/command/show_subcmd/alias.rb
|
|
273
283
|
- processor/command/show_subcmd/args.rb
|
|
274
284
|
- processor/command/show_subcmd/auto.rb
|
|
@@ -286,25 +296,29 @@ files:
|
|
|
286
296
|
- processor/command/show_subcmd/debug_subcmd/skip.rb
|
|
287
297
|
- processor/command/show_subcmd/debug_subcmd/stack.rb
|
|
288
298
|
- processor/command/show_subcmd/different.rb
|
|
299
|
+
- processor/command/show_subcmd/directories.rb
|
|
289
300
|
- processor/command/show_subcmd/events.rb
|
|
290
301
|
- processor/command/show_subcmd/hidelevel.rb
|
|
291
302
|
- processor/command/show_subcmd/highlight.rb
|
|
292
|
-
- processor/command/show_subcmd/macro.rb
|
|
293
303
|
- processor/command/show_subcmd/max.rb
|
|
294
304
|
- processor/command/show_subcmd/max_subcmd/.gitignore
|
|
295
305
|
- processor/command/show_subcmd/max_subcmd/list.rb
|
|
296
306
|
- processor/command/show_subcmd/max_subcmd/stack.rb
|
|
297
307
|
- processor/command/show_subcmd/max_subcmd/string.rb
|
|
298
308
|
- processor/command/show_subcmd/max_subcmd/width.rb
|
|
309
|
+
- processor/command/show_subcmd/reload.rb
|
|
310
|
+
- processor/command/show_subcmd/timer.rb
|
|
299
311
|
- processor/command/show_subcmd/trace.rb
|
|
300
312
|
- processor/command/show_subcmd/trace_subcmd/.gitignore
|
|
301
313
|
- processor/command/show_subcmd/trace_subcmd/buffer.rb
|
|
302
314
|
- processor/command/show_subcmd/trace_subcmd/print.rb
|
|
303
315
|
- processor/command/source.rb
|
|
304
316
|
- processor/command/step.rb
|
|
317
|
+
- processor/command/tbreak.rb
|
|
305
318
|
- processor/command/unalias.rb
|
|
306
319
|
- processor/command/undisplay.rb
|
|
307
320
|
- processor/command/up.rb
|
|
321
|
+
- processor/command/watchg.rb
|
|
308
322
|
- processor/default.rb
|
|
309
323
|
- processor/display.rb
|
|
310
324
|
- processor/eval.rb
|
|
@@ -320,6 +334,7 @@ files:
|
|
|
320
334
|
- processor/running.rb
|
|
321
335
|
- processor/subcmd.rb
|
|
322
336
|
- processor/validate.rb
|
|
337
|
+
- processor/virtual.rb
|
|
323
338
|
- sample/.gitignore
|
|
324
339
|
- sample/list-terminal-colors.rb
|
|
325
340
|
- sample/rocky-dot-trepanrc
|
|
@@ -361,7 +376,7 @@ files:
|
|
|
361
376
|
- test/functional/test-return.rb
|
|
362
377
|
- test/functional/test-step.rb
|
|
363
378
|
- test/functional/test-stepbug.rb
|
|
364
|
-
- test/functional/test-
|
|
379
|
+
- test/functional/test-watchg.rb
|
|
365
380
|
- test/integration/.gitignore
|
|
366
381
|
- test/integration/file-diff.rb
|
|
367
382
|
- test/integration/helper.rb
|
|
@@ -393,9 +408,11 @@ files:
|
|
|
393
408
|
- test/unit/test-bin-trepan.rb
|
|
394
409
|
- test/unit/test-cmd-alias.rb
|
|
395
410
|
- test/unit/test-cmd-break.rb
|
|
411
|
+
- test/unit/test-cmd-edit.rb
|
|
396
412
|
- test/unit/test-cmd-endisable.rb
|
|
397
413
|
- test/unit/test-cmd-help.rb
|
|
398
414
|
- test/unit/test-cmd-kill.rb
|
|
415
|
+
- test/unit/test-cmd-parse_list_cmd.rb
|
|
399
416
|
- test/unit/test-cmd-quit.rb
|
|
400
417
|
- test/unit/test-cmd-source.rb
|
|
401
418
|
- test/unit/test-cmd-step.rb
|
|
@@ -424,7 +441,7 @@ rdoc_options:
|
|
|
424
441
|
- --main
|
|
425
442
|
- README
|
|
426
443
|
- --title
|
|
427
|
-
- Trepan 0.1.
|
|
444
|
+
- Trepan 0.1.3 Documentation
|
|
428
445
|
require_paths:
|
|
429
446
|
- lib
|
|
430
447
|
required_ruby_version: !ruby/object:Gem::Requirement
|