line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
|
|
|
|
# Copyright (C) 2011, 2014 Rocky Bernstein <rocky@cpan.org> |
3
|
12
|
|
|
12
|
|
87
|
use warnings; no warnings 'redefine'; no warnings 'once'; |
|
12
|
|
|
12
|
|
34
|
|
|
12
|
|
|
12
|
|
699
|
|
|
12
|
|
|
|
|
86
|
|
|
12
|
|
|
|
|
81
|
|
|
12
|
|
|
|
|
483
|
|
|
12
|
|
|
|
|
82
|
|
|
12
|
|
|
|
|
44
|
|
|
12
|
|
|
|
|
389
|
|
4
|
12
|
|
|
12
|
|
84
|
use rlib '../../../../../..'; |
|
12
|
|
|
|
|
35
|
|
|
12
|
|
|
|
|
73
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Devel::Trepan::CmdProcessor::Command::Show::Max::Stack; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# require_relative '../../base/subsubcmd' |
9
|
12
|
|
|
12
|
|
5588
|
use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd; |
|
12
|
|
|
|
|
37
|
|
|
12
|
|
|
|
|
334
|
|
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
72
|
use strict; |
|
12
|
|
|
|
|
39
|
|
|
12
|
|
|
|
|
318
|
|
12
|
12
|
|
|
12
|
|
70
|
use vars qw(@ISA @SUBCMD_VARS); |
|
12
|
|
|
|
|
31
|
|
|
12
|
|
|
|
|
760
|
|
13
|
|
|
|
|
|
|
@ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowIntSubsubcmd); |
14
|
|
|
|
|
|
|
# Values inherited from parent |
15
|
|
|
|
|
|
|
|
16
|
12
|
|
|
12
|
|
74
|
use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS; |
|
12
|
|
|
|
|
39
|
|
|
12
|
|
|
|
|
2038
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our $IN_LIST = 1; |
19
|
|
|
|
|
|
|
our $MIN_ABBREV = length('wid'); |
20
|
|
|
|
|
|
|
=pod |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 Synopsis: |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
our $HELP = <<"HELP"; |
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
B<show max stack> |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Show the number of backtrace lines the debugger will show. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 See also: |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
L<C<set max stack>|Devel::Trepan::CmdProcessor::Set::Max::Stack> |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
HELP |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our $SHORT_HELP = 'Show the number of backtrace lines the debugger will show'; |
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::ShowMaxStack::PREFIX |
50
|
|
|
|
|
|
|
# cmd_name = cmd_ary.join(' ') |
51
|
|
|
|
|
|
|
# subcmd = Trepan::SubSubcommand::ShowMaxStack.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; |