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