From 8f8b99c40aaac09841566fe89a27cd4dd13bfa7e Mon Sep 17 00:00:00 2001 From: Jack Veenstra <> Date: Fri, 10 Apr 2009 10:30:51 -0700 Subject: [PATCH] AI 145709: Fixed tracedmdump() by correcting the KERNEL path. Merged 145592 from master. BUG=1630077 Automated import of CL 145709 --- envsetup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index d15abcbf3..f8f20ab5c 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -817,7 +817,7 @@ function tracedmdump() return fi local prebuiltdir=$(getprebuilt) - local KERNEL=$T/prebuilt/android-arm/vmlinux-qemu + local KERNEL=$T/prebuilt/android-arm/kernel/vmlinux-qemu local TRACE=$1 if [ ! "$TRACE" ] ; then @@ -825,6 +825,11 @@ function tracedmdump() return fi + if [ ! -r "$KERNEL" ] ; then + echo "Error: cannot find kernel: '$KERNEL'" + return + fi + local BASETRACE=$(basename $TRACE) if [ "$BASETRACE" = "$TRACE" ] ; then TRACE=$ANDROID_PRODUCT_OUT/traces/$TRACE