summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2012-08-23 09:35:00 -0400
committerFrans Kaashoek <[email protected]>2012-08-23 09:35:00 -0400
commit020acb4f10832d0c003f24272b75a95859d4188f (patch)
tree2437f7dd81bcc6cc706caf34b867fadb9e48c2a3
parent6650cc934afa222bb729f63fbfe85aa15ebbd778 (diff)
downloadxv6-labs-020acb4f10832d0c003f24272b75a95859d4188f.tar.gz
xv6-labs-020acb4f10832d0c003f24272b75a95859d4188f.tar.bz2
xv6-labs-020acb4f10832d0c003f24272b75a95859d4188f.zip
For the convenience of students
-rwxr-xr-xprintpcs11
1 files changed, 11 insertions, 0 deletions
diff --git a/printpcs b/printpcs
new file mode 100755
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 $*