From patchwork Fri Sep 18 16:33:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 8786 Received: (qmail 50412 invoked by alias); 18 Sep 2015 16:34:34 -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 50302 invoked by uid 89); 18 Sep 2015 16:34:33 -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 16:34:31 +0000 Received: from svr-orw-fem-06.mgc.mentorg.com ([147.34.97.120]) by relay1.mentorg.com with esmtp id 1ZcycG-0007TU-Ik from Sandra_Loosemore@mentor.com for gdb-patches@sourceware.org; Fri, 18 Sep 2015 09:34:28 -0700 Received: from [IPv6:::1] (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.3.224.2; Fri, 18 Sep 2015 09:34:28 -0700 Message-ID: <55FC3CE3.3010807@codesourcery.com> Date: Fri, 18 Sep 2015 10:33:39 -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: [committed, testsuite] generalize filename pattern in gdb.mi/mi-dprintf-pending.exp When compiling test cases for GDB, our remote-host test harness copies the source files to the working directory on the remote host and compiles them there using relative pathnames, so that when breakpoints are reported they don't include a pathname prefix either. This patch fixes a bad breakpoint pattern in gdb.mi/mi-dprintf-pending.exp. I've previously committed some other patches to fix testcases with breakpoint regexps that require a directory prefix... e.g. https://sourceware.org/ml/gdb-patches/2013-04/msg00053.html So I presume more of the same qualifies as "obvious", and have committed this patch. -Sandra diff --git a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp index 5bb4a1b..a4a1709 100644 --- a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp +++ b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp @@ -60,7 +60,7 @@ mi_gdb_test "-dprintf-insert -f pendfunc1 \"hello\"" \ "mi set dprintf" mi_create_breakpoint $bp_location1 "mi insert breakpoint bp_location1" \ - -type "breakpoint" -line $bp_location1 -file $srcdir/$subdir/$srcfile + -type "breakpoint" -line $bp_location1 -file ".*$srcfile" mi_run_cmd