line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
|
|
|
|
# Copyright (C) 2012 Rocky Bernstein <rocky@cpan.org> |
3
|
|
|
|
|
|
|
|
4
|
12
|
|
|
12
|
|
81
|
use rlib '../..'; |
|
12
|
|
|
|
|
29
|
|
|
12
|
|
|
|
|
94
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# A debugger command processor. This includes the debugger commands |
7
|
|
|
|
|
|
|
# and ties together the debugger core and I/O interface. |
8
|
|
|
|
|
|
|
package Devel::Trepan::Processor; |
9
|
|
|
|
|
|
|
|
10
|
12
|
|
|
12
|
|
3947
|
use vars qw(@EXPORT @ISA); |
|
12
|
|
|
|
|
44
|
|
|
12
|
|
|
|
|
850
|
|
11
|
|
|
|
|
|
|
@EXPORT = qw( adjust_frame running_initialize); |
12
|
|
|
|
|
|
|
@ISA = qw( Exporter ); |
13
|
|
|
|
|
|
|
|
14
|
12
|
|
|
12
|
|
77
|
use English qw( -no_match_vars ); |
|
12
|
|
|
|
|
30
|
|
|
12
|
|
|
|
|
95
|
|
15
|
12
|
|
|
12
|
|
4074
|
use Exporter; |
|
12
|
|
|
|
|
34
|
|
|
12
|
|
|
|
|
377
|
|
16
|
12
|
|
|
12
|
|
78
|
use warnings; no warnings 'redefine'; |
|
12
|
|
|
12
|
|
29
|
|
|
12
|
|
|
|
|
312
|
|
|
12
|
|
|
|
|
57
|
|
|
12
|
|
|
|
|
27
|
|
|
12
|
|
|
|
|
419
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
eval "require Devel::Trepan::DB::Display"; |
19
|
12
|
|
|
12
|
|
4273
|
use Devel::Trepan::Processor::Frame; |
|
12
|
|
|
|
|
37
|
|
|
12
|
|
|
|
|
339
|
|
20
|
12
|
|
|
12
|
|
4960
|
use Devel::Trepan::Processor::Running; |
|
12
|
|
|
|
|
58
|
|
|
12
|
|
|
|
|
458
|
|
21
|
12
|
|
|
12
|
|
90
|
use strict; |
|
12
|
|
|
|
|
35
|
|
|
12
|
|
|
|
|
2144
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# attr_reader :settings |
24
|
|
|
|
|
|
|
sub new($$;$) { |
25
|
0
|
|
|
0
|
0
|
|
my ($class, $interfaces, $settings) = @_; |
26
|
0
|
|
0
|
|
|
|
$settings ||= {}; |
27
|
0
|
|
|
|
|
|
my $self = { |
28
|
|
|
|
|
|
|
class => $class, |
29
|
|
|
|
|
|
|
interfaces => $interfaces, |
30
|
|
|
|
|
|
|
settings => $settings, |
31
|
|
|
|
|
|
|
gave_stack_trunc_warning => 0, |
32
|
|
|
|
|
|
|
}; |
33
|
0
|
|
|
|
|
|
bless ($self, $class); |
34
|
0
|
|
|
|
|
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
unless (caller) { |
38
|
|
|
|
|
|
|
require Devel::Trepan::Interface::User; |
39
|
|
|
|
|
|
|
my $intf = Devel::Trepan::Interface::User->new; |
40
|
|
|
|
|
|
|
my $proc = __PACKAGE__->new([$intf]); |
41
|
|
|
|
|
|
|
print $proc->{class}, "\n"; |
42
|
|
|
|
|
|
|
require Data::Dumper; |
43
|
|
|
|
|
|
|
print Data::Dumper::Dumper($proc->{interfaces});; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |