line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
|
|
|
|
# Copyright (C) 2011-2012, 2014 Rocky Bernstein <rocky@cpan.org> |
3
|
12
|
|
|
12
|
|
82
|
use warnings; no warnings 'redefine'; no warnings 'once'; |
|
12
|
|
|
12
|
|
33
|
|
|
12
|
|
|
12
|
|
564
|
|
|
12
|
|
|
|
|
91
|
|
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
432
|
|
|
12
|
|
|
|
|
77
|
|
|
12
|
|
|
|
|
35
|
|
|
12
|
|
|
|
|
375
|
|
4
|
12
|
|
|
12
|
|
78
|
use rlib '../../../../../..'; |
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
75
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Devel::Trepan::CmdProcessor::Command::Show::Auto::Eval; |
7
|
12
|
|
|
12
|
|
5158
|
use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd; |
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
298
|
|
8
|
|
|
|
|
|
|
|
9
|
12
|
|
|
12
|
|
68
|
use strict; |
|
12
|
|
|
|
|
32
|
|
|
12
|
|
|
|
|
335
|
|
10
|
12
|
|
|
12
|
|
100
|
use vars qw(@ISA @SUBCMD_VARS); |
|
12
|
|
|
|
|
39
|
|
|
12
|
|
|
|
|
827
|
|
11
|
|
|
|
|
|
|
@ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowBoolSubsubcmd); |
12
|
|
|
|
|
|
|
# Values inherited from parent |
13
|
|
|
|
|
|
|
|
14
|
12
|
|
|
12
|
|
79
|
use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS; |
|
12
|
|
|
|
|
32
|
|
|
12
|
|
|
|
|
1049
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $IN_LIST = 1; |
17
|
12
|
|
|
12
|
|
85
|
use constant MAX_ARGS => 0; |
|
12
|
|
|
|
|
32
|
|
|
12
|
|
|
|
|
1724
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 Synopsis: |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
our $HELP = <<"HELP"; |
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
B<show auto eval> |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Show whether unrecognized debugger commands are evaluated. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 See also: |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L<C<set auto eval>|Devel::Trepan::CmdProcessor::Command::Set::Auto Eval>, and L<C<eval>|Devel::Trepan::CmdProcessor::Command::Eval> |
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
HELP |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $MIN_ABBREV = length('ev'); |
37
|
|
|
|
|
|
|
our $SHORT_HELP = "Show evaluation of unrecognized debugger commands"; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
unless (caller) { |
40
|
|
|
|
|
|
|
# Demo it. |
41
|
|
|
|
|
|
|
# require_relative '../../../mock' |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# dbgr, set_cmd = MockDebugger::setup('set'); |
44
|
|
|
|
|
|
|
# $max_cmd = __PACKAGE__->new(dbgr.core.processor, $set_cmd); |
45
|
|
|
|
|
|
|
# $cmd_ary = __PACKAGE__->{prefix}; |
46
|
|
|
|
|
|
|
# $cmd_name = cmd_ary.join(' '); |
47
|
|
|
|
|
|
|
# $subcmd = __PACAKGE__->new(set_cmd.proc, max_cmd, cmd_name); |
48
|
|
|
|
|
|
|
# prefix_run = cmd_ary[1..-1] |
49
|
|
|
|
|
|
|
# $subcmd->run(prefix_run) |
50
|
|
|
|
|
|
|
# $subcmd->run(($prefix_run, qw(0))); |
51
|
|
|
|
|
|
|
# $subcmd->run(($prefix_run, qw(20))); |
52
|
|
|
|
|
|
|
# $subcmd->summary_help($name); |
53
|
|
|
|
|
|
|
# print |
54
|
|
|
|
|
|
|
# print '-' x 20; |
55
|
|
|
|
|
|
|
# print $subcmd->save_command |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |