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
|
# File 'app/stepping.rb', line 40
def set_breakpoints_between(exec, start_ip, fin_ip)
ips = goto_between(exec, start_ip, fin_ip)
if ips.kind_of? Fixnum
ip = ips
else
one, two = ips
bp1 = BreakPoint.for_ip(exec, one)
bp2 = BreakPoint.for_ip(exec, two)
bp1.paired_with(bp2)
bp2.paired_with(bp1)
bp1.for_step!(current_frame.variables)
bp2.for_step!(current_frame.variables)
bp1.activate
bp2.activate
return bp1
end
if ip == -1
STDERR.puts "No place to step to"
return nil
end
bp = BreakPoint.for_ip(exec, ip)
bp.for_step!(current_frame.variables)
bp.activate
return bp
end
|