OSDN Git Service

MIPS: VDSO: Prevent use of smp_processor_id()
[android-x86/kernel.git] / scripts / decode_stacktrace.sh
index c332684..98cf634 100755 (executable)
@@ -65,7 +65,7 @@ parse_symbol() {
        if [[ "${cache[$module,$address]+isset}" == "isset" ]]; then
                local code=${cache[$module,$address]}
        else
-               local code=$(addr2line -i -e "$objfile" "$address")
+               local code=$(${CROSS_COMPILE}addr2line -i -e "$objfile" "$address")
                cache[$module,$address]=$code
        fi
 
@@ -77,7 +77,7 @@ parse_symbol() {
        fi
 
        # Strip out the base of the path
-       code=${code//$basepath/""}
+       code=${code#$basepath/}
 
        # In the case of inlines, move everything to same line
        code=${code//$'\n'/' '}