NAME

Exception::Backtrace::Stackframe - Stack Frame Information

DESCRIPTION

The generic class for representing Perl and C/C++ stack frame. For perl-specific frame information access see Exception::Backtrace::PerlFrame.

The object of the class cannot be constructed directly. All properties are read only.

METHODS

$frame->to_string()

Stringifies frame. For perl frame it mimics Carp output, for C/C++ frame it mimics gdb output.

$frame->address()

An IP (instruction ponter aka Program Counter) of the stack frame.

As it has sense only for C/C++ frame, for Perl frame it is zero.

$frame->offset()

The difference between frame address and the base shared object (.so) address.

As it has sense only for C/C++ frame, for Perl frame it is zero.

$frame->library()

For Perl frame it is the package name, for C/C++ frame it is the path of the loaded share object (.so)

$frame->name()

The name of the function of a stack frame. As for C/C++ it might be impossible to determine (i.e. as there are no debug info), it might be empty string.

$frame->file()

The source file of a stack frame. As for C/C++ it might be impossible to determine (i.e. as there are no debug info), it might be empty string.

$frame->line_no()

The line of the source file of a stack frame. As for C/C++ it might be impossible to determine (i.e. as there are no debug info), it might be empty string.

REFERENCE

Exception::Backtrace

Exception::Backtrace::PerlFrame