3

I have C code in my Android app and would like to catch crashes and print them to a log file. I saw this post, and tried, but I can't find the execinfo lib. I'm working with Ubuntu 11.10 and using NDK for compiling to Android. Does anyone know how to find execinfo lib for NDK/ARM, or have another simple solution?

Community
  • 1
  • 1

1 Answers1

4

On Android, you have some sample specials utils code allowing to see and/or dump the stack.

Implementation is in base/libs/utils/CallStack.cpp. You'll a find a tiny sample code here.

Coren
  • 5,517
  • 1
  • 21
  • 34
  • I don't get it, how to I obtain the lib with CallStack? Where's the H file? How do I use it? The tiny sample doesn't really say enough... Can you elaborate? –  Feb 07 '12 at 11:20