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