line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright (C) 2012 Rocky Bernstein <rocky@cpan.org> |
2
|
|
|
|
|
|
|
=head1 C<Devel::Trepan::Terminated> |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
Contains the C<at_exit> routine that the debugger uses to issue the |
5
|
|
|
|
|
|
|
C<Debugged program terminated ...> message after the program completes. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# rocky: I'm copying what perl5db does here, which I suppose has some |
10
|
|
|
|
|
|
|
# time-honored benefit. That doesn't mean though that I like it. FIXME! |
11
|
|
|
|
|
|
|
package Devel::Trepan::Terminated; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub at_exit { |
14
|
12
|
|
|
12
|
0
|
39
|
$DB::ready = 1; |
15
|
|
|
|
|
|
|
# The below is there to have something to look at in "list" command. |
16
|
12
|
|
|
|
|
46
|
"Debugged program terminated. Use 'q' to quit or 'R' to restart."; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
'Just another Perl module'; |