gem5  v20.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
Bitfield< 0 > m

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.


Generated on Thu May 28 2020 16:21:39 for gem5 by doxygen 1.8.13