This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] change default ELF debugging type to DWARF2


Previously on this list, I was told the intended default debugging type
for the ELF object format is DWARF2 from this point forward.  This patch
impliments this.


2001-05-02  David O'Brien  <obrien@FreeBSD.org>

	* config/elfos.h, config/i386/i386elf.h: Change the default debugging
	type from dbx to dwarf2.



Index: elfos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/elfos.h,v
retrieving revision 1.25.2.1
diff -u -r1.25.2.1 elfos.h
--- elfos.h	2001/04/16 18:25:40	1.25.2.1
+++ elfos.h	2001/05/03 01:22:09
@@ -78,11 +81,10 @@
 
 #include "dbxelf.h"
 
-/* The GNU tools operate better with stabs.  Since we don't have
-   any native tools to be compatible with, default to stabs.  */
+/* ELF operates better with DWARF2.  */
 
 #ifndef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 #endif
 
 /* All SVR4 targets use the ELF object file format.  */
Index: i386/i386elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386elf.h,v
retrieving revision 1.9.4.1
diff -u -r1.9.4.1 i386elf.h
--- i386elf.h	2001/04/16 18:25:49	1.9.4.1
+++ i386elf.h	2001/05/03 01:22:09
@@ -19,9 +19,8 @@
 along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-/* Use stabs instead of DWARF debug format.  */
 #undef  PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
 #undef TARGET_VERSION
 #define TARGET_VERSION fprintf (stderr, " (i386 bare ELF target)");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]