Format 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> int bt_sprnf_addrs( bt_memmap_t *memmap, bt_addr_t *addrs, int addrslen, char *fmt, char *out, size_t outlen, char *separator );
libbacktrace
Use the -l backtrace option to qcc to link against this library.
The bt_sprnf_addrs() function formats the addresses in the addrs using fmt as the format for each entry, and storing the formatted addresses in the out buffer. If separator isn't NULL, the function writes it in out between each formatted address.
The memmap is optional, but if specified, it allows access to more formatting styles. The format for each entry (fmt), is analogous to printf() formats:
For the %l, %o, %f, and %I formats, memmap must not be NULL. |
The number of addresses from addr that could be completely formatted and written in out.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
bt_get_backtrace(), bt_init_accessor(), bt_load_memmap(), bt_release_accessor(), bt_set_flags(), bt_sprn_memmap(), bt_translate_addrs(), bt_unload_memmap()
Backtraces in the QNX Neutrino technotes
pidin backtrace in the Utilities Reference