skia2/tools/CrashHandler.h
mtklein 30e6e2af14 Add basic stacktrace handler using libunwind.
This means we will all have to apt-get install libunwind8-dev on Linux.  Mac comes with everything we need already.

BUG=skia:
R=reed@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/343583005
2014-06-18 11:44:18 -07:00

10 lines
371 B
C

#ifndef CrashHandler_DEFINED
#define CrashHandler_DEFINED
// If possible (and not already done) register a handler for a stack trace when we crash.
// Currently this works on Linux and Mac, hopefully Windows soon.
// On Linux, you will get much better results than we can deliver by running "catchsegv <program>".
void SetupCrashHandler();
#endif//CrashHandler_DEFINED