1339631Sphilip/* Definitions needed when using stabs embedded in COFF sections.
2339631Sphilip   Copyright (C) 1996, 2004 Free Software Foundation, Inc.
3308265Sgjb
4308265SgjbThis file is part of GCC.
5308265Sgjb
6308265SgjbGCC is free software; you can redistribute it and/or modify
7308265Sgjbit under the terms of the GNU General Public License as published by
8308265Sgjbthe Free Software Foundation; either version 2, or (at your option)
9308265Sgjbany later version.
10308265Sgjb
11308265SgjbGCC is distributed in the hope that it will be useful,
12308265Sgjbbut WITHOUT ANY WARRANTY; without even the implied warranty of
13308265SgjbMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14308265SgjbGNU General Public License for more details.
15345671Sphilip
16345671SphilipYou should have received a copy of the GNU General Public License
17345671Sphilipalong with GCC; see the file COPYING.  If not, write to
18345671Sphilipthe Free Software Foundation, 51 Franklin Street, Fifth Floor,
19331663SphilipBoston, MA 02110-1301, USA.  */
20331663Sphilip
21331663Sphilip/* This file may be included by any COFF target which wishes to
22331663Sphilip   support -gstabs generating stabs in sections, as produced by gas
23331663Sphilip   and understood by gdb.  */
24331663Sphilip
25331663Sphilip/* Output DBX (stabs) debugging information if doing -gstabs.  */
26331663Sphilip
27339631Sphilip#define DBX_DEBUGGING_INFO 1
28339631Sphilip
29339631Sphilip/* Generate SDB debugging information by default.  */
30308265Sgjb
31308265Sgjb#ifndef PREFERRED_DEBUGGING_TYPE
32308265Sgjb#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
33308265Sgjb#endif
34308265Sgjb
35308265Sgjb/* Be function-relative for block and source line stab directives.  */
36308265Sgjb
37308265Sgjb#define DBX_BLOCKS_FUNCTION_RELATIVE 1
38308265Sgjb
39345671Sphilip/* but, to make this work, functions must appear prior to line info.  */
40339631Sphilip
41339631Sphilip#define DBX_FUNCTION_FIRST
42345671Sphilip
43345671Sphilip/* Generate a blank trailing N_SO to mark the end of the .o file, since
44308265Sgjb   we can't depend upon the linker to mark .o file boundaries with
45331663Sphilip   embedded stabs.  */
46339631Sphilip
47308265Sgjb#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
48308265Sgjb
49308265Sgjb/* Like block addresses, stabs line numbers are relative to the
50308265Sgjb   current function.  */
51308265Sgjb
52308265Sgjb#define DBX_LINES_FUNCTION_RELATIVE 1
53308265Sgjb
54308265Sgjb/* When generating stabs debugging, use N_BINCL entries.  */
55308265Sgjb
56308265Sgjb#undef DBX_USE_BINCL
57308265Sgjb#define DBX_USE_BINCL
58308265Sgjb
59328476Sphilip/* There is no limit to the length of stabs strings.  */
60328476Sphilip
61328476Sphilip#ifndef DBX_CONTIN_LENGTH
62328476Sphilip#define DBX_CONTIN_LENGTH 0
63328476Sphilip#endif
64328476Sphilip