mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-22 11:33:43 +01:00
Export unw_backtrace() and alias backtrace() to it.
This commit is contained in:
parent
2f9b04e9c2
commit
50bc12afba
3 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue