Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_translate_addrs.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_translate_addrs.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_translate_addrs.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_translate_addrs.html on line 8
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 );
- memmap
- A pointer to memory-map information for the
process you've collected backtracing for.
Use
bt_load_memmap()
to initialize this variable.
- addrs
- An array of addresses that you want to translate.
- addrslen
- The number of entries in the addrs array, as well as the
number of entries in the reladdrs, offsets,
index, and filenames arrays
(if non-NULL).
- reladdrs
- NULL, or an array where the function can store
the addresses as specified in the object files.
- offsets
- NULL, or an array where the function can store
the difference between the in-file address and in-memory address
(i.e. offsets[0] = addr[0] - mod_addr[0]).
- index
- NULL, or an array where the function can store
the memory map index for each address.
- filenames
- NULL, or an array where the function can store
the object file name for each address.
|
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.
QNX Neutrino
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
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_translate_addrs.html on line 198
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_translate_addrs.html on line 198