2011年7月14日 星期四

Google發布Android NDK, Revision 6

Google近日已發布Android NDK, Revision 6版本,該版本主要增加了X86系統支援,另外還有ndk-stack工具,該工具可以在logcat看到除錯訊息(圖1)改善了先前版本只能看到address訊息(圖2),詳細及使用方式在docs/NDK-STACK.html.
圖1:

圖2:


Usage:
------

To do this, you will first need a directory containing symbolic versions of your
application's shared libraries. If you use the NDK build system (i.e. ndk-build),
then these are always located under $PROJECT_PATH/obj/local/, where
stands for your device's ABI (i.e. 'armeabi' by default).

You can feed the logcat text either as direct input to the program, e.g.:

adb logcat | $NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi

Or you can use the -dump option to specify the logcat as an input file, e.g.:

adb logcat > /tmp/foo.txt
$NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump foo.txt

參考:
http://developer.android.com/sdk/ndk/index.html

沒有留言:

張貼留言