gem5  v20.1.0.0
Macros | Functions
backtrace_glibc.cc File Reference
#include <execinfo.h>
#include <unistd.h>
#include "base/atomicio.hh"
#include "sim/backtrace.hh"

Go to the source code of this file.

Macros

#define SAFE_MSG(m)
 

Functions

void print_backtrace ()
 Print a gem5 post-mortem report. More...
 

Macro Definition Documentation

◆ SAFE_MSG

#define SAFE_MSG (   m)
Value:
do { \
static const char msg[] = m; \
atomic_write(STDERR_FILENO, msg, sizeof(msg) - 1); \
} while (0)

Definition at line 44 of file backtrace_glibc.cc.

Function Documentation

◆ print_backtrace()

void print_backtrace ( )

Print a gem5 post-mortem report.

Note
This is usually called from a signal handler. Implementations must support this use case.

Definition at line 51 of file backtrace_glibc.cc.

References STATIC_ERR.

ArmISA::m
Bitfield< 0 > m
Definition: miscregs_types.hh:389

Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17