Loading...
Searching...
No Matches
backtrace.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
24#ifndef BACKTRACE_H
25#define BACKTRACE_H
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
34#ifndef BACKTRACE_SIZE
35#define BACKTRACE_SIZE (4U)
36#endif
37
42void backtrace_print(void);
43
49
54int backtrace_len(void);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* BACKTRACE_H */
void backtrace_print(void)
Print up to the last BACKTRACE_SIZE return addresses from call of this function.
void backtrace_print_symbols(void)
Print up to the last BACKTRACE_SIZE symbol_names from call of this function.
int backtrace_len(void)
get the number of stack frames that are printed by print or print_symbols