简体   繁体   中英

NDK Debugging - breakpoints don't hit in Android Studio

I'm trying to debug native c/c++ with android studio that execute the gdb debugger, but the breakpoints don't hit. The gdb displays me this message:

No symbol table is loaded.  Use the "file" command.

once I execute the "file" command :

(gdb) file
A program is being debugged already.
Are you sure you want to change the file? (y or n) [answered Y; input not from terminal]
No executable file now.
No symbol file now.

I have already tried to add -g flag to CFlags in build.gradle file but it's does not solve the problem.

I'm using:

  • Android Studio 1.3.2 stable
  • Gradle 2.5 with experimental plugin 0.2.0

Please help!

通过将android studio更新为1.4 beta 2并将调试器从gdb更改为lldb,解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM