From patchwork Fri Aug 16 01:29:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 34135 Received: (qmail 130929 invoked by alias); 16 Aug 2019 01:29:16 -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 130920 invoked by uid 89); 16 Aug 2019 01:29:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: esa3.mentor.iphmx.com Received: from esa3.mentor.iphmx.com (HELO esa3.mentor.iphmx.com) (68.232.137.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 16 Aug 2019 01:29:14 +0000 IronPort-SDR: S7iQlBMHeEpEb0ikwdPMwFjDLN+c1kX0iRrvLZNE6mr4aIPz+DNpA/Kn/SnaPJHeuKGbK74NXC PrZ/H4DSGnFFZDycO3KKLLf1d33163kMnLZgnfv3m88amIb6cfsuAT0hS3mBhXDyzNS9k3OvoI SBUx2ksxwWe5aHSOmmTTHTqZpawhfHxQSdLwTpLUc13hH3y3AVYMaB88jnlozd96Kge7AFqGlE jZxiTS5eD01rgJY+nm2VvEKVKU68Q+ud2fTLbCE74wfP19XViVrEVqaPiuhiRfNhWAOGNfw9P/ CV4= Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 15 Aug 2019 17:29:13 -0800 IronPort-SDR: bRDFDNjioT2t9q3dppKDng8gbb7fJgVEqzY2rKNPbuiCXq8/COebwIiZEmWuRMqkVaD3t6Yq+c Zyf4aYDnVLXEkATwwfr4iF4ogQZrJOT0vRZ+6QlTvdt1YHWxgcaff2TrvXAcAorahSA8L8xuIB t291O+4cD/aEpO6jRz+HThLEiXhe/Uw6QmuTeSPdDbtljSBxaNQuGpJ0SEggezZM1AT0KDyTYh 0qyTa5djsrjeOcitn7p6BNP5fqv4XPYCu2+79aKarlqr0qeAbQ58lmq1FBG3oIQjtrROje7HDQ xW0= To: "gdb-patches@sourceware.org" From: Sandra Loosemore Subject: [testsuite, obvious] Fix paste-o in examine-backward.exp Message-ID: <901415db-fd64-0e31-8911-66c4e3a2097f@codesourcery.com> Date: Thu, 15 Aug 2019 19:29:06 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Return-Path: sandra@codesourcery.com I've checked in the attached patch to fix a clear cut-and-paste error in gdb.base/examine-backward.exp due to a change in a previous commit. The testcase used to have the correct regexp before that, and I've verified this fix works by testing on nios2-elf. -Sandra commit d8f9e51c361dfb53de3eca8d84f8938380af60ff Author: Sandra Loosemore Date: Thu Aug 15 18:15:16 2019 -0700 Fix paste-o in examine-backward.exp. This patch fixes a paste-o that was introduced in commit c8ad9b9a31aa3e6039567fc1f152dd454c946d5f. Previously the regexp for the "examine 3 bytes backward from ${address_zero}" test correctly matched 3 "${byte}" patterns, but in that commit the 6-byte regexp from the previous test was mistakenly repeated here instead. 2019-08-15 Sandra Loosemore gdb/testsuite/ * gdb.base/examine-backward.exp: Correct regexp for "examine 3 bytes backward from ${address_zero}". diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 294243a..25eeefc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-15 Sandra Loosemore + + * gdb.base/examine-backward.exp: Correct regexp for + "examine 3 bytes backward from ${address_zero}". + 2019-08-15 Tom Tromey * gdb.tui/empty.exp: Enable resizing tests. diff --git a/gdb/testsuite/gdb.base/examine-backward.exp b/gdb/testsuite/gdb.base/examine-backward.exp index 9e1e64c..c3dbf04 100644 --- a/gdb/testsuite/gdb.base/examine-backward.exp +++ b/gdb/testsuite/gdb.base/examine-backward.exp @@ -132,7 +132,7 @@ with_test_prefix "address zero boundary" { set test "examine 3 bytes backward from ${address_zero}" gdb_test_multiple "x/-3x ${address_zero}" "$test" { - -re "0x\[0-9a-f\]+fd.*:${byte}${byte}${byte}${byte}${byte}${byte}.*\[\r\n\]*$gdb_prompt $" { + -re "0x\[0-9a-f\]+fd.*:${byte}${byte}${byte}.*\[\r\n\]*$gdb_prompt $" { pass $test } -re "0x\[0-9a-f\]+fd.*:\tCannot access memory at address 0x\[0-9a-f\]+fd.*\[\r\n\]*$gdb_prompt $" {