To figure out the function that your native library crashed within, use arm-eabi-addr2line which comes with the Android NDK.
How to use:
1. PATH_TO_ARM_EABI_ADDR2LINE/arm-eabi-addr2line -C -f -e libXXX.so
2. type in the address to look up (the address after pc in exception logs)
or in one command
PATH_TO_ARM_EABI_ADDR2LINE/arm-eabi-addr2line -C -f -e libXXX.so AddressToLookUp
Reference:
. http://www.codexperiments.com/android/2010/08/tips-tricks-debugging-android-ndk-stack-traces/
Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts
Wednesday, June 8, 2011
Tuesday, December 14, 2010
Android NDK r5 modification for ffmpeg-android
Change asm to __asm__ at line 25 in android-ndk-r5/platforms/android-3/arch-arm/usr/include/asm/byteorder.h
Tuesday, November 30, 2010
Notes to link the shared library in native C code
Notes to link the shared library in native C code:
Ex. libtest.so
. Add LOCAL_SHARED_LIBRARY := libtest.so in Android.mk
. Add LOCAL_LDLIBS := -ldl in Android.mk
. Copy libtest.so to PROJECT_DIR/obj/local/armeabi
Subscribe to:
Posts (Atom)
Check clients which connect to Mac OS X Wi-Fi Internet Sharing
arp -i bridge100 -a bridge100 may be different on your Mac OSX
-
1. Create an account on TestFlight ( http://testflightapp.com ) and with "Developer" option checked. 2. Log in to the TestFlight ...
-
[轉載] [Javascript] Encrypt your private blog post from the article of Kaie's Blog 今日在PPT上的Blog版逛到版友weijr所提到的一篇好文章,可以用來針對Blog中某一段文字給予加密,變成...
-
arp -i bridge100 -a bridge100 may be different on your Mac OSX