OpenTTD Source: src/os/unix/crashlog_unix.cpp File Reference

OpenTTD Source 12.2

Data Structures | Functions | Variables
crashlog_unix.cpp File Reference
`#include "../../stdafx.h"`
`#include "../../crashlog.h"`
`#include "../../string_func.h"`
`#include "../../gamelog.h"`
`#include "../../saveload/saveload.h"`
`#include <errno.h>`
`#include <signal.h>`
`#include <sys/utsname.h>`
`#include "../../safeguards.h"`

Go to the source code of this file.

## Data Structures
class | CrashLogUnix
| Unix implementation for the crash logger. More...

## Functions
static void CDECL | HandleCrash (int signum)
| Entry point for the crash handler. More...

## Variables
static const int | _signals_to_handle [] = { SIGSEGV, SIGABRT, SIGFPE, SIGBUS, SIGILL }
| The signals we want our crash handler to handle.

## Detailed Description

Unix crash log handler

Definition in file crashlog_unix.cpp.

## Function Documentation

## ◆ HandleCrash()

static void CDECL HandleCrash | ( | int | signum | ) |
| static

Entry point for the crash handler.

Note
  Not static so it shows up in the backtrace.

Parameters

  signum | the signal that caused us to crash.

Definition at line 151 of file crashlog_unix.cpp.

References _signals_to_handle, CrashLog::AfterCrashLogCleanup(), endof, GamelogTestEmergency(), CrashLog::MakeCrashLog(), and SaveloadCrashWithMissingNewGRFs().