alexeikh / android-ndk-backtrace-test

Backtrace Testing App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backtrace Testing App

Native command-line app for Android. Android NDK is required for buiding.

Tests backtracing of native C code from a signal handler.

The following methods of backtracing are implmented:

  • Using Android NDK’s built-in libunwind with registers from ucontext_t (ARM32 only).

  • Using _Unwind_Backtrace() function with registers from ucontext_t (ARM32 only).

  • Using _Unwind_Backtrace() function with frame skipping (all architectures).

Implementation is in pure C, but some already-compiled C++ libraries from Android NDK are used, such as libunwind and libc++abi.

Build as:

make build

Run as:

make run

About

Backtrace Testing App


Languages

Language:C 94.3%Language:Makefile 5.7%