3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

compiler_vm: updated watchdog

This commit is contained in:
Pragmatic Software 2011-02-01 02:55:33 +00:00
parent 65d1d49aaf
commit f35874b6ea

View File

@ -91,10 +91,14 @@ sub debug_program {
while(my $line = <$output>) {
if($line =~ s/^#\d+//) {
next if $line =~ /\?\?/;
next if $line =~ /in main\s*\(/;
$line =~ s/\s*0x[0-9a-fA-F]+\s*//;
$result .= "$line ";
}
elsif($line =~ s/^\d+//) {
$result .= "at " if not length $result;
$result .= "statement: $line";
last;
}