line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
|
|
|
|
# Copyright (C) 2012, 2014-2015 Rocky Bernstein <rocky@cpan.org> |
3
|
12
|
|
|
12
|
|
85
|
use warnings; no warnings 'redefine'; no warnings 'once'; |
|
12
|
|
|
12
|
|
35
|
|
|
12
|
|
|
12
|
|
484
|
|
|
12
|
|
|
|
|
72
|
|
|
12
|
|
|
|
|
35
|
|
|
12
|
|
|
|
|
375
|
|
|
12
|
|
|
|
|
73
|
|
|
12
|
|
|
|
|
37
|
|
|
12
|
|
|
|
|
355
|
|
4
|
12
|
|
|
12
|
|
73
|
use rlib '../../../../../..'; |
|
12
|
|
|
|
|
30
|
|
|
12
|
|
|
|
|
79
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Devel::Trepan::CmdProcessor::Command::Set::Debug::Macro; |
7
|
12
|
|
|
12
|
|
5134
|
use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd; |
|
12
|
|
|
|
|
33
|
|
|
12
|
|
|
|
|
297
|
|
8
|
|
|
|
|
|
|
|
9
|
12
|
|
|
12
|
|
67
|
use strict; |
|
12
|
|
|
|
|
34
|
|
|
12
|
|
|
|
|
308
|
|
10
|
12
|
|
|
12
|
|
66
|
use vars qw(@ISA @SUBCMD_VARS); |
|
12
|
|
|
|
|
33
|
|
|
12
|
|
|
|
|
760
|
|
11
|
|
|
|
|
|
|
@ISA = qw(Devel::Trepan::CmdProcessor::Command::SetBoolSubsubcmd); |
12
|
|
|
|
|
|
|
# Values inherited from parent |
13
|
|
|
|
|
|
|
|
14
|
12
|
|
|
12
|
|
82
|
use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS; |
|
12
|
|
|
|
|
31
|
|
|
12
|
|
|
|
|
1629
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $IN_LIST = 1; |
17
|
|
|
|
|
|
|
our $SHORT_HELP = 'Debug macro expansion'; |
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 Synopsis: |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
our $HELP = <<'HELP'; |
25
|
|
|
|
|
|
|
=pod |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
B<set debug macro> [B<on>|B<off>] |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Debug macro expansion. If "on" or "off" is not given, "on" is assumed. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 See also: |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
L<C<show debug macro>|Devel::Trepan::CmdProcessor::Command::Show::Debug::Macro> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
HELP |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our $MIN_ABBREV = length('ma'); |
39
|
12
|
|
|
12
|
|
80
|
use constant MAX_ARGS => 1; |
|
12
|
|
|
|
|
31
|
|
|
12
|
|
|
|
|
984
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
unless (caller) { |
42
|
|
|
|
|
|
|
# Demo it. |
43
|
|
|
|
|
|
|
# require_relative '../../../mock' |
44
|
|
|
|
|
|
|
# name = File.basename(__FILE__, '.rb') |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# dbgr, set_cmd = MockDebugger::setup('set') |
47
|
|
|
|
|
|
|
# $max_cmd = __PACKAGE__->new(dbgr.core.processor, $set_cmd) |
48
|
|
|
|
|
|
|
# $cmd_ary = Trepan::SubSubcommand::SetMaxList::PREFIX |
49
|
|
|
|
|
|
|
# $cmd_name = cmd_ary.join(' ') |
50
|
|
|
|
|
|
|
# $subcmd = __PACKAGE__->new($set_cmd->{proc}, $max_cmd, $cmd_name); |
51
|
|
|
|
|
|
|
# $prefix_run = cmd_ary[1..-1] |
52
|
|
|
|
|
|
|
# $subcmd->run(prefix_run); |
53
|
|
|
|
|
|
|
# $subcmd-.run(prefix_run, qw(0)); |
54
|
|
|
|
|
|
|
# $subcmd->run(prefix_run, qw(20)); |
55
|
|
|
|
|
|
|
# $subcmd->summary_help(name); |
56
|
|
|
|
|
|
|
# print |
57
|
|
|
|
|
|
|
# print '-' x 20; |
58
|
|
|
|
|
|
|
# print $subcmd->save_command |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |