Make backtrace chop long filenames to just the last few characters.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 20 Dec 2005 21:11:42 +0000 (21:11 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 20 Dec 2005 21:11:42 +0000 (21:11 +0000)
src/utils/backtrace

index baa5eff535cd878922e02e0dcaa84a022fce1807..6cfd3ec5569a1e00d412c5629e4af17b6a3b62ad 100755 (executable)
@@ -60,6 +60,7 @@ while (<A2L>) {
     my ($function, $line);
     chomp ($function = $_);
     chomp ($line = <A2L>);
+    $line = "..." . substr ($line, -25) if length ($line) > 28;
     print shift (@ARGV), ": $function ($line)\n";
 }
 close (A2L);