dwarf-config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* libunwind - a platform-independent unwind library
  2. Copyright (c) 2003 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. /* This matches the value used by GCC (see
  24. gcc/config/i386.h:DWARF_FRAME_REGISTERS), which leaves plenty of
  25. room for expansion. */
  26. #define DWARF_NUM_PRESERVED_REGS 17
  27. #define DWARF_REGNUM_MAP_LENGTH 19
  28. /* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
  29. #define dwarf_is_big_endian(addr_space) 0
  30. /* Convert a pointer to a dwarf_cursor structure to a pointer to
  31. unw_cursor_t. */
  32. #define dwarf_to_cursor(c) ((unw_cursor_t *) (c))
  33. typedef struct dwarf_loc
  34. {
  35. unw_word_t val;
  36. #ifndef UNW_LOCAL_ONLY
  37. unw_word_t type; /* see X86_LOC_TYPE_* macros. */
  38. #endif
  39. }
  40. dwarf_loc_t;
  41. #endif /* dwarf_config_h */