-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
32 lines (25 loc) · 680 Bytes
/
debug.h
File metadata and controls
32 lines (25 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/******************************************************************************
* Copyright (C) 2014-2015
* file: libdebug.h
* author: gozfree <gozfree@163.com>
* created: 2016-06-17 16:53:13
* updated: 2016-06-17 16:53:13
*****************************************************************************/
#ifndef LIBDEBUG_H
#define LIBDEBUG_H
#ifdef __cplusplus
extern "C" {
#endif
/*! Initialize backtrace handler, once "Segmentation fault" occured,
* the backtrace info will be show like "(gdb) bt"
*
*/
int debug_backtrace_init();
/*! backtrace dump, can be called everywhere in your code
*
*/
void debug_backtrace_dump();
#ifdef __cplusplus
}
#endif
#endif