Translate the addresses from a backtrace
The backtrace library is an unsupported feature, due to its fragility. For more information, see Backtraces in the QNX Neutrino technotes. |
#include <backtrace.h> void bt_translate_addrs( bt_memmap_t *memmap, bt_addr_t *addrs, int addrslen, bt_addr_t *reladdrs, bt_addr_t *offsets, int *index, char **filenames );
The file names aren't copied from the memory map, so they're valid only until you unload the memory map. |
libbacktrace
Use the -l backtrace option to qcc to link against this library.
The bt_translate_addrs() function translates all process addresses in addrs. You can pass a NULL pointer for any of the result arrays that you don't need.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
bt_get_backtrace(), bt_init_accessor(), bt_load_memmap(), bt_release_accessor(), bt_set_flags(), bt_sprn_memmap(), bt_sprnf_addrs(), bt_unload_memmap()
Backtraces in the QNX Neutrino technotes
pidin backtrace in the Utilities Reference