Sha256: 357dd1134a64d430ccf348041a6039904f5ac4ba54c90afc0f7bb24ebe82c6b4

Contents?: true

Size: 658 Bytes

Versions: 10

Compression:

Stored size: 658 Bytes

Contents

# -*- coding: utf-8 -*-
# Copyright (C) 2011 Rocky Bernstein <rockyb@rubyforge.net>
require 'rubygems'; require 'require_relative'
require_relative '../base/subcmd'


class Trepan::Subcommand::InfoStack < Trepan::Subcommand
  unless defined?(HELP)
    Trepanning::Subcommand.set_name_prefix(__FILE__, self)
    HELP = 'Same thing as "backtrace"'
    MIN_ABBREV   = 'st'.size
    NEED_STACK   = true
   end

  def run(args)
    @proc.commands['backtrace'].run(['backtrace'] + args[2..-1])
  end
end

if __FILE__ == $0
  # Demo it.
  require_relative '../../mock'
  cmd = MockDebugger::sub_setup(Trepan::Subcommand::InfoStack, false)
  cmd.run(cmd.prefix)
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
rbx-trepanning-0.2.1-universal-rubinius-2.0 processor/command/info_subcmd/stack.rb
rbx-trepanning-0.2.1-universal-rubinius-1.2 processor/command/info_subcmd/stack.rb
rbx-trepanning-0.2.0-universal-rubinius-2.0 processor/command/info_subcmd/stack.rb
rb8-trepanning-0.1.6 processor/command/info_subcmd/stack.rb
rb8-trepanning-0.1.5 processor/command/info_subcmd/stack.rb
rbx-trepanning-0.1.0-universal-rubinius-1.2 processor/command/info_subcmd/stack.rb
rb8-trepanning-0.1.4 processor/command/info_subcmd/stack.rb
rb8-trepanning-0.1.3 processor/command/info_subcmd/stack.rb
rb8-trepanning-0.1.3-universal-ruby-1.9.2 processor/command/info_subcmd/stack.rb
rb8-trepanning-0.1.3-universal-ruby-1.8.7 processor/command/info_subcmd/stack.rb