我曾尝试在 Android 上调试原生 c,
但得到以下错误:
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin --target=arm-linux-android".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Warning: /Users/eladb/MyWorkspace/Client/src/android/java/src/pcf: No such file or directory.
Remote debugging from host 225.89.3.0
warning: while parsing target library list (at line 2): No segment defined for ..
警告:/Users/eladb/MyWorkspace/Client/src/src/pcf:没有这样的文件或目录。从 /Users/eladb/MyWorkspace/Client/src/android/java/obj/local/armeabi/app_process 读取符号...完成。
警告:在 /Users/eladb/MyWorkspace/Client/src/android/java/obj/local/armeabi/app_process 中找不到调试符号。要么编译二进制文件而没有调试信息,要么删除了调试信息(例如,使用strip 或strip -g)。调试器功能将非常有限。
我怎样才能解决这个问题?