dbxelf.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Definitions needed when using stabs embedded in ELF sections.
  2. Copyright (C) 1999-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. /* This file may be included by any ELF target which wishes to
  20. support -gstabs generating stabs in sections, as produced by gas
  21. and understood by gdb. */
  22. #ifndef GCC_DBX_ELF_H
  23. #define GCC_DBX_ELF_H
  24. /* Output DBX (stabs) debugging information if doing -gstabs. */
  25. #define DBX_DEBUGGING_INFO 1
  26. /* Make LBRAC and RBRAC addresses relative to the start of the
  27. function. The native Solaris stabs debugging format works this
  28. way, gdb expects it, and it reduces the number of relocation
  29. entries... */
  30. #define DBX_BLOCKS_FUNCTION_RELATIVE 1
  31. /* ... but, to make this work, functions must appear prior to line info. */
  32. #define DBX_FUNCTION_FIRST
  33. /* When generating stabs debugging, use N_BINCL entries. */
  34. #define DBX_USE_BINCL
  35. /* There is no limit to the length of stabs strings. */
  36. #ifndef DBX_CONTIN_LENGTH
  37. #define DBX_CONTIN_LENGTH 0
  38. #endif
  39. /* Like block addresses, stabs line numbers are relative to the
  40. current function. */
  41. #define DBX_LINES_FUNCTION_RELATIVE 1
  42. /* Generate a blank trailing N_SO to mark the end of the .o file, since
  43. we can't depend upon the linker to mark .o file boundaries with
  44. embedded stabs. */
  45. #define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
  46. #endif /* ! GCC_DBX_ELF_H */