Commit 3c35520e by Ian Lance Taylor

Use dbxcoff.h

From-SVN: r11029
parent 1c940b47
/* Definitions for "naked" Motorola 88k using coff object format files /* Definitions for "naked" Motorola 88k using coff object format files
and coff debugging info. and coff debugging info.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1996 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -25,14 +25,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -25,14 +25,10 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dm88000 -Dm88k -Acpu(m88k) -Amachine(m88k)" #define CPP_PREDEFINES "-Dm88000 -Dm88k -Acpu(m88k) -Amachine(m88k)"
#undef DBX_DEBUGGING_INFO
#define SDB_DEBUGGING_INFO #define SDB_DEBUGGING_INFO
/* Output DBX (stabs) debugging information if using -gstabs. */ /* Output DBX (stabs) debugging information if using -gstabs. */
#define DBX_DEBUGGING_INFO #include "dbxcoff.h"
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
/* end of m88k-coff.h */ /* end of m88k-coff.h */
...@@ -30,11 +30,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -30,11 +30,7 @@ Boston, MA 02111-1307, USA. */
/* Output DBX (stabs) debugging information if doing -gstabs. */ /* Output DBX (stabs) debugging information if doing -gstabs. */
#define DBX_DEBUGGING_INFO #include "dbxcoff.h"
/* Generate SDB debugging information by default. */
#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
#define SDB_DELIM ";" #define SDB_DELIM ";"
......
/* Definitions of target machine for GNU compiler, for SPARClite w/o FPU, COFF. /* Definitions of target machine for GNU compiler, for SPARClite w/o FPU, COFF.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1996 Free Software Foundation, Inc.
Written by Ken Raeburn (raeburn@cygnus.com). Written by Ken Raeburn (raeburn@cygnus.com).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -32,47 +32,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,47 +32,11 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dsparc -Dsparclite -Acpu(sparc) -Amachine(sparc)" #define CPP_PREDEFINES "-Dsparc -Dsparclite -Acpu(sparc) -Amachine(sparc)"
/* just in case */ /* Default to stabs in COFF. */
#undef DBX_DEBUGGING_INFO
#undef PREFERRED_DEBUGGING_TYPE
#define DBX_DEBUGGING_INFO
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
/* These are all necessary because this is how gdb expects gcc to output #include "dbxcoff.h"
stabs in coff. */
/* Be function-relative for block and source line stab directives. */
#define DBX_BLOCKS_FUNCTION_RELATIVE 1
/* but, to make this work, functions must appear prior to line info. */
#define DBX_FUNCTION_FIRST
/* Generate a blank trailing N_SO to mark the end of the .o file, since
we can't depend upon the linker to mark .o file boundaries with
embedded stabs. */
#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
fprintf (FILE, \
"\t.text\n\t.stabs \"\",%d,0,0,Letext\nLetext:\n", N_SO)
/* This is copied from final.c and sparc.h. */
#undef ASM_OUTPUT_SOURCE_LINE
#define ASM_OUTPUT_SOURCE_LINE(FILE, LINE) \
{ if (write_symbols == SDB_DEBUG) { \
fprintf ((FILE), "\t.ln\t%d\n", \
((sdb_begin_function_line > -1) \
? (LINE) - sdb_begin_function_line : 1)); \
} else if (write_symbols == DBX_DEBUG) { \
static int sym_lineno = 1; \
fprintf (FILE, ".stabn 68,0,%d,.LM%d-", \
LINE, sym_lineno); \
assemble_name (FILE, \
XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); \
fprintf (FILE, "\n.LM%d:\n", sym_lineno); \
sym_lineno += 1; \
} }
/* Support the ctors and dtors sections for g++. */ /* Support the ctors and dtors sections for g++. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment