system/stacktrace.cpp: add backtrace function for debugging, define HAVE_BACKTRACE to enable code

Origin commit data
------------------
Branch: ni/coolstream
Commit: 09e1399a11
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-03-06 (Fri, 06 Mar 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-03-06 13:20:59 +03:00
parent 3af2ac5a97
commit 91c630e1fc
4 changed files with 189 additions and 1 deletions

7
src/system/stacktrace.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef _STACKTRACE_H_
#define _STACKTRACE_H_
void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63);
void install_crash_handler();
#endif