FGenericPlatformStackWalk::ProgramCounterToHumanReadableString

Converts the passed in program counter address to a human readable string and appends it to the passed in one.

Windows
MacOS
Linux

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.

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformStackWalk.h

Include

#include "GenericPlatform/GenericPlatformStackWalk.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformStackWalk.cpp

Syntax

static bool ProgramCounterToHumanReadableString
(
    int32 CurrentCallDepth,
    uint64 ProgramCounter,
    ANSICHAR * HumanReadableString,
    SIZE_T HumanReadableStringSize,
    FGenericCrashContext * Context
)

Remarks

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!FOutputDeviceWindowsErrorSerialize() (0xddf1bae5) + 620 bytes [.cpp:110] ModuleName!FunctionName (ProgramCounter) + offset bytes [StrippedFilepath:LineNumber]

Returns

true if the symbol was found, otherwise false

Parameters

Parameter

Description

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss