For the convenience of students
This commit is contained in:
parent
6650cc934a
commit
020acb4f10
1 changed files with 11 additions and 0 deletions
11
printpcs
Executable file
11
printpcs
Executable file
|
@ -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 $*
|
Loading…
Reference in a new issue