dbxcoff.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Definitions needed when using stabs embedded in COFF sections.
  2. Copyright (C) 1996-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. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. /* This file may be included by any COFF target which wishes to
  16. support -gstabs generating stabs in sections, as produced by gas
  17. and understood by gdb. */
  18. /* Output DBX (stabs) debugging information if doing -gstabs. */
  19. #define DBX_DEBUGGING_INFO 1
  20. /* Generate SDB debugging information by default. */
  21. #ifndef PREFERRED_DEBUGGING_TYPE
  22. #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
  23. #endif
  24. /* Be function-relative for block and source line stab directives. */
  25. #define DBX_BLOCKS_FUNCTION_RELATIVE 1
  26. /* but, to make this work, functions must appear prior to line info. */
  27. #define DBX_FUNCTION_FIRST
  28. /* Generate a blank trailing N_SO to mark the end of the .o file, since
  29. we can't depend upon the linker to mark .o file boundaries with
  30. embedded stabs. */
  31. #define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
  32. /* Like block addresses, stabs line numbers are relative to the
  33. current function. */
  34. #define DBX_LINES_FUNCTION_RELATIVE 1
  35. /* When generating stabs debugging, use N_BINCL entries. */
  36. #undef DBX_USE_BINCL
  37. #define DBX_USE_BINCL
  38. /* There is no limit to the length of stabs strings. */
  39. #ifndef DBX_CONTIN_LENGTH
  40. #define DBX_CONTIN_LENGTH 0
  41. #endif