This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA/RFC: Change Sparc64 gdb.asm tests to use -gdwarf2 instead of-gstabs
- From: Nick Clifton <nickc at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 26 Jul 2004 14:09:45 +0100
- Subject: RFA/RFC: Change Sparc64 gdb.asm tests to use -gdwarf2 instead of-gstabs
Hi Guys,
I would like permission to apply the following patch. It changes
the switch used to generate debugging information for Sparc64
targets from -gstabs to -gdwarf2.
This patch might be controversial however since although DWARF2 is a
more modern debug format when compared to STABS, there is also a
second motive for the change: GAS does not generate correct relocs
for Sparc64 STABS debug information. So this patch works around a
known failure in GAS, which means that possibly the problem might be
forgotten.
Cheers
Nick
gdb/testsuite/ChangeLog
2004-07-26 Nick Clifton <nickc@redhat.com>
* gdb.asm/asm-source.exp: Use -gdwarf2 in preference to
-gstabs for Sparc64.
Index: gdb/testsuite/gdb.asm/asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.50
diff -c -3 -p -r1.50 asm-source.exp
*** gdb/testsuite/gdb.asm/asm-source.exp 25 May 2004 04:07:05 -0000 1.50
--- gdb/testsuite/gdb.asm/asm-source.exp 26 Jul 2004 12:53:52 -0000
*************** switch -glob -- [istarget] {
*** 95,101 ****
}
"sparc64-*-*" {
set asm-arch sparc64
! set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}"
}
"xstormy16-*-*" {
set asm-arch xstormy16
--- 95,101 ----
}
"sparc64-*-*" {
set asm-arch sparc64
! set asm-flags "-xarch=v9 -gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
}
"xstormy16-*-*" {
set asm-arch xstormy16