I has done this job by editing Android.mk.
moving 'LOCAL_CFLAGS := -g #debug' line to below of 'LOCAL_MODULE    :=
libxxx'

here is my Android.mk

> LOCAL_PATH := $(call my-dir)
>
> include $(CLEAR_VARS)
>
> LOCAL_MODULE    := libunse
>
> LOCAL_CFLAGS := -g #debug
> LOCAL_LDFLAGS := -Wl,-Map,xxx.map #create map file
>
> LOCAL_SRC_FILES := \
>     android_helper.c \
>     str_lib.c \
>     io_lib.c \
>     xxx.c \
>     util.c
> LOCAL_LDLIBS := -llog #logcat
>
> include $(BUILD_SHARED_LIBRARY)
>


On Mon, Feb 7, 2011 at 1:39 PM, Dewr <[email protected]> wrote:

> I havn't tried ndk-gdb on other OSs. but I had tried on WindowsXP. (using
> ndk-gdb r5b)
> and just seeing same message 'no symbol table is loaded!' when I type 'b
> io_lib.c:227'.
>
> I have tried ' set solib-search-path /cygdrive/c/.../obj/local/armeabi ',
> ' set solib-search-path "/cygdrive/c/.../obj/local/armeabi" ',
> ' set solib-search-path '/cygdrive/c/.../obj/local/armeabi' '
> in gdb. :q
>
> has anyone successed to put breakpoints and breaked by the points on
> Windows XP?
>
> # ndk-gdb
>> GNU gdb 6.6
>> Copyright (C) 2006 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are
>> welcome to change it and/or distribute copies of it under certain
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for
>> details.
>> This GDB was configured as "--host=i586-mingw32msvc
>> --target=arm-elf-linux".
>> (no debugging symbols found)
>> Error while mapping shared library sections:
>> /system/bin/linker: No such file or directory.
>> Error while mapping shared library sections:
>> libstdc++.so: No such file or directory.
>> Error while mapping shared library sections:
>> libm.so: No such file or directory.
>> Error while mapping shared library sections:
>> liblog.so: No such file or directory.
>> Error while mapping shared library sections:
>> libcutils.so: No such file or directory.
>> Error while mapping shared library sections:
>> libz.so: No such file or directory.
>> Error while mapping shared library sections:
>> libutils.so: No such file or directory.
>> Error while mapping shared library sections:
>> libbinder.so: No such file or directory.
>> Error while mapping shared library sections:
>> libexpat.so: No such file or directory.
>> Error while mapping shared library sections:
>> libcrypto.so: No such file or directory.
>> Error while mapping shared library sections:
>> libssl.so: No such file or directory.
>> Error while mapping shared library sections:
>> libicudata.so: No such file or directory.
>> Error while mapping shared library sections:
>> libicuuc.so: No such file or directory.
>> Error while mapping shared library sections:
>> libicui18n.so: No such file or directory.
>> Error while mapping shared library sections:
>> libsqlite.so: No such file or directory.
>> Error while mapping shared library sections:
>> libnativehelper.so: No such file or directory.
>> Error while mapping shared library sections:
>> libnetutils.so: No such file or directory.
>> Error while mapping shared library sections:
>> libEGL.so: No such file or directory.
>> Error while mapping shared library sections:
>> libwpa_client.so: No such file or directory.
>> Error while mapping shared library sections:
>> librpc.so: No such file or directory.
>> Error while mapping shared library sections:
>> libgps.so: No such file or directory.
>> Error while mapping shared library sections:
>> libhardware_legacy.so: No such file or directory.
>> Error while mapping shared library sections:
>> libpixelflinger.so: No such file or directory.
>> Error while mapping shared library sections:
>> libhardware.so: No such file or directory.
>> Error while mapping shared library sections:
>> libui.so: No such file or directory.
>> Error while mapping shared library sections:
>> libsurfaceflinger_client.so: No such file or directory.
>> Error while mapping shared library sections:
>> libcamera_client.so: No such file or directory.
>> Error while mapping shared library sections:
>> libemoji.so: No such file or directory.
>> Error while mapping shared library sections:
>> libjpeg.so: No such file or directory.
>> Error while mapping shared library sections:
>> libskia.so: No such file or directory.
>> Error while mapping shared library sections:
>> libGLESv1_CM.so: No such file or directory.
>> Error while mapping shared library sections:
>> libskiagl.so: No such file or directory.
>> Error while mapping shared library sections:
>> libdvm.so: No such file or directory.
>> Error while mapping shared library sections:
>> libGLESv2.so: No such file or directory.
>> Error while mapping shared library sections:
>> libETC1.so: No such file or directory.
>> Error while mapping shared library sections:
>> libsonivox.so: No such file or directory.
>> Error while mapping shared library sections:
>> libmedia.so: No such file or directory.
>> Error while mapping shared library sections:
>> libbluedroid.so: No such file or directory.
>> Error while mapping shared library sections:
>> libdbus.so: No such file or directory.
>> Error while mapping shared library sections:
>> libandroid_runtime.so: No such file or directory.
>> Error while mapping shared library sections:
>> libexif.so: No such file or directory.
>> Error while mapping shared library sections:
>> libdrm1.so: No such file or directory.
>> Error while mapping shared library sections:
>> libvorbisidec.so: No such file or directory.
>> Error while mapping shared library sections:
>> libopencore_common.so: No such file or directory.
>> Error while mapping shared library sections:
>> libopencore_net_support.so: No such file or directory.
>> Error while mapping shared library sections:
>> libopencore_player.so: No such file or directory.
>> Error while mapping shared library sections:
>> libomx_sharedlibrary.so: No such file or directory.
>> Error while mapping shared library sections:
>> libomx_amrenc_sharedlibrary.so: No such file or directory.
>> Error while mapping shared library sections:
>> libstagefright_amrnb_common.so: No such file or directory.
>> Error while mapping shared library sections:
>> libstagefright_avc_common.so: No such file or directory.
>> Error while mapping shared library sections:
>> libstagefright_color_conversion.so: No such file or directory.
>> Error while mapping shared library sections:
>> libstagefright.so: No such file or directory.
>> Error while mapping shared library sections:
>> libmedia_jni.so: No such file or directory.
>> Error while mapping shared library sections:
>> libstlport.so: No such file or directory.
>> Error while mapping shared library sections:
>> libwebcore.so: No such file or directory.
>> Error while mapping shared library sections:
>> gralloc.qsd8k.so: No such file or directory.
>> (no debugging symbols found)
>> warning: Unable to find dynamic linker breakpoint function.
>> GDB will be unable to debug shared library initializers
>> and track explicitly loaded dynamic code.
>> 0xafd0eb68 in __futex_syscall3 ()
>>    from
>> C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/ar
>> meabi/libc.so
>> (gdb) bt
>> #0  0xafd0eb68 in __futex_syscall3 ()
>>    from
>> C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/ar
>> meabi/libc.so
>> #1  0xafd10634 in __pthread_cond_timedwait_relative ()
>>    from
>> C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/ar
>> meabi/libc.so
>> #2  0xafd10708 in __pthread_cond_timedwait ()
>>    from
>> C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/ar
>> meabi/libc.so
>> #3  0xaca4742a in ?? ()
>> Cannot access memory at address 0xc
>> *(gdb) b io_lib.c:227
>> No symbol table is loaded.  Use the "file" command.*
>> (gdb) quit
>> The program is running.  Exit anyway? (y or n) y
>>
>> Administrator@GUNWOO/cygdrive/c/DEWR/Product/Software-Engineering/Eclipse-Works
>> pace/Unse
>> #
>>
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to