From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 314 invoked by alias); 26 Jul 2004 12:59:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32766 invoked from network); 26 Jul 2004 12:59:50 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 26 Jul 2004 12:59:50 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6QCxoe1028040 for ; Mon, 26 Jul 2004 08:59:50 -0400 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6QCxoa26513 for ; Mon, 26 Jul 2004 08:59:50 -0400 Received: from localhost.localdomain.redhat.com (vpnuser2.surrey.redhat.com [172.16.9.2]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id i6QCxmhp026930 for ; Mon, 26 Jul 2004 13:59:49 +0100 To: gdb-patches@sources.redhat.com Subject: RFA/RFC: Change Sparc64 gdb.asm tests to use -gdwarf2 instead of -gstabs From: Nick Clifton Date: Mon, 26 Jul 2004 12:59:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-07/txt/msg00357.txt.bz2 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 * 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