From patchwork Tue Mar 1 15:22:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 11156 Received: (qmail 23873 invoked by alias); 1 Mar 2016 15:23:02 -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 23854 invoked by uid 89); 1 Mar 2016 15:23:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=2211, wag, UD:gdb.arch, gdb.arch X-HELO: mail-pa0-f50.google.com Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com) (209.85.220.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 01 Mar 2016 15:22:59 +0000 Received: by mail-pa0-f50.google.com with SMTP id yy13so113632767pab.3 for ; Tue, 01 Mar 2016 07:22:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=mFawz8lQSseEWAZKtNBbmUx6NMeOK3us3yPDFru6cyg=; b=kIs/0LreD2hPL3pE62m9sEfKv1xQkz9ZtQ/aYA4FbWw/LoZ+pnw4Zoze4/00PaUYzS ljufDap1EIHaXx3VP7JbGTpvpDmqq+WL9qaGTGD+s8iLjZFAIb5FinyeZAK7prAseq3b VRfoKUWBAhNB/vL87BmC3aESN1eddyb4Xb174rea6aoEnEklBvxk5H322dI/7PRAg+BO LLpgDu58I3/VGidsb/9Gt7TXnDVx3zS6dzSwy2m7Wl6AOWHAsP+zFB48sGVh1/mXnN2C F2/i6V0mMfJTawMt8fwJyWOK8NcvBRARebg7jM9BN2tQvl6UWLWvpaNV5Z2YziNCOtg1 vUlQ== X-Gm-Message-State: AD7BkJKsepTTm1Kmn5wDWcfNFt5pc3vqTA2tmTLgUHca6ypItN37FLEDlZZwRbzUZLHyaA== X-Received: by 10.66.164.39 with SMTP id yn7mr30954510pab.107.1456845778090; Tue, 01 Mar 2016 07:22:58 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id 1sm46393521pfm.10.2016.03.01.07.22.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 07:22:57 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH/COMMITTED] Fix output path for arm-disp-step.exp Date: Tue, 1 Mar 2016 15:22:47 +0000 Message-Id: <1456845767-30337-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes This patch fixes the following error, ERROR: (/scratch/yao/gdb/build-git/arm-linux-gnueabihf/gdb/testsuite/outputs/gdb.arch/arm-disp-step/arm-disp-step) No such file or directory FAIL: gdb.arch/arm-disp-step.exp: Can't run to main gdb/testsuite: 2016-03-01 Yao Qi * gdb.arch/arm-disp-step.exp: Use standard_testfile and prepare_for_testing. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.arch/arm-disp-step.exp | 11 ++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 828b498..d77645a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2016-03-01 Yao Qi + * gdb.arch/arm-disp-step.exp: Use standard_testfile and + prepare_for_testing. + +2016-03-01 Yao Qi + * gdb.arch/arm-neon.exp: Pass quiet to prepare_for_testing. 2016-03-01 Andreas Arnez diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.exp b/gdb/testsuite/gdb.arch/arm-disp-step.exp index 873c440..f6bef79 100644 --- a/gdb/testsuite/gdb.arch/arm-disp-step.exp +++ b/gdb/testsuite/gdb.arch/arm-disp-step.exp @@ -22,14 +22,11 @@ if {![is_aarch32_target]} then { return } -set testfile "arm-disp-step" -set srcfile ${testfile}.S -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile .S set additional_flags "-Wa,-g" -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } { - untested arm-disp-step.exp +if { [prepare_for_testing $testfile.exp $testfile $srcfile [list debug $additional_flags]] } { return -1 } @@ -410,10 +407,6 @@ proc test_add_rn_pc {} { gdb_assert { [expr {$pc_val + 4 + 4} == $r3_val] } } -# Get things started. - -clean_restart ${testfile} - # Turn displaced stepping off before runto main. When displaced stepping # is on, and we type 'run', GDB will first try to single step on _dl_debug_state, # which is in library might be compiled in Thumb.