NDK调试 - 在Android Studio中没有出现断点

时间:2015-09-06 14:25:09

标签: c++ android-ndk gdb gdbserver

我正在尝试使用android studio调试本机c / c ++,执行gdb调试器,但断点没有命中。 gdb向我显示以下消息:

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

执行“file”命令后:

(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.

我已经尝试在build.gradle文件中向CFlags添加-g标志,但它无法解决问题。

我正在使用:

  • Android Studio 1.3.2稳定
  • Gradle 2.5,实验插件0.2.0

请帮忙!

1 个答案:

答案 0 :(得分:0)

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

相关问题