Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformStackWalk
Warnings The code assumes that HumanReadableString is large enough to contain the information. Please, do not override this method. Can't be modified or altered without notice.
Description
- Converts the passed in program counter address to a human readable string and appends it to the passed in one.
-
The code assumes that HumanReadableString is large enough to contain the information.
-
Please, do not override this method. Can't be modified or altered without notice. This method is the same for all platforms to simplify parsing by the crash processor.
Example formatted line:
UE4Editor_Core!FOutputDeviceWindowsError::Serialize() (0xddf1bae5) + 620 bytes [\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:110] ModuleName!FunctionName (ProgramCounter) + offset bytes [StrippedFilepath:LineNumber]
| Name | ProgramCounterToHumanReadableString |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformStackWalk.h |
| Include Path | #include "GenericPlatform/GenericPlatformStackWalk.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformStackWalk.cpp |
static bool ProgramCounterToHumanReadableString
(
int32 CurrentCallDepth,
uint64 ProgramCounter,
ANSICHAR * HumanReadableString,
SIZE_T HumanReadableStringSize,
FGenericCrashContext * Context
)
true if the symbol was found, otherwise false
Parameters
| Name | Remarks |
|---|---|
| CurrentCallDepth | Depth of the call, if known (-1 if not - note that some platforms may not return meaningful information in the latter case) |
| ProgramCounter | Address to look symbol information up for |
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| Context | Pointer to crash context, if any |