Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src make i386 & sparc* output DBX_DEBUG format ("-gstabs") by de...



details:   https://anonhg.NetBSD.org/src/rev/4ce4ca891f4e
branches:  trunk
changeset: 552120:4ce4ca891f4e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Sep 19 08:43:12 2003 +0000

description:
make i386 & sparc* output DBX_DEBUG format ("-gstabs") by default for now.

XXX: back this out when these platforms switch to GDB 5.3.

diffstat:

 doc/HACKS                                  |  11 ++++++++++-
 gnu/dist/gcc/gcc/config/i386/netbsd-elf.h  |   4 ++++
 gnu/dist/gcc/gcc/config/sparc/netbsd-elf.h |   3 +++
 3 files changed, 17 insertions(+), 1 deletions(-)

diffs (46 lines):

diff -r 296369634fcc -r 4ce4ca891f4e doc/HACKS
--- a/doc/HACKS Fri Sep 19 08:35:15 2003 +0000
+++ b/doc/HACKS Fri Sep 19 08:43:12 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.7 2003/09/09 13:40:59 he Exp $
+# $NetBSD: HACKS,v 1.8 2003/09/19 08:43:14 mrg Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -342,3 +342,12 @@
        is observed on e.g. the sun3 port.  Ideally the "types" for
        symbols should be consistent across all ports.
 kcah
+
+hack   i386 / sparc default debugging type in GCC 3.3.1
+cdate  19 Sept 2003
+who    mrg
+file   gnu/dist/gcc/gcc/config/{i386,sparc}/netbsd-elf.h
+descr
+       Until i386 & sparc* switch to GDB 5.3, the default debugging
+       format needs to be stabs not DWARF.
+kcah
diff -r 296369634fcc -r 4ce4ca891f4e gnu/dist/gcc/gcc/config/i386/netbsd-elf.h
--- a/gnu/dist/gcc/gcc/config/i386/netbsd-elf.h Fri Sep 19 08:35:15 2003 +0000
+++ b/gnu/dist/gcc/gcc/config/i386/netbsd-elf.h Fri Sep 19 08:43:12 2003 +0000
@@ -125,3 +125,7 @@
 #define TRANSFER_FROM_TRAMPOLINE NETBSD_ENABLE_EXECUTE_STACK
 
 #define TARGET_VERSION fprintf (stderr, " (NetBSD/i386 ELF)");
+
+/* XXX delete me when NetBSD switches to GDB 5.3.  */
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
diff -r 296369634fcc -r 4ce4ca891f4e gnu/dist/gcc/gcc/config/sparc/netbsd-elf.h
--- a/gnu/dist/gcc/gcc/config/sparc/netbsd-elf.h        Fri Sep 19 08:35:15 2003 +0000
+++ b/gnu/dist/gcc/gcc/config/sparc/netbsd-elf.h        Fri Sep 19 08:43:12 2003 +0000
@@ -56,6 +56,9 @@
 
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+/* XXX delete me when switching to GDB 5.3.  */
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
 /* This is the char to use for continuation (in case we need to turn
    continuation back on).  */



Home | Main Index | Thread Index | Old Index