150397Sobrien/* Definitions needed when using stabs embedded in COFF sections. 2169689Skan Copyright (C) 1996, 2004 Free Software Foundation, Inc. 350397Sobrien 4132718SkanThis file is part of GCC. 550397Sobrien 6132718SkanGCC is free software; you can redistribute it and/or modify 750397Sobrienit under the terms of the GNU General Public License as published by 850397Sobrienthe Free Software Foundation; either version 2, or (at your option) 950397Sobrienany later version. 1050397Sobrien 11132718SkanGCC is distributed in the hope that it will be useful, 1250397Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1350397SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1450397SobrienGNU General Public License for more details. 1550397Sobrien 1650397SobrienYou should have received a copy of the GNU General Public License 17132718Skanalong with GCC; see the file COPYING. If not, write to 18169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 19169689SkanBoston, MA 02110-1301, USA. */ 2050397Sobrien 2150397Sobrien/* This file may be included by any COFF target which wishes to 2250397Sobrien support -gstabs generating stabs in sections, as produced by gas 2350397Sobrien and understood by gdb. */ 2450397Sobrien 2550397Sobrien/* Output DBX (stabs) debugging information if doing -gstabs. */ 2650397Sobrien 27117395Skan#define DBX_DEBUGGING_INFO 1 2850397Sobrien 29117395Skan/* Generate SDB debugging information by default. */ 3050397Sobrien 3150397Sobrien#ifndef PREFERRED_DEBUGGING_TYPE 3250397Sobrien#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG 3350397Sobrien#endif 3450397Sobrien 3550397Sobrien/* Be function-relative for block and source line stab directives. */ 3650397Sobrien 3750397Sobrien#define DBX_BLOCKS_FUNCTION_RELATIVE 1 3850397Sobrien 3950397Sobrien/* but, to make this work, functions must appear prior to line info. */ 4050397Sobrien 4150397Sobrien#define DBX_FUNCTION_FIRST 4250397Sobrien 4350397Sobrien/* Generate a blank trailing N_SO to mark the end of the .o file, since 4450397Sobrien we can't depend upon the linker to mark .o file boundaries with 4550397Sobrien embedded stabs. */ 4650397Sobrien 47169689Skan#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END 4850397Sobrien 4950397Sobrien/* Like block addresses, stabs line numbers are relative to the 5050397Sobrien current function. */ 5150397Sobrien 52169689Skan#define DBX_LINES_FUNCTION_RELATIVE 1 5350397Sobrien 5450397Sobrien/* When generating stabs debugging, use N_BINCL entries. */ 5550397Sobrien 5650397Sobrien#undef DBX_USE_BINCL 5750397Sobrien#define DBX_USE_BINCL 5850397Sobrien 5950397Sobrien/* There is no limit to the length of stabs strings. */ 6050397Sobrien 6150397Sobrien#ifndef DBX_CONTIN_LENGTH 6250397Sobrien#define DBX_CONTIN_LENGTH 0 6350397Sobrien#endif 64