From patchwork Fri Sep 18 19:27:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 8794 Received: (qmail 129063 invoked by alias); 18 Sep 2015 19:28:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 129054 invoked by uid 89); 18 Sep 2015 19:28:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Sep 2015 19:28:11 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Zd1KK-0003dg-Uy from Sandra_Loosemore@mentor.com for gdb-patches@sourceware.org; Fri, 18 Sep 2015 12:28:08 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.224.2; Fri, 18 Sep 2015 12:28:08 -0700 Message-ID: <55FC6597.8030205@codesourcery.com> Date: Fri, 18 Sep 2015 13:27:19 -0600 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: gdb-patches Subject: [commited, testsuite] fix directory prefix in gdb.base/dso2dso.exp This patch is very similar to the one I just pushed for gdb.mi/mi-pending.exp. The breakpoint location was being set using a directory prefix on the source filename that is OK for the host where the .exp file is running but that isn't appropriate for remote-host testing. Using just the base name of the file works for both local and remote testing. I've committed this as obvious. -Sandra diff --git a/gdb/testsuite/gdb.base/dso2dso.exp b/gdb/testsuite/gdb.base/dso2dso.exp index 9dc92d2..2e78782 100644 --- a/gdb/testsuite/gdb.base/dso2dso.exp +++ b/gdb/testsuite/gdb.base/dso2dso.exp @@ -64,7 +64,7 @@ if { ![runto_main] } { } set bp_location [gdb_get_line_number "STOP HERE" [file tail $srcfile_libdso1]] -gdb_breakpoint ${srcfile_libdso1}:${bp_location} +gdb_breakpoint ${libdso1}.c:${bp_location} gdb_continue_to_breakpoint "at call to sub2" \ ".*sub2 ().*"