nn::dbg::CTR::ExceptionScreen::PutBackTraceString Member Function

Syntax

#include <nn/dbg.h>

static s32 PutBackTraceString(
     char * pOut,
     size_t size,
     uptr stackPtr,
     bit32 lr
);

Parameters

Name Description
out pOut The string buffer to output to.
in size The size of the string buffer.
in stackPtr Stack pointer value.
in lr Link register value.

Return Values

The number of characters written

Description

Generates a back-trace for the current thread.

Based on the specified information, a set of back-trace information for the current thread is generated as a string and written to the specified buffer.

This function provides an easy way of parsing stack traces. Note that addresses that are not function calls might be included in the output.

This function does not need to be called when using ExceptionScreen. It is provided so that the processing implemented internally in ExceptionScreen can be used in other places.

Revision History

2012/04/20
Initial version.

CONFIDENTIAL