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