Skip to content

Commit 474d360

Browse files
committed
fix incompatibilities with command-line debug
1 parent 5430f5f commit 474d360

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ruby-debug/interface.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ def non_blocking_gets
1212
end
1313

1414
module Debugger
15+
class Interface
16+
end
1517

16-
class RemoteInterface # :nodoc:
18+
class RemoteInterface < Interface # :nodoc:
1719
attr_accessor :command_queue
1820

1921
def initialize(socket)

lib/ruby-debug/processor.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
end
88

99
module Debugger
10-
# this class is added to resolve problems, with ruby-debug gem incompatibility see
11-
# http://rubyforge.org/tracker/index.php?func=detail&aid=27055&group_id=3085&atid=11903
1210
class CommandProcessor
13-
def initialize(interface)
11+
def initialize(interface = nil)
1412
@interface = interface
1513
@printer = XmlPrinter.new(@interface)
1614
end

0 commit comments

Comments
 (0)