6

我已经阅读了很多文章,但不知道如何解决这个问题:

$ /cygdrive/e/adt-bundle-windows-x86/android-ndk-r8d/ndk-build

Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver    
Gdbsetup       : libs/armeabi/gdb.setup    
Cygwin         : Generating dependency file converter script    
Compile++ thumb  : Andest1 <= Andest1.cpp    
StaticLibrary  : libstdc++.a    
SharedLibrary  : libAndest1.so    
Install        : libAndest1.so => libs/armeabi/libAndest1.so


$ /cygdrive/e/adt-bundle-windows-x86/android-ndk-r8d/ndk-gdb --project=e:/workspace/Andrd1 --port=5000 --start --force --verbose      

0xafd0c52c in epoll_wait () from E:\workspace\Andrd1/./obj/local/armeabi/libc.so    
warning: .dynamic section for "E:\workspace\Andrd1/./obj/local/armeabi/libAndrd1.so" is not at the expected address (wrong library or version mismatch?)
warning: Could not load shared library symbols for 67 libraries, e.g. libstdc++.so.
4

1 回答 1

1

当我在 Eclipse 上调试本机代码时,我也遇到了这个问题。最后我发现我们应该忽略它。

重要提示:GDB 提示符之前会出现一长串错误消息,其中 gdb 抱怨它找不到各种系统库(例如 libc.so、libstdc++.so、liblog.so、libcutils.so 等...)

       This is normal, because there are no symbol/debug versions of
       these libraries corresponding to your target device on your
       development machine. You can safely ignore these messages.

阅读 ANDROID-NDK-DOCUMENT 你会发现它。

希望我有所帮助。

编辑:

  1. 该报价可以在 android-ndk-r8d/documentation.html 的 NDK-GDB 部分找到
于 2013-05-31T09:02:05.283 回答