在ubuntu 12.04中使用android-ndk-r9d-linux-x86的ndk-gdb出错

use*_*719 6 c++ linux ubuntu android-ndk ndk-gdb

我在ubuntu 12.04中使用android-ndk-r9d-linux-x86的ndk-gdb来调试android本机应用程序"hello-jni",但它收到此错误.

  WARNING: The shell running this script isn't bash.  Although we try to avoid bashism in               scripts, things can happen.
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 143: .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: Bad substitution
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 555: [: 1: unexpected operator
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 771: [: armeabi-v7a: unexpected operator
Run Code Online (Sandbox Code Playgroud)

但android-ndk-r8e-linux-x86还可以,我想知道为什么?谢谢.

Rya*_*ell 1

我相信“ndk-gdb”已被弃用,取而代之的是“ndk-gdb.py”(尽管这在我看来还没有被广泛宣传。)使用 r9d,我遇到了与您上面报告的相同的问题,但是 python 版本无需问题。