Skip to content

lazy-luo/android-ndk-backtrace-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.3%
  • Makefile 5.7%