1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-02 21:25:18 +02:00

Export unw_backtrace() and alias backtrace() to it.

This commit is contained in:
Lassi Tuura 2011-03-31 22:58:50 -07:00 committed by Arun Sharma
parent 2f9b04e9c2
commit 50bc12afba
3 changed files with 6 additions and 1 deletions

View file

@ -252,5 +252,6 @@ extern int unw_is_signal_frame (unw_cursor_t *);
extern int unw_handle_signal_frame (unw_cursor_t *);
extern int unw_get_proc_name (unw_cursor_t *, char *, size_t, unw_word_t *);
extern const char *unw_strerror (int);
extern int unw_backtrace (void **, int);
extern unw_addr_space_t unw_local_addr_space;

View file

@ -57,7 +57,7 @@ slow_backtrace (void **buffer, int size)
}
int
backtrace (void **buffer, int size)
unw_backtrace (void **buffer, int size)
{
unw_cursor_t cursor;
unw_context_t uc;
@ -82,4 +82,7 @@ backtrace (void **buffer, int size)
return n;
}
extern int backtrace (void **buffer, int size)
__attribute__((weak, alias("unw_backtrace")));
#endif /* !UNW_REMOTE_ONLY */

View file

@ -101,6 +101,7 @@ check_local_unw_abi () {
match _U_dyn_info_list_addr
match _U_dyn_register
match unw_backtrace
match backtrace
case ${plat} in