tables.c 940 B

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