diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-20 10:16:09 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-20 10:16:09 +0000 |
commit | 1a6f9700fdfc258198db6436b3015489850da8c4 (patch) | |
tree | fd1b1fc0714cb784db75a1235b1bd95e97dfc4a7 /gcc/defaults.h | |
parent | d157a48eb9532e45ee78170015d61d835e34b4ca (diff) | |
download | gcc-1a6f9700fdfc258198db6436b3015489850da8c4.tar.gz |
* configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
(HAVE_AS_GSTABS_DEBUG_FLAG): Define.
* configure: Regenerate.
* config.in: Add dummy definitions of new flags.
* toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
* defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
* gcc.c (ASM_DEBUG_SPEC): New macro.
(asm_debug): New static variable.
(default_compilers): Add asm_debug when assembling from
user input.
(static_specs): Add asm_debug.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r-- | gcc/defaults.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h index bda763fe1b1..b83f25e2e39 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -410,4 +410,41 @@ do { \ #define ASM_BYTE_OP "\t.byte\t" #endif +#ifndef DEFAULT_GDB_EXTENSIONS +#define DEFAULT_GDB_EXTENSIONS 1 +#endif + +/* If more than one debugging type is supported, you must define + PREFERRED_DEBUGGING_TYPE to choose a format in a system-dependent way. + + This is one long line cause VAXC can't handle a \-newline. */ +#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) + defined (DWARF_DEBUGGING_INFO) + defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO)) +#ifndef PREFERRED_DEBUGGING_TYPE +You Lose! You must define PREFERRED_DEBUGGING_TYPE! +#endif /* no PREFERRED_DEBUGGING_TYPE */ +#else /* Only one debugging format supported. Define PREFERRED_DEBUGGING_TYPE + so other code needn't care. */ +#ifdef DBX_DEBUGGING_INFO +#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG +#endif +#ifdef SDB_DEBUGGING_INFO +#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG +#endif +#ifdef DWARF_DEBUGGING_INFO +#define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG +#endif +#ifdef DWARF2_DEBUGGING_INFO +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG +#endif +#ifdef XCOFF_DEBUGGING_INFO +#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG +#endif +#endif /* More than one debugger format enabled. */ + +/* If still not defined, must have been because no debugging formats + are supported. */ +#ifndef PREFERRED_DEBUGGING_TYPE +#define PREFERRED_DEBUGGING_TYPE NO_DEBUG +#endif + #endif /* ! GCC_DEFAULTS_H */ |