Loading...
Searching...
No Matches
backtrace.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
31#ifndef BACKTRACE_SIZE
32# define BACKTRACE_SIZE (4U)
33#endif
34
39void backtrace_print(void);
40
46
51int backtrace_len(void);
52
53#ifdef __cplusplus
54}
55#endif
56
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