Create a StackTraceFrame object with the specified attribute values.

Synopsis

Declared in <balst_stacktraceframe.h>

StackTraceFrame(
    void const* address,
    std::string_view const& libraryFileName,
    int lineNumber,
    std::string_view const& mangledSymbolName,
    std::size_t offsetFromSymbol,
    std::string_view const& sourceFileName,
    std::string_view const& symbolName,
    bslma::Allocator* basicAllocator = 0);

Description

Create a StackTraceFrame object having the specified address, libraryFileName, lineNumber, mangledSymbolName, offsetFromSymbol, sourceFileName, and symbolName attribute values. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless ‐1 <= lineNumber.

Parameters

Name

Description

address

return address of the function call

libraryFileName

executable or shared‐library file name

lineNumber

source line number, or ‐1 if unknown

mangledSymbolName

mangled name of the parent function

offsetFromSymbol

offset from the start of symbolName

sourceFileName

name of the source file

symbolName

unmangled name of the parent function

basicAllocator

memory allocator; null uses the default

Created with MrDocs