line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::ebug::Plugin::SymbolBrowser; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1589
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
6
|
use base qw(Exporter); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
269
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @EXPORT = qw(package_list symbol_list subroutine_info); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub package_list { |
9
|
0
|
|
|
0
|
0
|
|
my( $self, $package ) = @_; |
10
|
0
|
|
|
|
|
|
my $response = $self->talk( { command => "package_list", |
11
|
|
|
|
|
|
|
package => $package, |
12
|
|
|
|
|
|
|
} ); |
13
|
0
|
|
|
|
|
|
return @{$response->{packages}}; |
|
0
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub symbol_list { |
17
|
0
|
|
|
0
|
0
|
|
my( $self, $package, $types ) = @_; |
18
|
0
|
|
|
|
|
|
my $response = $self->talk( { command => "symbol_list", |
19
|
|
|
|
|
|
|
package => $package, |
20
|
|
|
|
|
|
|
types => $types, |
21
|
|
|
|
|
|
|
} ); |
22
|
0
|
|
|
|
|
|
return @{$response->{symbols}}; |
|
0
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub subroutine_info { |
26
|
0
|
|
|
0
|
0
|
|
my( $self, $subroutine ) = @_; |
27
|
0
|
|
|
|
|
|
my $response = $self->talk( { command => "subroutine_info", |
28
|
|
|
|
|
|
|
subroutine => $subroutine, |
29
|
|
|
|
|
|
|
} ); |
30
|
0
|
|
|
|
|
|
return @{$response}{qw(filename start end)}; |
|
0
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |