engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FApplePlatformCrashContext结构体 参考

Declaration for common crash context implementation for Apple platforms. 更多...

#include <ApplePlatformCrashContext.h>

+ 类 FApplePlatformCrashContext 继承关系图:

Public 成员函数

void InitFromSignal (int32 InSignal, siginfo_t *InInfo, void *InContext)
 Inits the crash context from data provided by a signal handler. 更多...
 
int32 ReportCrash (void) const
 Initialise context for reporting crash.
 
- Public 成员函数 继承自 FGenericCrashContext
virtual void AddPortableThreadCallStack (uint32 ThreadId, const TCHAR *ThreadName, const uint64 *StackFrames, int32 NumStackFrames)
 Adds a portable callstack for a thread
 
void CapturePortableCallStack (int32 NumStackFramesToIgnore, void *Context)
 Generate raw call stack for crash report (image base + offset)
 
virtual void CopyPlatformSpecificFiles (const TCHAR *OutputDirectory, void *Context)
 Allows platform implementations to copy files to report directory.
 
 FGenericCrashContext (ECrashContextType InType, const TCHAR *ErrorMessage)
 Default constructor. 更多...
 
const FString & GetBuffer () const
 
virtual void GetPortableCallStack (const uint64 *StackFrames, int32 NumStackFrames, TArray< FCrashStackFrame > &OutCallStack) const
 Gets the portable callstack to a specified stack and puts it into OutCallStack
 
ECrashContextType GetType () const
 
void GetUniqueCrashName (TCHAR *GUIDBuffer, int32 BufferSize) const
 
const bool IsFullCrashDump () const
 
virtual void SerializeAsXML (const TCHAR *Filename) const
 Serializes crash's informations to the specified filename. 更多...
 
void SerializeContentToBuffer () const
 Serializes all data to the buffer.
 
void SetCrashedProcess (const FProcHandle &Process)
 Sets the process id to that has crashed. 更多...
 
void SetCrashedThreadId (uint32 InId)
 Stores crashing thread id.
 
void SetNumMinidumpFramesToIgnore (int32 InNumMinidumpFramesToIgnore)
 Sets the number of stack frames to ignore when symbolicating from a minidump
 
virtual void SetPortableCallStack (const uint64 *StackFrames, int32 NumStackFrames)
 Sets the portable callstack to a specified stack
 

静态 Public 成员函数

static void CreateExceptionInfoString (int32 Signal, siginfo_t *Info)
 Generates a string representation for the execption/signal Info.
 
static ANSICHAR * ItoANSI (uint64 Val, uint64 Base, uint32 Len=0)
 Async-safe ItoA
 
static TCHAR * ItoTCHAR (uint64 Val, uint64 Base, uint32 Len=0)
 Async-safe ItoT
 
static void WriteLine (int ReportFile, const ANSICHAR *Line=NULL)
 Write a line of UTF-8 to a file
 
static void WriteLine (int ReportFile, const TCHAR *Line)
 Writes UTF-16 line to a file
 
static void WriteUTF16String (int ReportFile, const TCHAR *UTFString4BytesChar)
 Serializes UTF string to UTF-16
 
static void WriteUTF16String (int ReportFile, const TCHAR *UTFString4BytesChar, uint32 NumChars)
 Serializes UTF string to UTF-16
 
- 静态 Public 成员函数 继承自 FGenericCrashContext
static void AddPlugin (const FString &PluginDesc)
 Adds a plugin descriptor string to the enabled plugins list in the crash context
 
static void AppendEscapedXMLString (FString &OutBuffer, const TCHAR *Text)
 Escapes and appends specified text to XML string
 
static void CleanupPlatformSpecificFiles ()
 Cleanup platform specific files - called on startup, implemented per platform
 
static void CopySharedCrashContext (FSharedCrashContext &Dst)
 Initializes a shared crash context from current state. 更多...
 
static bool CreateCrashReportDirectory (const TCHAR *CrashGUIDRoot, int32 CrashIndex, FString &OutCrashDirectoryAbsolute)
 Attempts to create the output report directory.
 
static void DumpLog (const FString &CrashFolderAbsolute)
 Flushes the logs. 更多...
 
static const TCHAR * GetCrashConfigFilePath ()
 Helper to get the crash report client config filepath saved by this instance and copied to each crash report folder.
 
static const TCHAR * GetCrashConfigFolder ()
 Helper to get the crash report client config folder used by GetCrashConfigFilePath().
 
static FString GetCrashGameName ()
 Get the Game Name of the crash
 
static const TCHAR * GetCrashTypeString (ECrashContextType Type)
 Helper to get the standard string for the crash type based on crash event bool values.
 
static TOptional< int32 > GetOutOfProcessCrashReporterExitCode ()
 Return the out-of-process crash reporter exit code if available. 更多...
 
static uint32 GetOutOfProcessCrashReporterProcessId ()
 
static FString GetTempSessionContextFilePath (uint64 ProcessID)
 Get the file path to the temporary session context file that we create for the given process.
 
static void Initialize ()
 Initializes crash context related platform specific data that can be impossible to obtain after a crash.
 
static void InitializeFromContext (const FSessionContext &Context, const TCHAR *EnabledPlugins, const TCHAR *EngineData, const TCHAR *GameData)
 Initialized crash context, using a crash context (e.g. 更多...
 
static bool IsInitalized ()
 
static bool IsOutOfProcessCrashReporter ()
 
static void PurgeOldCrashConfig ()
 Helper to clean out old files in the crash report client config folder.
 
static void ResetEngineData ()
 Clears the engine data dictionary
 
static void ResetGameData ()
 Clears the game data dictionary
 
static void SerializeSessionContext (FString &Buffer)
 Serializes session context to the given buffer. 更多...
 
static void SetCrashTrigger (ECrashTrigger Type)
 Sets the type of crash triggered. 更多...
 
static void SetDeploymentName (const FString &EpicApp)
 Set the current deployment name (ie. 更多...
 
static void SetEngineData (const FString &Key, const FString &Value)
 Updates (or adds if not already present) arbitrary engine data to the crash context (will remove the key if passed an empty string)
 
static void SetEngineExit (bool bIsRequestExit)
 Notify the crash context exit has been requested.
 
static void SetGameData (const FString &Key, const FString &Value)
 Updates (or adds if not already present) arbitrary game data to the crash context (will remove the key if passed an empty string)
 
static void SetMemoryStats (const FPlatformMemoryStats &MemoryStats)
 We can't gather memory stats in crash handling function, so we gather them just before raising exception and use in crash reporting.
 
static void SetOutOfProcessCrashReporterExitCode (int32 ExitCode)
 Set the out of process crash reporter exit code if known. 更多...
 
static void SetOutOfProcessCrashReporterPid (uint32 ProcessId)
 Set whether or not the out-of-process crash reporter is running. 更多...
 
static FString UnescapeXMLString (const FString &Text)
 Unescapes a specified XML string, naive implementation.
 

Public 属性

ucontext_t * Context
 Thread context
 
uint32 IgnoreDepth
 Number of stack frames to ignore as they are crash handling/stack walking
 
siginfo_t * Info
 Additional signal info
 
char MinidumpCallstackInfo [65536]
 Memory reserved for minidump-style callstack info
 
int32 Signal
 Signal number
 
char SignalDescription [128]
 Memory reserved for "exception" (signal) info
 

额外继承的成员函数

- Protected 成员函数 继承自 FGenericCrashContext
virtual const TCHAR * GetCallstackProperty () const
 Allow platform implementations to provide a callstack property. 更多...
 
virtual bool GetPlatformAllThreadContextsString (FString &OutStr) const
 @OutStr - a stream of Thread XML elements containing info (e.g. 更多...
 

详细描述

Declaration for common crash context implementation for Apple platforms.

成员函数说明

◆ InitFromSignal()

void FApplePlatformCrashContext::InitFromSignal ( int32  InSignal,
siginfo_t *  InInfo,
void *  InContext 
)

Inits the crash context from data provided by a signal handler.

参数
InSignalnumber (SIGSEGV, etc)
InInfoadditional info (e.g. address we tried to read, etc)
InContextthread context

该结构体的文档由以下文件生成: