提交 fc761bad 编写于 作者: H Hongjin Li

fixed 69f3bf3a from https://gitee.com/hongjin-li/kernel_liteos_a/pulls/979

style: using different variable in different functions
Signed-off-by: NHongjin Li <lihongjin1@huawei.com>
Change-Id: I814dcccefcd6248ea32cae94bfde567f3077c7cd
上级 38a9313a
......@@ -59,14 +59,14 @@ parse_line()
echo "Error: no such file: $i"
exit 1
fi
FILE_LINE=$(get_line "$1" $i)
if [[ "${FILE_LINE}" == *"?"* ]] || [ -z "${FILE_LINE}" ]; then
ELF_FILE_LINE=$(get_line "$1" $i)
if [[ "${ELF_FILE_LINE}" == *"?"* ]] || [ -z "${ELF_FILE_LINE}" ]; then
echo " * Error: you need ensure whether file: "$i" was compiled with -g or not! *"
exit 1
fi
LINE=$(echo $1 | tr -d '\r')
LINE=$(echo ${LINE} | awk '{print $1,$2}')
echo " "${LINE}" at "${FILE_LINE}
echo " "${LINE}" at "${ELF_FILE_LINE}
FLAG=true
break
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册