From patchwork Fri Feb 26 14:03:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 11112 Received: (qmail 88315 invoked by alias); 26 Feb 2016 14:04:10 -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 88241 invoked by uid 89); 26 Feb 2016 14:04:09 -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=20010, Hx-languages-length:3288, sk:stepov, sk:step-ov X-HELO: mail-pf0-f194.google.com Received: from mail-pf0-f194.google.com (HELO mail-pf0-f194.google.com) (209.85.192.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 26 Feb 2016 14:04:05 +0000 Received: by mail-pf0-f194.google.com with SMTP id w128so4724115pfb.2 for ; Fri, 26 Feb 2016 06:04:04 -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:in-reply-to :references; bh=I3+i6zOXoxQy6mCmnfCSfmBzN7SLxrNda2pcny9qMYA=; b=Rft1J/klAowp4b9C6WgAqTLkysWpgKgXvfFp1tR3bqUxkwwOzFVJdpgTU/g9RABW5w y1fiQJo+UQNQIENuhVSjSQvy6/LXA2P0R71C/CM7ofH7vhxFkS7IdevRhS6YdFX6PEnk NZsY9YOS3iZJ8Q8bnYreEMlhe1xv7HX7EaKyk+y4tK1nRSxqlWIjVrHuu3WAjJp++GHn w64wg94aoB47bwNjiVkQUr4/CRZgfwK+xgpHyi8DFprsUTlBtLL86T5asPldkx4VSQgi bxLAWx+Pj0Sh+N7RP91QUQeMjDSyIwAnmcfnbFz4SHJLgeQDRlnJALO2l5xvMT0rv6vI zsfw== X-Gm-Message-State: AD7BkJLOlJ6UpFWk0AhzTpU69Faz3cYuJ7M/JIx83FM0wHcaXOCFJIf5jXhmWgg4McwhCw== X-Received: by 10.98.64.4 with SMTP id n4mr2329693pfa.58.1456495442746; Fri, 26 Feb 2016 06:04:02 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id d81sm19745089pfj.77.2016.02.26.06.04.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Feb 2016 06:04:02 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 5/7] Rename disp-step-syscall.exp to step-over-syscall.exp Date: Fri, 26 Feb 2016 14:03:44 +0000 Message-Id: <1456495426-7520-6-git-send-email-yao.qi@linaro.org> In-Reply-To: <1456495426-7520-1-git-send-email-yao.qi@linaro.org> References: <1455892594-2294-1-git-send-email-yao.qi@linaro.org> <1456495426-7520-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes disp-step-syscall.exp is extended for stepping over syscall instruction in different cases, with or without displaced stepping, and stepping over by GDBserver. This patch rename disp-step-syscall.exp to step-over-syscall.exp to reflect this. gdb/testsuite: 2016-02-26 Yao Qi * gdb.base/disp-step-fork.c: Rename to ... * gdb.base/step-over-fork.c: ... it. New file. * gdb.base/disp-step-vfork.c: Rename to ... * gdb.base/step-over-vfork.c: ... it. New file. * gdb.base/disp-step-syscall.exp: Rename to ... * gdb.base/step-over-syscall.exp: ... it. New file. (disp_step_cross_syscall): Rename to ... (step_over_syscall): ... it. --- .../gdb.base/{disp-step-fork.c => step-over-fork.c} | 0 .../{disp-step-syscall.exp => step-over-syscall.exp} | 14 +++++++------- .../gdb.base/{disp-step-vfork.c => step-over-vfork.c} | 0 3 files changed, 7 insertions(+), 7 deletions(-) rename gdb/testsuite/gdb.base/{disp-step-fork.c => step-over-fork.c} (100%) rename gdb/testsuite/gdb.base/{disp-step-syscall.exp => step-over-syscall.exp} (96%) rename gdb/testsuite/gdb.base/{disp-step-vfork.c => step-over-vfork.c} (100%) diff --git a/gdb/testsuite/gdb.base/disp-step-fork.c b/gdb/testsuite/gdb.base/step-over-fork.c similarity index 100% rename from gdb/testsuite/gdb.base/disp-step-fork.c rename to gdb/testsuite/gdb.base/step-over-fork.c diff --git a/gdb/testsuite/gdb.base/disp-step-syscall.exp b/gdb/testsuite/gdb.base/step-over-syscall.exp similarity index 96% rename from gdb/testsuite/gdb.base/disp-step-syscall.exp rename to gdb/testsuite/gdb.base/step-over-syscall.exp index 9ecf2a5..6146f64 100644 --- a/gdb/testsuite/gdb.base/disp-step-syscall.exp +++ b/gdb/testsuite/gdb.base/step-over-syscall.exp @@ -47,7 +47,7 @@ proc check_pc_after_cross_syscall { syscall syscall_insn_next_addr } { proc setup { syscall } { global gdb_prompt syscall_insn - set testfile "disp-step-$syscall" + set testfile "step-over-$syscall" clean_restart $testfile @@ -107,12 +107,12 @@ proc setup { syscall } { return [list $syscall_insn_addr [get_hexadecimal_valueof "\$pc" "0"]] } -proc disp_step_cross_syscall { syscall } { +proc step_over_syscall { syscall } { with_test_prefix "$syscall" { global syscall_insn global gdb_prompt - set testfile "disp-step-$syscall" + set testfile "step-over-$syscall" if [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] { untested ${testfile}.exp @@ -174,7 +174,7 @@ proc disp_step_cross_syscall { syscall } { proc break_cond_on_syscall { syscall } { with_test_prefix "break cond on target : $syscall" { - set testfile "disp-step-$syscall" + set testfile "step-over-$syscall" set ret [setup $syscall] @@ -200,10 +200,10 @@ proc break_cond_on_syscall { syscall } { } } -disp_step_cross_syscall "fork" -disp_step_cross_syscall "vfork" +step_over_syscall "fork" +step_over_syscall "vfork" -set testfile "disp-step-fork" +set testfile "step-over-fork" clean_restart $testfile if { ![runto main] } then { fail "run to main" diff --git a/gdb/testsuite/gdb.base/disp-step-vfork.c b/gdb/testsuite/gdb.base/step-over-vfork.c similarity index 100% rename from gdb/testsuite/gdb.base/disp-step-vfork.c rename to gdb/testsuite/gdb.base/step-over-vfork.c