dwarf-config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* libunwind - a platform-independent unwind library
  2. Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
  3. Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
  4. This file is part of libunwind.
  5. Permission is hereby granted, free of charge, to any person obtaining
  6. a copy of this software and associated documentation files (the
  7. "Software"), to deal in the Software without restriction, including
  8. without limitation the rights to use, copy, modify, merge, publish,
  9. distribute, sublicense, and/or sell copies of the Software, and to
  10. permit persons to whom the Software is furnished to do so, subject to
  11. the following conditions:
  12. The above copyright notice and this permission notice shall be
  13. included in all copies or substantial portions of the Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  18. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  19. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  20. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  21. #ifndef dwarf_config_h
  22. #define dwarf_config_h
  23. /* See DWARF_FRAME_REGNUM() macro in gcc/config/pa/pa32-regs.h: */
  24. #define dwarf_to_unw_regnum(reg) \
  25. (((reg) < DWARF_NUM_PRESERVED_REGS) ? (reg) : 0)
  26. /* This matches the value used by GCC (see
  27. gcc/config/pa/pa32-regs.h:FIRST_PSEUDO_REGISTER), which leaves
  28. plenty of room for expansion. */
  29. #define DWARF_NUM_PRESERVED_REGS 89
  30. /* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
  31. #define dwarf_is_big_endian(addr_space) 1
  32. /* Convert a pointer to a dwarf_cursor structure to a pointer to
  33. unw_cursor_t. */
  34. #define dwarf_to_cursor(c) ((unw_cursor_t *) (c))
  35. typedef struct dwarf_loc
  36. {
  37. unw_word_t val;
  38. #ifndef UNW_LOCAL_ONLY
  39. unw_word_t type; /* see X86_LOC_TYPE_* macros. */
  40. #endif
  41. }
  42. dwarf_loc_t;
  43. #endif /* dwarf_config_h */