scripts: stacktrace.sh: dump PC and LR addr2line information
Change-Id: If5c017eb3440b587153fa6b8624bf4acffe5a4e5 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
2cb995bc2e
commit
5330794924
|
|
@ -41,13 +41,17 @@ do
|
||||||
cat u-boot.sym | sort |
|
cat u-boot.sym | sort |
|
||||||
awk -v foffset=$f_offset_hex '/\.text/ {
|
awk -v foffset=$f_offset_hex '/\.text/ {
|
||||||
if (strtonum("0x"$1) > '$frame_pc_str') {
|
if (strtonum("0x"$1) > '$frame_pc_str') {
|
||||||
printf("%s+0x%s/0x%x\n", fname, foffset, fsize);
|
printf("%s+0x%s/0x%x ", fname, foffset, fsize);
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
fname=$NF;
|
fname=$NF;
|
||||||
fsize=strtonum("0x"$5);
|
fsize=strtonum("0x"$5);
|
||||||
fpc=strtonum("0x"$1);
|
fpc=strtonum("0x"$1);
|
||||||
}'
|
}'
|
||||||
|
|
||||||
|
func_path=`./make.sh $frame_pc_str | awk '{ print $1 }' | sed -n "/home/p"`
|
||||||
|
func_path=`echo ${func_path##*boot/}`
|
||||||
|
echo $func_path
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue