ruby-debug-ide22 0.7.4 → 0.7.5
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.
- checksums.yaml +4 -4
- data/CHANGES +75 -75
- data/ChangeLog.archive +1073 -1073
- data/ChangeLog.md +594 -594
- data/Gemfile +38 -38
- data/MIT-LICENSE +24 -24
- data/Rakefile +92 -92
- data/bin/gdb_wrapper +96 -96
- data/bin/rdebug-ide +200 -200
- data/ext/mkrf_conf.rb +44 -44
- data/lib/ruby-debug-ide/attach/debugger_loader.rb +20 -20
- data/lib/ruby-debug-ide/attach/gdb.rb +73 -73
- data/lib/ruby-debug-ide/attach/lldb.rb +71 -71
- data/lib/ruby-debug-ide/attach/native_debugger.rb +133 -133
- data/lib/ruby-debug-ide/attach/process_thread.rb +54 -54
- data/lib/ruby-debug-ide/attach/util.rb +114 -114
- data/lib/ruby-debug-ide/command.rb +187 -187
- data/lib/ruby-debug-ide/commands/breakpoints.rb +128 -128
- data/lib/ruby-debug-ide/commands/catchpoint.rb +64 -64
- data/lib/ruby-debug-ide/commands/condition.rb +51 -51
- data/lib/ruby-debug-ide/commands/control.rb +164 -158
- data/lib/ruby-debug-ide/commands/enable.rb +203 -203
- data/lib/ruby-debug-ide/commands/eval.rb +64 -64
- data/lib/ruby-debug-ide/commands/expression_info.rb +71 -71
- data/lib/ruby-debug-ide/commands/file_filtering.rb +106 -106
- data/lib/ruby-debug-ide/commands/frame.rb +155 -155
- data/lib/ruby-debug-ide/commands/inspect.rb +25 -25
- data/lib/ruby-debug-ide/commands/load.rb +17 -17
- data/lib/ruby-debug-ide/commands/stepping.rb +108 -108
- data/lib/ruby-debug-ide/commands/threads.rb +178 -178
- data/lib/ruby-debug-ide/commands/variables.rb +154 -154
- data/lib/ruby-debug-ide/event_processor.rb +71 -71
- data/lib/ruby-debug-ide/greeter.rb +42 -42
- data/lib/ruby-debug-ide/helper.rb +33 -33
- data/lib/ruby-debug-ide/ide_processor.rb +155 -155
- data/lib/ruby-debug-ide/interface.rb +47 -45
- data/lib/ruby-debug-ide/multiprocess/monkey.rb +46 -46
- data/lib/ruby-debug-ide/multiprocess/pre_child.rb +58 -58
- data/lib/ruby-debug-ide/multiprocess/starter.rb +10 -10
- data/lib/ruby-debug-ide/multiprocess/unmonkey.rb +30 -30
- data/lib/ruby-debug-ide/multiprocess.rb +22 -22
- data/lib/ruby-debug-ide/thread_alias.rb +26 -26
- data/lib/ruby-debug-ide/version.rb +3 -3
- data/lib/ruby-debug-ide/xml_printer.rb +570 -570
- data/lib/ruby-debug-ide.rb +230 -228
- data/ruby-debug-ide.gemspec +47 -47
- metadata +4 -4
| @@ -1,31 +1,31 @@ | |
| 1 | 
            -
            module Debugger
         | 
| 2 | 
            -
              module MultiProcess
         | 
| 3 | 
            -
                def self.restore_fork
         | 
| 4 | 
            -
                  %Q{
         | 
| 5 | 
            -
                    alias fork pre_debugger_fork
         | 
| 6 | 
            -
                  }
         | 
| 7 | 
            -
                end
         | 
| 8 | 
            -
             | 
| 9 | 
            -
                def self.restore_exec
         | 
| 10 | 
            -
                  %Q{
         | 
| 11 | 
            -
                    alias exec pre_debugger_exec
         | 
| 12 | 
            -
                  }
         | 
| 13 | 
            -
                end
         | 
| 14 | 
            -
              end
         | 
| 15 | 
            -
            end
         | 
| 16 | 
            -
             | 
| 17 | 
            -
            module Kernel
         | 
| 18 | 
            -
              class << self
         | 
| 19 | 
            -
                module_eval Debugger::MultiProcess.restore_fork
         | 
| 20 | 
            -
                module_eval Debugger::MultiProcess.restore_exec
         | 
| 21 | 
            -
              end
         | 
| 22 | 
            -
              module_eval Debugger::MultiProcess.restore_fork
         | 
| 23 | 
            -
              module_eval Debugger::MultiProcess.restore_exec
         | 
| 24 | 
            -
            end
         | 
| 25 | 
            -
             | 
| 26 | 
            -
            module Process
         | 
| 27 | 
            -
              class << self
         | 
| 28 | 
            -
                module_eval Debugger::MultiProcess.restore_fork
         | 
| 29 | 
            -
                module_eval Debugger::MultiProcess.restore_exec
         | 
| 30 | 
            -
              end
         | 
| 1 | 
            +
            module Debugger
         | 
| 2 | 
            +
              module MultiProcess
         | 
| 3 | 
            +
                def self.restore_fork
         | 
| 4 | 
            +
                  %Q{
         | 
| 5 | 
            +
                    alias fork pre_debugger_fork
         | 
| 6 | 
            +
                  }
         | 
| 7 | 
            +
                end
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                def self.restore_exec
         | 
| 10 | 
            +
                  %Q{
         | 
| 11 | 
            +
                    alias exec pre_debugger_exec
         | 
| 12 | 
            +
                  }
         | 
| 13 | 
            +
                end
         | 
| 14 | 
            +
              end
         | 
| 15 | 
            +
            end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            module Kernel
         | 
| 18 | 
            +
              class << self
         | 
| 19 | 
            +
                module_eval Debugger::MultiProcess.restore_fork
         | 
| 20 | 
            +
                module_eval Debugger::MultiProcess.restore_exec
         | 
| 21 | 
            +
              end
         | 
| 22 | 
            +
              module_eval Debugger::MultiProcess.restore_fork
         | 
| 23 | 
            +
              module_eval Debugger::MultiProcess.restore_exec
         | 
| 24 | 
            +
            end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            module Process
         | 
| 27 | 
            +
              class << self
         | 
| 28 | 
            +
                module_eval Debugger::MultiProcess.restore_fork
         | 
| 29 | 
            +
                module_eval Debugger::MultiProcess.restore_exec
         | 
| 30 | 
            +
              end
         | 
| 31 31 | 
             
            end
         | 
| @@ -1,23 +1,23 @@ | |
| 1 | 
            -
            if RUBY_VERSION < '1.9'
         | 
| 2 | 
            -
              require 'ruby-debug-ide/multiprocess/pre_child'
         | 
| 3 | 
            -
            else
         | 
| 4 | 
            -
              require_relative 'multiprocess/pre_child'
         | 
| 5 | 
            -
            end
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            module Debugger
         | 
| 8 | 
            -
              module MultiProcess
         | 
| 9 | 
            -
                class << self
         | 
| 10 | 
            -
                  def do_monkey
         | 
| 11 | 
            -
                    load File.expand_path(File.dirname(__FILE__) + '/multiprocess/monkey.rb')
         | 
| 12 | 
            -
                  end
         | 
| 13 | 
            -
             | 
| 14 | 
            -
                  def undo_monkey
         | 
| 15 | 
            -
                    if ENV['IDE_PROCESS_DISPATCHER']
         | 
| 16 | 
            -
                      load File.expand_path(File.dirname(__FILE__) + '/multiprocess/unmonkey.rb')
         | 
| 17 | 
            -
                      ruby_opts = ENV['RUBYOPT'].split(' ')
         | 
| 18 | 
            -
                      ENV['RUBYOPT'] = ruby_opts.keep_if {|opt| !opt.end_with?('ruby-debug-ide/multiprocess/starter')}.join(' ')
         | 
| 19 | 
            -
                    end
         | 
| 20 | 
            -
                  end
         | 
| 21 | 
            -
                end
         | 
| 22 | 
            -
              end
         | 
| 1 | 
            +
            if RUBY_VERSION < '1.9'
         | 
| 2 | 
            +
              require 'ruby-debug-ide/multiprocess/pre_child'
         | 
| 3 | 
            +
            else
         | 
| 4 | 
            +
              require_relative 'multiprocess/pre_child'
         | 
| 5 | 
            +
            end
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            module Debugger
         | 
| 8 | 
            +
              module MultiProcess
         | 
| 9 | 
            +
                class << self
         | 
| 10 | 
            +
                  def do_monkey
         | 
| 11 | 
            +
                    load File.expand_path(File.dirname(__FILE__) + '/multiprocess/monkey.rb')
         | 
| 12 | 
            +
                  end
         | 
| 13 | 
            +
             | 
| 14 | 
            +
                  def undo_monkey
         | 
| 15 | 
            +
                    if ENV['IDE_PROCESS_DISPATCHER']
         | 
| 16 | 
            +
                      load File.expand_path(File.dirname(__FILE__) + '/multiprocess/unmonkey.rb')
         | 
| 17 | 
            +
                      ruby_opts = ENV['RUBYOPT'].split(' ')
         | 
| 18 | 
            +
                      ENV['RUBYOPT'] = ruby_opts.keep_if {|opt| !opt.end_with?('ruby-debug-ide/multiprocess/starter')}.join(' ')
         | 
| 19 | 
            +
                    end
         | 
| 20 | 
            +
                  end
         | 
| 21 | 
            +
                end
         | 
| 22 | 
            +
              end
         | 
| 23 23 | 
             
            end
         | 
| @@ -1,27 +1,27 @@ | |
| 1 | 
            -
            module Debugger
         | 
| 2 | 
            -
              module TimeoutHandler
         | 
| 3 | 
            -
                class << self
         | 
| 4 | 
            -
                  def do_thread_alias
         | 
| 5 | 
            -
                    if defined? ::OldThread
         | 
| 6 | 
            -
                      Debugger.print_debug 'Tried to re-alias thread for eval'
         | 
| 7 | 
            -
                      return
         | 
| 8 | 
            -
                    end
         | 
| 9 | 
            -
             | 
| 10 | 
            -
                    Object.const_set :OldThread, ::Thread
         | 
| 11 | 
            -
                    Object.__send__ :remove_const, :Thread
         | 
| 12 | 
            -
                    Object.const_set :Thread, ::Debugger::DebugThread
         | 
| 13 | 
            -
                  end
         | 
| 14 | 
            -
             | 
| 15 | 
            -
                  def undo_thread_alias
         | 
| 16 | 
            -
                    unless defined? ::OldThread
         | 
| 17 | 
            -
                      Debugger.print_debug 'Tried to de-alias thread twice'
         | 
| 18 | 
            -
                      return
         | 
| 19 | 
            -
                    end
         | 
| 20 | 
            -
             | 
| 21 | 
            -
                    Object.__send__ :remove_const, :Thread
         | 
| 22 | 
            -
                    Object.const_set :Thread, ::OldThread
         | 
| 23 | 
            -
                    Object.__send__ :remove_const, :OldThread
         | 
| 24 | 
            -
                  end
         | 
| 25 | 
            -
                end
         | 
| 26 | 
            -
              end
         | 
| 1 | 
            +
            module Debugger
         | 
| 2 | 
            +
              module TimeoutHandler
         | 
| 3 | 
            +
                class << self
         | 
| 4 | 
            +
                  def do_thread_alias
         | 
| 5 | 
            +
                    if defined? ::OldThread
         | 
| 6 | 
            +
                      Debugger.print_debug 'Tried to re-alias thread for eval'
         | 
| 7 | 
            +
                      return
         | 
| 8 | 
            +
                    end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                    Object.const_set :OldThread, ::Thread
         | 
| 11 | 
            +
                    Object.__send__ :remove_const, :Thread
         | 
| 12 | 
            +
                    Object.const_set :Thread, ::Debugger::DebugThread
         | 
| 13 | 
            +
                  end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                  def undo_thread_alias
         | 
| 16 | 
            +
                    unless defined? ::OldThread
         | 
| 17 | 
            +
                      Debugger.print_debug 'Tried to de-alias thread twice'
         | 
| 18 | 
            +
                      return
         | 
| 19 | 
            +
                    end
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                    Object.__send__ :remove_const, :Thread
         | 
| 22 | 
            +
                    Object.const_set :Thread, ::OldThread
         | 
| 23 | 
            +
                    Object.__send__ :remove_const, :OldThread
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
              end
         | 
| 27 27 | 
             
            end
         | 
| @@ -1,3 +1,3 @@ | |
| 1 | 
            -
            module Debugger
         | 
| 2 | 
            -
              IDE_VERSION='0.7. | 
| 3 | 
            -
            end
         | 
| 1 | 
            +
            module Debugger
         | 
| 2 | 
            +
              IDE_VERSION='0.7.5'
         | 
| 3 | 
            +
            end
         |