Sha256: 16f0394f45c29cffabd9147f5328fa10b5a0af4e662647ec2a85dbd9dd794a6b
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../base/subsubcmd' require_relative '../base/subsubmgr' class Trepan::SubSubcommand::SetTrace < Trepan::SubSubcommandMgr unless defined?(HELP) HELP = "Set tracing of various sorts. The types of tracing include global variables, events from the trace buffer, or printing those events. See 'help set trace *' or a list of subcommands or 'help set trace <name>' for help on a particular trace subcommand." IN_LIST = true MIN_ABBREV = 'tr'.size NAME = File.basename(__FILE__, '.rb') PREFIX = %w(set trace) SHORT_HELP = 'Set tracing of various sorts.' end end if __FILE__ == $0 # Demo it. require_relative '../../mock' require_relative '../../subcmd' require_relative '../../hook' name = File.basename(__FILE__, '.rb') # FIXME: DRY the below code dbgr, set_cmd = MockDebugger::setup('set') command = Trepan::SubSubcommand::SetTrace.new(dbgr.core.processor, set_cmd) name = File.basename(__FILE__, '.rb') cmd_args = ['set', name] set_cmd.instance_variable_set('@last_args', cmd_args) # require_relative '../../../lib/trepanning' # Trepan.debug(:set_restart => true) command.run(cmd_args) command.run(['set', name, '*']) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trepanning-0.0.6 | processor/command/set_subcmd/trace.rb |
trepanning-0.0.4 | processor/command/set_subcmd/trace.rb |