From 18f5292304101ca5a3825aba0f034f80d5546634 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 7 Feb 2000 20:59:19 +0000 Subject: [PATCH] * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing so the gcc2_compiled symbol doesn't confuse BeOS debuggers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31838 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/beos-elf.h | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 438faba..2d6e674 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-02-07 Fred Fish + + * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing + so the gcc2_compiled symbol doesn't confuse BeOS debuggers. + 2000-02-07 Zack Weinberg * cppfiles.c (deps_output): Count spacers in deps_column. diff --git a/gcc/config/i386/beos-elf.h b/gcc/config/i386/beos-elf.h index 34d94f5..cd51815 100644 --- a/gcc/config/i386/beos-elf.h +++ b/gcc/config/i386/beos-elf.h @@ -369,3 +369,15 @@ extern union tree_node *i386_pe_merge_decl_attributes (); without user intervention. For instance, under Microsoft Windows symbols must be explicitly imported from shared libraries (DLLs). */ #define MULTIPLE_SYMBOL_SPACES + +/* A C statement to output assembler commands which will identify the object + file as having been compiled with GNU CC. This isn't needed for BeOS + because we use DWARF and DWARF has an DW_AT_producer tag that does the + same thing. BeOS debuggers, like bdb, that don't know about this hack + can get confused when they find two symbols with the same address, and + print the wrong one (gcc2_compiled) in things like backtraces. The most + likely ill effect of disabling this is that a BeOS port of gdb would not + be able to tell that an executable was compiled with gcc if there was no + DWARF info. */ +#undef ASM_IDENTIFY_GCC +#define ASM_IDENTIFY_GCC(FILE) -- 2.7.4