Navigation
API > API/Runtime > API/Runtime/Core
| Name | FUnixCrashContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformCrashContext.h |
| Include Path | #include "Unix/UnixPlatformCrashContext.h" |
Syntax
struct FUnixCrashContext : public FGenericCrashContext
Inheritance Hierarchy
- FGenericCrashContext → FUnixCrashContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUnixCrashContext
(
ECrashContextType InType, |
Unix/UnixPlatformCrashContext.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FUnixCrashContext() |
Unix/UnixPlatformCrashContext.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FakeSiginfoForDiagnostics | __thread siginfo_t | Fake siginfo used when handling ensure(), etc | Unix/UnixPlatformCrashContext.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BacktraceSymbols | char ** | Symbols received via backtrace_symbols(), if any (note that we will need to clean it up) | Unix/UnixPlatformCrashContext.h | |
| bCapturedBacktrace | bool | Whether backtrace was already captured | Unix/UnixPlatformCrashContext.h | |
| Context | ucontext_t * | Thread context | Unix/UnixPlatformCrashContext.h | |
| ErrorFrame | void * | The PC of where the error being reported occurred. | Unix/UnixPlatformCrashContext.h | |
| FirstCrashHandlerFrame | uint64 * | The PC of the first function used when handling a crash. | Unix/UnixPlatformCrashContext.h | |
| Info | siginfo_t * | Additional signal info | Unix/UnixPlatformCrashContext.h | |
| MinidumpCallstackInfo | char | Memory reserved for minidump-style callstack info | Unix/UnixPlatformCrashContext.h | |
| Signal | int32 | Signal number | Unix/UnixPlatformCrashContext.h | |
| SignalDescription | TCHAR | Memory reserved for "exception" (signal) info | Unix/UnixPlatformCrashContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CaptureStackTrace
(
void* ErrorProgramCounter |
Populates crash context stack trace and a few related fields for the calling thread | Unix/UnixPlatformCrashContext.h | |
void CaptureThreadStackTrace
(
uint32_t ThreadId |
Populates crash context stack trace and a few related fields for another thread | Unix/UnixPlatformCrashContext.h | |
void GenerateCrashInfoAndLaunchReporter() |
Generates a new crash report containing information needed for the crash reporter and launches it; may not return. | Unix/UnixPlatformCrashContext.h | |
void InitFromDiagnostics
(
const void* InAddress |
Inits the crash context from some diagnostic handler (ensure, stall, etc...) | Unix/UnixPlatformCrashContext.h | |
void InitFromSignal
(
int32 InSignal, |
Inits the crash context from data provided by a signal handler. | Unix/UnixPlatformCrashContext.h | |
void SetFirstCrashHandlerFrame
(
uint64* ProgramCounter |
Sets the FirstCrashHandlerFrame only if it has not been set before | Unix/UnixPlatformCrashContext.h | |
void SetType
(
ECrashContextType InType |
Sets whether this crash represents a non-crash event like an ensure | Unix/UnixPlatformCrashContext.h |
Overridden from FGenericCrashContext
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddPlatformSpecificProperties() |
Serializes platform specific properties to the buffer. | Unix/UnixPlatformCrashContext.h | |
virtual void GetPortableCallStack
(
const uint64* StackFrames, |
Gets the portable callstack to a specified stack and puts it into OutCallStack | Unix/UnixPlatformCrashContext.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GenerateReport
(
const FString& DiagnosticsPath |
Dumps all the data from crash context to the "minidump" report. | Unix/UnixPlatformCrashContext.h |