我有一个带有 JNI(和 SWIG)的 Android 应用程序。该应用程序运行良好,我可以调试 java 和本机代码,但我不断收到来自 gdb 的警告,我不知道它们来自哪里,我将代码剥离为一个非常简单的函数。我遵循了有关如何做到这一点的各种教程,我在 Mac OS X 10.6.8 和 Linux mint 12 上进行了尝试,我正在使用 eclipse (ADT)。
这就是我得到的警告:
warning: Could not load shared library symbols for 63 libraries, e.g. /system/bin/linker.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
warning: Unable to find dynamic linker breakpoint function.
GDB will retry eventurally. Meanwhile, it is likely
that GDB is unable to debug shared library initializers
or resolve pending breakpoints after dlopen().
[New Thread 17108]
[New Thread 17110]
[New Thread 17112]
[New Thread 17113]
[New Thread 17114]
[New Thread 17115]
[New Thread 17116]
[New Thread 17117]
[New Thread 17118]
[Switching to Thread 17106]
我不知道 gdb 正在寻找哪些库,知道吗?
这是信息共享库的输出
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x40003220 0x4000b940 Yes (*) /home/andrea/workspace/pjsip_app/obj/local/armeabi/linker
0x4002c860 0x4005c07c Yes (*) /home/andrea/workspace/pjsip_app/obj/local/armeabi/libc.so
No libstdc++.so
No libm.so
No liblog.so
No libcutils.so
No libgccdemangle.so
No libcorkscrew.so
No libz.so
No libutils.so
No libbinder.so
No libemoji.so
No libjpeg.so
No libexpat.so
No libskia.so
No libandroidfw.so
No libstlport.so
No libnativehelper.so
No libnetutils.so
No libhardware.so
No libsync.so
No libui.so
No libGLES_trace.so
No libEGL.so
No libGLESv2.so
No libgui.so
No libcamera_client.so
No libgabi++.so
No libicuuc.so
No libicui18n.so
No libsqlite.so
No libdvm.so
No libGLESv1_CM.so
No libETC1.so
No libwpa_client.so
No libhardware_legacy.so
No libsonivox.so
No libcrypto.so
No libssl.so
No libstagefright_foundation.so
No libspeexresampler.so
No libaudioutils.so
No libmedia_native.so
No libmedia.so
No libusbhost.so
No libharfbuzz.so
No libhwui.so
No libandroid_runtime.so
No libjavacore.so
No libdrmframework.so
No libdrmframework_jni.so
No libstagefright_omx.so
No libstagefright_yuv.so
No libvorbisidec.so
No libstagefright_enc_common.so
No libstagefright_avc_common.so
No libstagefright.so
No libmtp.so
No libexif.so
No libstagefright_amrnb_common.so
No libmedia_jni.so
No libbcinfo.so
No libbcc.so
No libRS.so
No librs_jni.so
No libandroid.so
No libchromium_net.so
No libwebcore.so
No libwilhelm.so
No libOpenSLES.so
0x47ceb0f8 0x47e7fd98 Yes /home/andrea/workspace/pjsip_app/obj/local/armeabi/libconnection.so
(*): Shared library is missing debugging information.