From: Ben Pfaff Date: Wed, 8 Dec 2004 22:36:17 +0000 (+0000) Subject: Print addresses along with function name/filename/line number. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51cf4d0eceb23ad6bfc1a805c9eafd379a06831;p=pintos-anon Print addresses along with function name/filename/line number. --- diff --git a/src/utils/backtrace b/src/utils/backtrace index 0dd2842..300df64 100755 --- a/src/utils/backtrace +++ b/src/utils/backtrace @@ -6,7 +6,7 @@ while ($function = ) { $line = ; chomp $function; chomp $line; - print "$function ($line)\n"; + print shift (@ARGV), ": $function ($line)\n"; } sub search_path {