从一个文件里读取出每一行,并解析每一行
#!/bin/bash
callstack_file=
cat ${callstack_file} | while read line
do
entry=`echo ${line} | grep entry -w`
if [ -n "${entry}" ]
then
address=`echo ${entry} | grep entry -w | awk '{print $2}'`
${UBOOT_TOOLCHAIN}/aarch64-linux-gnu-addr2line -aCfe ./u-boot ${address}
fi
done
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/267206.html