Sha256: 5863b511fd6d99dd310615cf8de7aab696b4015fa75876780e7b591e59efef20
Contents?: true
Size: 844 Bytes
Versions: 9
Compression:
Stored size: 844 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../base/subcmd' class Trepan::Subcommand::ShowKernelstep < Trepan::Subcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = "Show stepping into kernel methods" MIN_ABBREV = 'kern'.size # Specific to this class KERNEL_METHOD_FILE_RE = /^kernel\// end def ignore? @proc.ignore_file_re.member?(KERNEL_METHOD_FILE_RE) end def show msg("stepping into kernel methods is %s." % (ignore? ? 'disallowed' : 'allowed')) end def run(args) show end end if __FILE__ == $0 # Demo it. require_relative '../../mock' cmd = MockDebugger::sub_setup(Trepan::Subcommand::ShowKernelstep) end
Version data entries
9 entries across 9 versions & 1 rubygems