]> Devi Nivas Git - cs3210-lab1.git/commitdiff
For the convenience of students
authorFrans Kaashoek <kaashoek@mit.edu>
Thu, 23 Aug 2012 13:35:00 +0000 (09:35 -0400)
committerFrans Kaashoek <kaashoek@mit.edu>
Thu, 23 Aug 2012 13:35:00 +0000 (09:35 -0400)
printpcs [new file with mode: 0755]

diff --git a/printpcs b/printpcs
new file mode 100755 (executable)
index 0000000..32b33cc
--- /dev/null
+++ b/printpcs
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Decode the symbols from a panic stack trace on stdin
+
+if which addr2line
+then
+    p="addr2line"
+else
+    p="i386-jos-elf-addr2line"
+fi
+echo grep '^ ' | $p -e kernel $*