Kernel code print backtrace
1 | //must set following options in kernel config |
Android C code print backtrace
1 | //First add `LOCAL_SHARED_LIBRARIES += libcorkscrew` in Android.mk |
GNU C code print BackTrace
1 |
|
Android Java print backtrace
1 | Exception e = new Exception("This is a backtrace"); |