Get address sanitizer mostly working
This commit is contained in:
15
libc/log/backtrace.h
Normal file
15
libc/log/backtrace.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef COSMOPOLITAN_LIBC_LOG_BACKTRACE_H_
|
||||
#define COSMOPOLITAN_LIBC_LOG_BACKTRACE_H_
|
||||
#include "libc/nexgen32e/stackframe.h"
|
||||
#include "libc/runtime/symbols.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
void showbacktrace(FILE *, const struct StackFrame *);
|
||||
int PrintBacktraceUsingSymbols(FILE *, const struct StackFrame *,
|
||||
struct SymbolTable *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_LOG_BACKTRACE_H_ */
|
||||
Reference in New Issue
Block a user