Sha256: 48a346880b1473a25a0e144473d6f7c0b2ca67dc03d636b6834860aca580affb
Contents?: true
Size: 975 Bytes
Versions: 3
Compression:
Stored size: 975 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../base/subcmd' class Trepan::Subcommand::ShowEvents < Trepan::Subcommand unless defined?(HELP) HELP = 'Show trace events we may stop on.' MIN_ABBREV = 'ev'.size NAME = File.basename(__FILE__, '.rb') end # FIXME: this really should be a subcommand of "set trace" def run(args) step_events_list = @proc.core.step_events_list if step_events_list msg 'Trace events we may stop on:' msg "\t" + step_events_list else msg 'No events trapped.' end end end if __FILE__ == $0 # Demo it. require_relative '../../mock' # FIXME: DRY the below code dbgr, cmd = MockDebugger::setup('exit') subcommand = Trepan::Subcommand::ShowEvents.new(cmd) testcmdMgr = Trepan::Subcmd.new(subcommand) name = File.basename(__FILE__, '.rb') subcommand.summary_help(name) puts subcommand.run([name]) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trepanning-0.0.9 | processor/command/show_subcmd/events.rb |
trepanning-0.0.8 | processor/command/show_subcmd/events.rb |
trepanning-0.0.6 | processor/command/show_subcmd/events.rb |