From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8301 invoked by alias); 29 Jul 2004 23:38:21 -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 8292 invoked from network); 29 Jul 2004 23:38:20 -0000 Received: from unknown (HELO mclean.mail.mindspring.net) (207.69.200.57) by sourceware.org with SMTP; 29 Jul 2004 23:38:20 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by mclean.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1BqKTa-0007Nf-00; Thu, 29 Jul 2004 19:38:18 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id D6D984B102; Thu, 29 Jul 2004 19:38:35 -0400 (EDT) Date: Thu, 29 Jul 2004 23:38:00 -0000 From: Michael Chastain To: kettenis@chello.nl Subject: Re: RFA/RFC: Change Sparc64 gdb.asm tests to use -gdwarf2 instead of -gstabs Cc: nickc@redhat.com, gdb-patches@sources.redhat.com Message-ID: <41098A7B.nail5AP1O5DT4@mindspring.com> References: <41051014 dot nailLY111456S at mindspring dot com> <41054231 dot 7010006 at redhat dot com> <41059A05.nailMF911EDIR@mindspring.com> <200407292303.i6TN30SB024149@elgar.kettenis.dyndns.org> In-Reply-To: <200407292303.i6TN30SB024149@elgar.kettenis.dyndns.org> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00476.txt.bz2 Mark Kettenis wrote: > Not all right! Nick, did you actually test this patch? Yes, he did. If you keep reading the thread, you can see that I asked Nick to test with "dwarf-2" and "stabs+", and Nick actually tested with "dwarf2" and "stabs+" (which source.exp translates to "stabs"). But it looks like Nick's tests did not actually test. :( > The subject of this thread is making sparc64 use -gdwarf2 instead of > -gstabs, but > the patch changes it to -gdwarf-2 (note the extra > dash). This isn't accepted by gas on my OpenBSD/amd64 and > OpenBSD/sparc64 systems, and AFAICT it isn't accepted by the current > gas from CVS either. Hmmm. Ick. You're right. Nick tested with "dwarf2" on the command line, but the patch says "dwarf-2" embedded in the code. And the assembler spells "dwarf2" differently from gcc, which spells it "dwarf-2". And to make matters more confusing, old assemblers do not understand "stabs+", but as 2.15 does support stabs+ with new extensions. For dwarf-2, I'd like to spell it the same way everywhere, and translate it at the last moment for binutils. That way, people can run the test suite with: make check RUNTESTFLAGS="--target_board unix/gdb:debug_flags=dwarf-2" ... and will get dwarf-2 with all languages. Like this: # The GNU assembler spells dwarf-2 as "dwarf2". if { ${debug-flags} == "-gdwarf-2" } then { set debug-flags "-gdwarf2" } Mark, does that work on your system? I'll test it on my system later tonight. Michael C