gpt4 book ai didi

c++ - NDK 调试 - 断点不会在 Android Studio 中命中

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:49:06 30 4
gpt4 key购买 nike

我正在尝试使用执行 gdb 调试器的 android studio 调试 native c/c++,但断点未命中。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.

我已经尝试将 -g 标志添加到 build.gradle 文件中的 CFlags,但这并没有解决问题。

我正在使用:

  • Android Studio 1.3.2 稳定
  • 带有实验性插件 0.2.0 的 Gradle 2.5

请帮忙!

最佳答案

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

关于c++ - NDK 调试 - 断点不会在 Android Studio 中命中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32424576/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com