1#include "unwind_i.h"
2
3static inline int
4is_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
15HIDDEN int
16tdep_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
23HIDDEN int
24tdep_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
32HIDDEN void
33tdep_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