diff --git a/tools/scripts/parse_memory/parse_mem_info.sh b/tools/scripts/parse_memory/parse_mem_info.sh index faf3d7f31262a703550501f03b6e7432a092eb13..746ae614f0c24aa80f6e5e03181ea9a40d59062f 100755 --- a/tools/scripts/parse_memory/parse_mem_info.sh +++ b/tools/scripts/parse_memory/parse_mem_info.sh @@ -38,7 +38,7 @@ get_line() { SYM_ADDR=$(echo $1 | awk '{print $2}') ELF_OFFSET=$(echo ${SYM_ADDR} | cut -d '[' -f2 | cut -d ']' -f1) - FILE_LINE=$(${ADDR2LINE} -f -e $2 ${ELF_OFFSET} | awk 'NR==2'`) + FILE_LINE=$(${ADDR2LINE} -f -e $2 ${ELF_OFFSET} | awk 'NR==2') if [[ "${FILE_LINE}" == *"?"* ]]; then typeset ELF_OFFSET=$((ELF_OFFSET+LOAD_BASE)) ELF_OFFSET=$(echo "obase=16;${ELF_OFFSET}" | bc)