Skip to content

Commit

Permalink
Remove COP address for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocky Bernstein committed Aug 13, 2012
1 parent e8a6a5c commit facaaf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions lib/Devel/Trepan/CmdProcessor/Command/Info_Subcmd/Line.pm
Expand Up @@ -61,8 +61,9 @@ sub run($$)
$proc->msg($m); $proc->msg($m);
local(*DB::dbline) = "::_<$filename"; local(*DB::dbline) = "::_<$filename";
if (defined($DB::dbline[$line]) && 0 != $DB::dbline[$line]) { if (defined($DB::dbline[$line]) && 0 != $DB::dbline[$line]) {
$m = sprintf "COP address: 0x%x.", $DB::dbline[$line]; ;
$proc->msg($m); # $m = sprintf "COP address: 0x%x.", $DB::dbline[$line];
# $proc->msg($m);
} else { } else {
$proc->msg("Line not showing as associated with code\n") $proc->msg("Line not showing as associated with code\n")
unless $end_line; unless $end_line;
Expand Down
8 changes: 4 additions & 4 deletions lib/Devel/Trepan/CmdProcessor/Command/Info_Subcmd/Program.pm
Expand Up @@ -29,10 +29,10 @@ sub run($$)
} }
$m = sprintf "Program stop event: %s.", $proc->{event}; $m = sprintf "Program stop event: %s.", $proc->{event};
$proc->msg($m); $proc->msg($m);
if (defined($DB::dbline[$line]) && 0 != $DB::dbline[$line]) { # if (defined($DB::dbline[$line]) && 0 != $DB::dbline[$line]) {
$m = sprintf "COP address: 0x%x.", $DB::dbline[$line]; # $m = sprintf "COP address: 0x%x.", $DB::dbline[$line];
$proc->msg($m); # $proc->msg($m);
} # }
if ('return' eq $proc->{event}) { if ('return' eq $proc->{event}) {
$proc->{commands}{info}->run(['info', 'return']); $proc->{commands}{info}->run(['info', 'return']);
} elsif ('raise' eq $proc->{event}) { } elsif ('raise' eq $proc->{event}) {
Expand Down
1 change: 0 additions & 1 deletion t/data/line.right
Expand Up @@ -3,7 +3,6 @@ die sprintf "Need two integer arguments, got %d", scalar(@ARGV) unless
@ARGV == 2; @ARGV == 2;
basename is on. basename is on.
Line 18, file gcd.pl Line 18, file gcd.pl
COP address: 0x12345678.
Line 19, file gcd.pl Line 19, file gcd.pl
Line not showing as associated with code Line not showing as associated with code


Expand Down

0 comments on commit facaaf2

Please sign in to comment.