mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
We're now able to rewind the instruction pointer in x86 backtraces. This helps ensure addr2line cannot print information about unrelated adjacent code. I've restored -fno-schedule-insns2 in most cases because it really does cause unpredictable breakage for backtraces.
11 lines
448 B
C
11 lines
448 B
C
#ifndef COSMOPOLITAN_LIBC_INTRIN_DESCRIBEBACKTRACE_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_INTRIN_DESCRIBEBACKTRACE_INTERNAL_H_
|
|
#include "libc/mem/alloca.h"
|
|
#include "libc/nexgen32e/stackframe.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
const char *DescribeBacktrace(char[160], const struct StackFrame *) libcesque;
|
|
#define DescribeBacktrace(x) DescribeBacktrace(alloca(160), x)
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_INTRIN_DESCRIBEBACKTRACE_INTERNAL_H_ */
|