Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android NDK: Why arm-linux-androideabi-gdb.exe disappeared?

I recently migrated from Android NDK r9b to r11b.

I'm deploying test application using QtCreator, this uses the NDK for compilation.

I'm not able to debug anymore, QtCreator complains that it cannot find arm-linux-androideabi-gdb.exe.

And I confirm:

  • r9b has file toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gdb.exe
  • r11b does not have it in toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin
  • I downloaded and checked r10e, this one also contains toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gdb.exe

Why did they remove GDB from release r11b? How are we supposed to debug now?

Edit: Submitted Qt bug: https://bugreports.qt.io/browse/QTCREATORBUG-15933. gdb can be manually picked up somewhere else in NDK folder. However, I was still unable to debug after gdb.exe was found...

Edit2: Problem fixed by Qt. Upgraded to QtCreator 4.0.3. It piskcs up gdb correctly and I could debug my application!

like image 764
jpo38 Avatar asked Mar 23 '16 15:03

jpo38


1 Answers

In NDK 11 gdb was moved to $NDK_DIR/prebuilt/$HOST/bin/gdb.

QtCreator was updated for NDK 11. E.g. you can try QtCreator 4.0 beta

like image 152
Anton Kudryavtsev Avatar answered Oct 23 '22 19:10

Anton Kudryavtsev