Corrected mis-indentation. Try diff -w to find that these are the same without
indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
09290070e8
commit
6e2ad002ed
42
lib/debug.rb
42
lib/debug.rb
@ -18,7 +18,7 @@ end
|
|||||||
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
|
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
|
||||||
|
|
||||||
class DEBUGGER__
|
class DEBUGGER__
|
||||||
class Mutex
|
class Mutex
|
||||||
def initialize
|
def initialize
|
||||||
@locker = nil
|
@locker = nil
|
||||||
@waiting = []
|
@waiting = []
|
||||||
@ -54,10 +54,10 @@ class DEBUGGER__
|
|||||||
t.run if t
|
t.run if t
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
MUTEX = Mutex.new
|
MUTEX = Mutex.new
|
||||||
|
|
||||||
class Context
|
class Context
|
||||||
DEBUG_LAST_CMD = []
|
DEBUG_LAST_CMD = []
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -741,18 +741,18 @@ EOHELP
|
|||||||
end
|
end
|
||||||
@last_file = file
|
@last_file = file
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
trap("INT") { DEBUGGER__.interrupt }
|
trap("INT") { DEBUGGER__.interrupt }
|
||||||
@last_thread = Thread::main
|
@last_thread = Thread::main
|
||||||
@max_thread = 1
|
@max_thread = 1
|
||||||
@thread_list = {Thread::main => 1}
|
@thread_list = {Thread::main => 1}
|
||||||
@break_points = []
|
@break_points = []
|
||||||
@display = []
|
@display = []
|
||||||
@waiting = []
|
@waiting = []
|
||||||
@stdout = STDOUT
|
@stdout = STDOUT
|
||||||
|
|
||||||
class <<DEBUGGER__
|
class << DEBUGGER__
|
||||||
def stdout
|
def stdout
|
||||||
@stdout
|
@stdout
|
||||||
end
|
end
|
||||||
@ -918,11 +918,11 @@ EOHELP
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
stdout.printf "Debug.rb\n"
|
stdout.printf "Debug.rb\n"
|
||||||
stdout.printf "Emacs support available.\n\n"
|
stdout.printf "Emacs support available.\n\n"
|
||||||
set_trace_func proc { |event, file, line, id, binding, klass, *rest|
|
set_trace_func proc { |event, file, line, id, binding, klass, *rest|
|
||||||
DEBUGGER__.context.trace_func event, file, line, id, binding, klass
|
DEBUGGER__.context.trace_func event, file, line, id, binding, klass
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user