« lib/Devel/Trepan/CmdProcessor/Command/TBreak.pm
↑ Summary
lib/Devel/Trepan/CmdProcessor/Command/Load.pm »
| 1 | # -*- coding: utf-8 -*- | ||||||||||
| 2 | # Copyright (C) 2011-2014 Rocky Bernstein <rocky@cpan.org> | ||||||||||
| 3 | 12 | ▶ | use warnings; no warnings 'redefine'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Devel::Trepan::CmdProcessor::Command::Info; | ||||||||||
| 6 | 12 | ▶ | use rlib '../../../..'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 12 | ▶ | use if !@ISA, Devel::Trepan::CmdProcessor::Command::Subcmd::SubMgr; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 12 | ▶ | use if !@ISA, Devel::Trepan::CmdProcessor::Command; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | unless (@ISA) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 0 | ▶ | eval <<'EOE'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | use constant SHORT_HELP => 'Information about debugged program and its environment'; | ||||||||||
| 13 | use constant CATEGORY => 'status'; | ||||||||||
| 14 | use constant MIN_ARGS => 0; # Need at least this many | ||||||||||
| 15 | use constant MAX_ARGS => undef; # Need at most this many - undef -> unlimited. | ||||||||||
| 16 | use constant NEED_STACK => 0; | ||||||||||
| 17 | EOE | ||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 12 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 12 | ▶ | use vars qw(@ISA); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 1 | @ISA = qw(Devel::Trepan::CmdProcessor::Command::SubcmdMgr); | |||||||||
| 23 | 12 | ▶ | use vars @CMD_VARS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | |||||||||||
| 25 | 1 | our $NAME = set_name(); | |||||||||
| 26 | =pod | ||||||||||
| 27 | |||||||||||
| 28 | =head2 Synopsis: | ||||||||||
| 29 | |||||||||||
| 30 | =cut | ||||||||||
| 31 | |||||||||||
| 32 | 1 | our $HELP = <<'HELP'; | |||||||||
| 33 | =pod | ||||||||||
| 34 | |||||||||||
| 35 | B<info> [I<info sub-commmand> ...] | ||||||||||
| 36 | |||||||||||
| 37 | Generic command for showing things about the program being debugged. | ||||||||||
| 38 | |||||||||||
| 39 | You can give unique prefix of the name of a subcommand to get | ||||||||||
| 40 | information about just that subcommand. | ||||||||||
| 41 | |||||||||||
| 42 | Type C<info> for a list of subcommands and what they do. | ||||||||||
| 43 | |||||||||||
| 44 | Type C<help info *> for a list of C<info> subcommands. | ||||||||||
| 45 | |||||||||||
| 46 | =head2 See also: | ||||||||||
| 47 | |||||||||||
| 48 | L<C<info breakpoints>|Devel::Trepan::CmdProcessor::Command::Info::Breakpoints>, | ||||||||||
| 49 | L<C<info files>|Devel::Trepan::CmdProcessor::Command::Info::Files>, | ||||||||||
| 50 | L<C<info frame>|Devel::Trepan::CmdProcessor::Command::Info::Frame>, | ||||||||||
| 51 | L<C<info functions>|Devel::Trepan::CmdProcessor::Command::Info::Functions>, | ||||||||||
| 52 | L<C<info line>|Devel::Trepan::CmdProcessor::Command::Info::Line>, | ||||||||||
| 53 | L<C<info macros>|Devel::Trepan::CmdProcessor::Command::Info::Macros>, | ||||||||||
| 54 | L<C<info packages>|Devel::Trepan::CmdProcessor::Command::Info::Packages>, | ||||||||||
| 55 | L<C<info program>|Devel::Trepan::CmdProcessor::Command::Info::Program>, | ||||||||||
| 56 | L<C<info return>|Devel::Trepan::CmdProcessor::Command::Info::Return>, | ||||||||||
| 57 | L<C<info signals>|Devel::Trepan::CmdProcessor::Command::Info::Signals>, | ||||||||||
| 58 | L<C<info variables>|Devel::Trepan::CmdProcessor::Command::Info::Variables>, | ||||||||||
| 59 | and | ||||||||||
| 60 | L<C<info watch>|Devel::Trepan::CmdProcessor::Command::Info::Watch> | ||||||||||
| 61 | =cut | ||||||||||
| 62 | HELP | ||||||||||
| 63 | |||||||||||
| 64 | 1 | ▶ | unless (caller) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 65 | 0 | require Devel::Trepan::CmdProcessor; | |||||||||
| 66 | 0 | my $proc = Devel::Trepan::CmdProcessor->new(undef, 'bogus'); | |||||||||
| 67 | 0 | my $cmd = Devel::Trepan::CmdProcessor::Command::Info->new($proc, $NAME); | |||||||||
| 68 | # require_relative '../mock' | ||||||||||
| 69 | # dbgr, cmd = MockDebugger::setup | ||||||||||
| 70 | 0 | $cmd->run([$NAME]) | |||||||||
| 71 | } | ||||||||||
| 72 | |||||||||||
| 73 | 1 | 1; | |||||||||