From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13046 invoked by alias); 2 Jun 2003 07:58:13 -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 12974 invoked from network); 2 Jun 2003 07:58:10 -0000 Received: from unknown (HELO are.twiddle.net) (64.81.246.98) by sources.redhat.com with SMTP; 2 Jun 2003 07:58:10 -0000 Received: from are.twiddle.net (localhost.localdomain [127.0.0.1]) by are.twiddle.net (8.12.8/8.12.8) with ESMTP id h527wALH007907 for ; Mon, 2 Jun 2003 00:58:10 -0700 Received: (from rth@localhost) by are.twiddle.net (8.12.8/8.12.8/Submit) id h527wAZb007905 for gdb-patches@sources.redhat.com; Mon, 2 Jun 2003 00:58:10 -0700 X-Authentication-Warning: are.twiddle.net: rth set sender to rth@twiddle.net using -f Date: Mon, 02 Jun 2003 07:58:00 -0000 From: Richard Henderson To: gdb-patches@sources.redhat.com Subject: [RFA] fix dump.exp tests for alpha Message-ID: <20030602075810.GA7898@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-06/txt/msg00061.txt.bz2 All of the "read it back in" tests failed because none of the formats can handle 64-bit addresses, afaik. Adding the linker switch to force the application into the low 31 bits allows all of the tests to pass. Ok? r~ * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch. Index: gdb.base/dump.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/dump.exp,v retrieving revision 1.2 diff -c -p -d -r1.2 dump.exp *** gdb.base/dump.exp 6 Feb 2003 06:36:24 -0000 1.2 --- gdb.base/dump.exp 2 Jun 2003 07:52:44 -0000 *************** set testfile "dump" *** 31,38 **** set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} ! if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } --- 31,45 ---- set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} + set options {debug} ! if [istarget "alpha*-*-*"] then { ! # SREC etc cannot handle 64-bit addresses. Force the test ! # program into the low 31 bits of the address space. ! lappend options "additional_flags=-Wl,-taso" ! } ! ! if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ${options}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." }