Sha256: 3e0dcb71813b302bb6eff33f2115620e53a9b9b0419d86f68a7ba9ef9e15125a

Contents?: true

Size: 858 Bytes

Versions: 5

Compression:

Stored size: 858 Bytes

Contents

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

class Trepan::SubSubcommand::ShowTrace < Trepan::SubSubcommandMgr 

  unless defined?(HELP)
    Trepanning::Subcommand.set_name_prefix(__FILE__, self)
    HELP = "Show event tracing printing"
    MIN_ABBREV = 'tr'.size
    SHORT_HELP = HELP
  end
end

if __FILE__ == $0
  # Demo it.
  require_relative '../../mock'
  dbgr = MockDebugger::MockDebugger.new
  cmds = dbgr.core.processor.commands
  show_cmd = cmds['show']
  command = Trepan::SubSubcommand::ShowTrace.new(dbgr.core.processor, 
                                                 show_cmd)

  name = File.basename(__FILE__, '.rb')
  cmd_args = ['show', name]
  command.run(cmd_args)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.6 processor/command/show_subcmd/trace.rb
rb8-trepanning-0.1.5 processor/command/show_subcmd/trace.rb
rb8-trepanning-0.1.4 processor/command/show_subcmd/trace.rb
rb8-trepanning-0.1.3 processor/command/show_subcmd/trace.rb
rb8-trepanning-0.1.3-universal-ruby-1.9.2 processor/command/show_subcmd/trace.rb