blob: e2d1652765176cea587991fa5e0895b82427b25f (
plain) (
blame)
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
|
/* See LICENSE file for copyright and license details. */
#include <alloca.h>
#include <errno.h>
#include <inttypes.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
struct liberror_error {
struct liberror_backtrace *backtrace;
};
struct liberror_backtrace {
size_t refcount;
size_t n;
uintptr_t rips[];
};
void liberror_print_backtrace(struct liberror_error *, FILE *, const char *);
int liberror_save_backtrace_(struct liberror_error *);
|