[Android] gdb.sh: simplify

Thomas Guillem git at videolan.org
Tue Dec 1 17:06:50 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec  1 17:05:25 2015 +0100| [5ace4687171e7f8ffc2251d966997e0c633cfbe9] | committer: Thomas Guillem

gdb.sh: simplify

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5ace4687171e7f8ffc2251d966997e0c633cfbe9
---

 gdb.sh |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/gdb.sh b/gdb.sh
index bca56b7..f68f1a3 100755
--- a/gdb.sh
+++ b/gdb.sh
@@ -60,18 +60,11 @@ if [ ! -z "$APK_PATH" ]; then
         exit 1
     fi
 
-    lib_name=$(basename "$dbgfile_path")
-    lib_name=${lib_name%.dbg}
-    lib_path=$($aapt l -a "$APK_PATH"|grep "$lib_name")
-
-    unzip -p "$APK_PATH" $lib_path > "$TMP_PATH"/$lib_name
-    cp $dbgfile_path "$TMP_PATH"
-
     echo ""
     echo "\"list *0x<pc_address>\" to know where the specified apk crashed"
     echo ""
 
-    ./compile-libvlc.sh -a $arch --gdb "$TMP_PATH"/$lib_name
+    ./compile-libvlc.sh -a $arch --gdb "$dbgfile_path"
     exit 0
 fi
 



More information about the Android mailing list