1 #include "unwind_i.h"
2
3 static inline int
is_local_addr_space(unw_addr_space_t as)4 is_local_addr_space (unw_addr_space_t as)
5 {
6 extern unw_addr_space_t _ULhppa_local_addr_space;
7
8 return (as == _Uhppa_local_addr_space
9 #ifndef UNW_REMOTE_ONLY
10 || as == _ULhppa_local_addr_space
11 #endif
12 );
13 }
14
15 HIDDEN int
tdep_find_proc_info(unw_addr_space_t as,unw_word_t ip,unw_proc_info_t * pi,int need_unwind_info,void * arg)16 tdep_find_proc_info (unw_addr_space_t as, unw_word_t ip,
17 unw_proc_info_t *pi, int need_unwind_info, void *arg)
18 {
19 printf ("%s: begging to get implemented...\n", __FUNCTION__);
20 return 0;
21 }
22
23 HIDDEN int
tdep_search_unwind_table(unw_addr_space_t as,unw_word_t ip,unw_dyn_info_t * di,unw_proc_info_t * pi,int need_unwind_info,void * arg)24 tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip,
25 unw_dyn_info_t *di,
26 unw_proc_info_t *pi, int need_unwind_info, void *arg)
27 {
28 printf ("%s: the biggest beggar of them all...\n", __FUNCTION__);
29 return 0;
30 }
31
32 HIDDEN void
tdep_put_unwind_info(unw_addr_space_t as,unw_proc_info_t * pi,void * arg)33 tdep_put_unwind_info (unw_addr_space_t as, unw_proc_info_t *pi, void *arg)
34 {
35 if (!pi->unwind_info)
36 return;
37
38 if (!is_local_addr_space (as))
39 {
40 free (pi->unwind_info);
41 pi->unwind_info = NULL;
42 }
43 }
44