From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21533 invoked by alias); 6 Oct 2011 19:11:08 -0000 Received: (qmail 21520 invoked by uid 22791); 6 Oct 2011 19:11:07 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Oct 2011 19:10:54 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RBtLJ-0001w8-DH from joseph_myers@mentor.com for gdb-patches@sourceware.org; Thu, 06 Oct 2011 12:10:53 -0700 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 6 Oct 2011 20:10:45 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RBtGh-0006Xj-0N for gdb-patches@sourceware.org; Thu, 06 Oct 2011 19:06:07 +0000 Date: Thu, 06 Oct 2011 19:11:00 -0000 From: "Joseph S. Myers" To: gdb-patches@sourceware.org Subject: Fix gdb.base/fixsection.exp for remote host testing Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 X-SW-Source: 2011-10/txt/msg00176.txt.bz2 gdb.base/fixsection.exp does set testfile "fixsection" set srcfile ${srcdir}/${subdir}/${testfile}.c ... gdb_test "break static_fun" \ "Breakpoint.*at.* file .*${srcfile}, line.*" \ "breakpoint at static_fun" That is, it tests for the path ${srcdir}/${subdir}/${testfile}.c in a diagnostic - but in remote host testing, a copy of ${testfile}.c on the remote host may have been used instead in the compilation so that the full path is not embedded in the binary. This patch fixes this remote host problem by not including the directories in the message tested for (so they are instead matched by the existing ".*"). OK to commit? 2011-10-06 Joseph Myers * gdb.base/fixsection.exp: Do not include directories in filename in expected message. Index: gdb.base/fixsection.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/fixsection.exp,v retrieving revision 1.5 diff -u -r1.5 fixsection.exp --- gdb.base/fixsection.exp 1 Jan 2011 15:33:41 -0000 1.5 +++ gdb.base/fixsection.exp 6 Oct 2011 18:34:56 -0000 @@ -60,7 +60,7 @@ # set breakpoint at static function static_fun # gdb_test "break static_fun" \ - "Breakpoint.*at.* file .*${srcfile}, line.*" \ + "Breakpoint.*at.* file .*${testfile}\\.c, line.*" \ "breakpoint at static_fun" # -- Joseph S. Myers joseph@codesourcery.com