gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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

#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: miscregs.hh:1577
ssize_t atomic_write(int fd, const void *s, size_t n)
Definition: atomicio.cc:66

Definition at line 46 of file backtrace_glibc.cc.

Function Documentation

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 53 of file backtrace_glibc.cc.

References X86ISA::size(), and STATIC_ERR.


Generated on Fri Jun 9 2017 13:03:59 for gem5 by doxygen 1.8.6