Sha256: 2e1f2919301fcee88a40fc9c20e3ad80c78bfaa00d9ec5b7ba2f0c52175b1c5b

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

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::SetTrace < Trepan::SubSubcommandMgr 
  unless defined?(HELP)
    Trepanning::Subcommand.set_name_prefix(__FILE__, self)
    HELP = <<-EOH
Set tracing of various sorts.

The types of tracing include events from the trace buffer, or printing
those events.

See "help #{PREFIX.join(' ')} *" for a list of subcommands or "#{PREFIX.join(' ')} <name>" 
for help on a particular trace subcommand.
    EOH
    IN_LIST    = true
    MIN_ABBREV = 'tr'.size
    SHORT_HELP = 'Set tracing of various sorts.'
  end

end

if __FILE__ == $0
  # Demo it.
  require_relative '../../mock'
  dbgr, cmd = MockDebugger::setup('set')
  # cmds = dbgr.core.processor.commands
  # set_cmd = cmds['set']
  # command = Trepan::SubSubcommand::SetTrace.new(dbgr.core.processor, 
  #                                              set_cmd)
  # set_cmd.instance_variable_set('@last_args', command.class.const_get('CMD'))
  # # require_relative '../../../lib/trepanning'
  # # Trepan.debug
  # command.run(command.class.const_get('PREFIX'))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.6 processor/command/set_subcmd/trace.rb
rb8-trepanning-0.1.5 processor/command/set_subcmd/trace.rb
rb8-trepanning-0.1.4 processor/command/set_subcmd/trace.rb