Category Archives: Debugging Native Libary

Tips to debug native libary

using gdb with android emulator.

One of the biggest challenge ,I face while working on Browser in Android Platform is ‘GDB’. Many time I have to check the stack strace of the call to native function. Here is one method which make your debugging native … Continue reading

Posted in android, Debugging Native Libary | Leave a comment

Another ways to put logs in native

The is one more simple way to put logs in native library of android. You have to following the methon as explained below. 1) First of all check weather you your lib is linking with libutils and libcutils if not just … Continue reading

Posted in Debugging Native Libary | Tagged , , | Leave a comment

Putting Log in Native Code

Hi All, This post is to put logs in the Native code  which will show in DDMS. Following is the detail for log function for native code. Lib Name:- liblog.so HeaderFile:-    “android/log.h” Function:-  int   __android_log_write(int prio, const char … Continue reading

Posted in Debugging Native Libary | Leave a comment

Android ndk-stack tool

‘ndk-stack’ is a good and simple  tool that allows you to analize stack traces as they appear in the output of ‘adb logcat’ and replace any address inside a stripped shared library with the corresponding <file name>:<line number>. In a … Continue reading

Posted in Debugging Native Libary | Leave a comment