Home | History | Annotate | Line # | Download | only in config
      1 /* Definitions needed when using stabs embedded in COFF sections.
      2    Copyright (C) 1996-2022 Free Software Foundation, Inc.
      3 
      4 This file is part of GCC.
      5 
      6 GCC is free software; you can redistribute it and/or modify
      7 it under the terms of the GNU General Public License as published by
      8 the Free Software Foundation; either version 3, or (at your option)
      9 any later version.
     10 
     11 GCC is distributed in the hope that it will be useful,
     12 but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14 GNU General Public License for more details.
     15 
     16 You should have received a copy of the GNU General Public License
     17 along with GCC; see the file COPYING3.  If not see
     18 <http://www.gnu.org/licenses/>.  */
     19 
     20 /* This file may be included by any COFF target which wishes to
     21    support -gstabs generating stabs in sections, as produced by gas
     22    and understood by gdb.  */
     23 
     24 /* Output DBX (stabs) debugging information if doing -gstabs.  */
     25 
     26 #define DBX_DEBUGGING_INFO 1
     27 
     28 /* Be function-relative for block and source line stab directives.  */
     29 
     30 #define DBX_BLOCKS_FUNCTION_RELATIVE 1
     31 
     32 /* but, to make this work, functions must appear prior to line info.  */
     33 
     34 #define DBX_FUNCTION_FIRST
     35 
     36 /* Generate a blank trailing N_SO to mark the end of the .o file, since
     37    we can't depend upon the linker to mark .o file boundaries with
     38    embedded stabs.  */
     39 
     40 #define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
     41 
     42 /* Like block addresses, stabs line numbers are relative to the
     43    current function.  */
     44 
     45 #define DBX_LINES_FUNCTION_RELATIVE 1
     46 
     47 /* When generating stabs debugging, use N_BINCL entries.  */
     48 
     49 #undef DBX_USE_BINCL
     50 #define DBX_USE_BINCL
     51 
     52 /* There is no limit to the length of stabs strings.  */
     53 
     54 #ifndef DBX_CONTIN_LENGTH
     55 #define DBX_CONTIN_LENGTH 0
     56 #endif
     57