From: Ben Pfaff Date: Tue, 19 Oct 2004 22:48:47 +0000 (+0000) Subject: Improve. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ac41bfd566e33c8736d0024bd0bb3f1287f819;p=pintos-anon Improve. --- diff --git a/grading/threads/run-tests b/grading/threads/run-tests index a088822..7fcc91c 100755 --- a/grading/threads/run-tests +++ b/grading/threads/run-tests @@ -431,9 +431,10 @@ sub verify_common { $A2L = "i386-elf-addr2line"; } open (A2L, "$A2L -fe output/$test/kernel.o @addrs|"); - my ($function); - while ($function = ) { - my ($line) = ; + for (;;) { + my ($function, $line); + last unless $function = ; + $line = ; chomp $function; chomp $line; $details .= " $function ($line)\n";