forked from rocky/Perl-Devel-Trepan
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rocky Bernstein
committed
Feb 17, 2012
1 parent
7734363
commit 605ed02
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env perl | ||
use strict; use warnings; | ||
use vars qw($version $program); | ||
sub init(); | ||
init(); | ||
my $y=3; | ||
sub init() { | ||
use File::Basename; | ||
$program = basename($0); # Who am I today, anyway? | ||
$version='1.0'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env perl | ||
use warnings; use strict; | ||
use Test::More 'no_plan'; | ||
use rlib '.'; | ||
use Helper; | ||
my $test_prog = File::Spec->catfile(dirname(__FILE__), | ||
qw(.. example next2.pl)); | ||
Helper::run_debugger("$test_prog", 'next2.cmd'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# test of another bug we once had with the "next" command. | ||
# Use this with example/next2.pl | ||
next | ||
p $program | ||
p $version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- (next2.pl:5) | ||
init(); | ||
-- (next2.pl:6) | ||
my $y=3; | ||
$DB::D[0] = 'trepan.pl' | ||
$DB::D[1] = '1.0' |