From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26244 invoked by alias); 4 Apr 2013 03:16:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 26231 invoked by uid 89); 4 Apr 2013 03:16:06 -0000 X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 04 Apr 2013 03:16:03 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UNaeg-00076x-38 from Sandra_Loosemore@mentor.com for gdb-patches@sourceware.org; Wed, 03 Apr 2013 20:16:02 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 3 Apr 2013 20:16:02 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Wed, 3 Apr 2013 20:16:01 -0700 Message-ID: <515CF061.1090508@codesourcery.com> Date: Thu, 04 Apr 2013 11:09:00 -0000 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Subject: [patch] fix remote host test failures in gdb.base/dup-sect.exp Content-Type: multipart/mixed; boundary="------------030704050402080701080807" X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00097.txt.bz2 --------------030704050402080701080807 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 486 The two tests at the end of gdb.base/dup-sect.exp have been failing in remote-host i686-mingw32 testing because the file containing the stripped debug information isn't being made available on the remote host. I stole this fix from another test case that also uses gdb_gnu_strip_debug to produce separate debug info. OK to commit? -Sandra 2013-04-03 Sandra Loosemore gdb/testsuite/ * gdb.base/dup-sect.exp: Copy debug info file to remote host. --------------030704050402080701080807 Content-Type: text/x-patch; name="dup-sect.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dup-sect.patch" Content-length: 745 Index: gdb/testsuite/gdb.base/dup-sect.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/dup-sect.exp,v retrieving revision 1.5 diff -u -p -r1.5 dup-sect.exp --- gdb/testsuite/gdb.base/dup-sect.exp 1 Jan 2013 06:33:25 -0000 1.5 +++ gdb/testsuite/gdb.base/dup-sect.exp 4 Apr 2013 03:07:40 -0000 @@ -74,6 +74,13 @@ if {$result != 0} { } pass $test +# gdb_gnu_strip_debug puts the debug info in $binfile.debug. Make sure that +# file is available on the remote host. +set debugfile $binfile.debug +if { [is_remote host] } { + set debugfile [remote_download host $debugfile] +} + clean_restart $executable gdb_test "p/d *(const char *) &var1" " = 1" "var1 after strip" --------------030704050402080701080807--