bt_sprn_memmap()

Updated: October 28, 2024

Format the memory map information for a backtrace

Note: The backtrace library is an unsupported feature, due to its fragility. For more information, see Backtraces in the QNX Neutrino technotes.

Synopsis:

#include <backtrace.h>

int bt_sprn_memmap( bt_memmap_t *memmap,
                    char *out,
                    size_t outlen );

Arguments:

memmap
A pointer to memory-map information for the process you've collected backtracing for. Use bt_load_memmap() to initialize this variable.
out
A string where the function can store the formatted memory map.
outlen
The size of out.

Library:

libbacktrace

Use the -l backtrace option to qcc to link against this library.

Description:

The bt_sprn_memmap() function formats the memory map information into out.

Note: The out string might not be null-terminated.

Returns:

0
Success.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes
  翻译: