Sha256: f12c33fa26a47a64bbb649098e96a686dd1a455eb1fa3aed8565e9602096b04d
Contents?: true
Size: 1.04 KB
Versions: 13
Compression:
Stored size: 1.04 KB
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../../base/subsubcmd' class Trepan::SubSubcommand::ShowDebugDbgr < Trepan::ShowBoolSubSubcommand unless defined?(HELP) HELP = "Show debugging the debugger" NAME = File.basename(__FILE__, '.rb') PREFIX = %W(show debug #{NAME}) end end if __FILE__ == $0 # Demo it. require_relative '../../../mock' name = File.basename(__FILE__, '.rb') # FIXME: DRY the below code dbgr, show_cmd = MockDebugger::setup('show') debug_cmd = Trepan::SubSubcommand::ShowDebug.new(dbgr.core.processor, show_cmd) # FIXME: remove the 'join' below cmd_name = Trepan::SubSubcommand::ShowDebugDbgr::PREFIX.join('') debugx_cmd = Trepan::SubSubcommand::ShowDebugDbgr.new(show_cmd.proc, debug_cmd, cmd_name) debugx_cmd.run([]) end
Version data entries
13 entries across 13 versions & 1 rubygems