| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # -*- coding: utf-8 -*- | 
| 2 |  |  |  |  |  |  | # Copyright (C) 2011 Rocky Bernstein <rocky@cpan.org> | 
| 3 | 12 |  |  | 12 |  | 85 | use warnings; no warnings 'redefine'; no warnings 'once'; | 
|  | 12 |  |  | 12 |  | 35 |  | 
|  | 12 |  |  | 12 |  | 609 |  | 
|  | 12 |  |  |  |  | 75 |  | 
|  | 12 |  |  |  |  | 36 |  | 
|  | 12 |  |  |  |  | 398 |  | 
|  | 12 |  |  |  |  | 70 |  | 
|  | 12 |  |  |  |  | 32 |  | 
|  | 12 |  |  |  |  | 333 |  | 
| 4 | 12 |  |  | 12 |  | 68 | use rlib '../../../../../..'; | 
|  | 12 |  |  |  |  | 31 |  | 
|  | 12 |  |  |  |  | 76 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | package Devel::Trepan::CmdProcessor::Command::Show::Max::List; | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | # require_relative '../../base/subsubcmd' | 
| 9 | 12 |  |  | 12 |  | 5336 | use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd; | 
|  | 12 |  |  |  |  | 35 |  | 
|  | 12 |  |  |  |  | 307 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 | 12 |  |  | 12 |  | 112 | use strict; | 
|  | 12 |  |  |  |  | 35 |  | 
|  | 12 |  |  |  |  | 359 |  | 
| 12 | 12 |  |  | 12 |  | 67 | use vars qw(@ISA @SUBCMD_VARS); | 
|  | 12 |  |  |  |  | 37 |  | 
|  | 12 |  |  |  |  | 790 |  | 
| 13 |  |  |  |  |  |  | @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowIntSubsubcmd); | 
| 14 |  |  |  |  |  |  | # Values inherited from parent | 
| 15 |  |  |  |  |  |  |  | 
| 16 | 12 |  |  | 12 |  | 80 | use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS; | 
|  | 12 |  |  |  |  | 41 |  | 
|  | 12 |  |  |  |  | 2132 |  | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | our $IN_LIST      = 1; | 
| 19 |  |  |  |  |  |  | our $MIN_ABBREV   = length('lis'); | 
| 20 |  |  |  |  |  |  | =pod | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head2 Synopsis: | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | =cut | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | our $HELP   = <<"HELP"; | 
| 27 |  |  |  |  |  |  | =pod | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | B<show max list> | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | Show the number of source file lines to list | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | =head2 See also: | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | L<C<set max list>|Devel::Trepan::CmdProcessor::Set::Max::List> | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | =cut | 
| 38 |  |  |  |  |  |  | HELP | 
| 39 |  |  |  |  |  |  | our $SHORT_HELP   = 'Show the number of source file lines to list'; | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | unless (caller) { | 
| 42 |  |  |  |  |  |  | # Demo it. | 
| 43 |  |  |  |  |  |  | # require_relative '../../../mock' | 
| 44 |  |  |  |  |  |  | # name = File.basename(__FILE__, '.rb') | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | # dbgr, show_cmd = MockDebugger::showup('show') | 
| 47 |  |  |  |  |  |  | # max_cmd       = Trepan::SubSubcommand::ShowMax.new(dbgr.core.processor, | 
| 48 |  |  |  |  |  |  | #                                                     show_cmd) | 
| 49 |  |  |  |  |  |  | # cmd_ary       = Trepan::SubSubcommand::ShowMaxList::PREFIX | 
| 50 |  |  |  |  |  |  | # cmd_name      = cmd_ary.join(' ') | 
| 51 |  |  |  |  |  |  | # subcmd        = Trepan::SubSubcommand::ShowMaxList.new(show_cmd.proc, | 
| 52 |  |  |  |  |  |  | #                                                        max_cmd, | 
| 53 |  |  |  |  |  |  | #                                                        cmd_name) | 
| 54 |  |  |  |  |  |  | # prefix_run = cmd_ary[1..-1] | 
| 55 |  |  |  |  |  |  | # subcmd.run(prefix_run) | 
| 56 |  |  |  |  |  |  | # subcmd.run(prefix_run + %w(0)) | 
| 57 |  |  |  |  |  |  | # subcmd.run(prefix_run + %w(20)) | 
| 58 |  |  |  |  |  |  | # name = File.basename(__FILE__, '.rb') | 
| 59 |  |  |  |  |  |  | # subcmd.summary_help(name) | 
| 60 |  |  |  |  |  |  | # puts | 
| 61 |  |  |  |  |  |  | # puts '-' * 20 | 
| 62 |  |  |  |  |  |  | # puts subcmd.save_command | 
| 63 |  |  |  |  |  |  | } | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | 1; |