Sha256: 3efbd9f4451a9830a477e2fb8114985567ad631a23af3eff5820713dc1aa5d50

Contents?: true

Size: 625 Bytes

Versions: 6

Compression:

Stored size: 625 Bytes

Contents

module Trepan
  class InterruptCommand < OldCommand # :nodoc:
    self.allow_in_control     = true
    self.allow_in_post_mortem = false
    self.event                = false
    self.need_context         = true
    
    def regexp
      /^\s*i(?:nterrupt)?\s*$/
    end
    
    def execute
      unless Debugger.interrupt_last
        context = Debugger.thread_context(Thread.main)
        context.interrupt
      end
    end
    
    class << self
      def help_command
        'interrupt'
      end
      
      def help(cmd)
        %{
          i[nterrupt]\tinterrupt the program
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.6 processor/command-ruby-debug/control.rb
rb8-trepanning-0.1.5 processor/command-ruby-debug/control.rb
rb8-trepanning-0.1.4 processor/command-ruby-debug/control.rb
rb8-trepanning-0.1.3 processor/command-ruby-debug/control.rb
rb8-trepanning-0.1.3-universal-ruby-1.9.2 processor/command-ruby-debug/control.rb
rb8-trepanning-0.1.3-universal-ruby-1.8.7 processor/command-ruby-debug/control.rb