From patchwork Tue Dec 15 16:08:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 10017 Received: (qmail 53298 invoked by alias); 15 Dec 2015 16:08:27 -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 53280 invoked by uid 89); 15 Dec 2015 16:08:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pf0-f177.google.com Received: from mail-pf0-f177.google.com (HELO mail-pf0-f177.google.com) (209.85.192.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 15 Dec 2015 16:08:17 +0000 Received: by mail-pf0-f177.google.com with SMTP id u66so6946218pfb.3 for ; Tue, 15 Dec 2015 08:08:17 -0800 (PST) X-Received: by 10.98.14.27 with SMTP id w27mr35501971pfi.50.1450195695183; Tue, 15 Dec 2015 08:08:15 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id k85sm3194444pfb.59.2015.12.15.08.08.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Dec 2015 08:08:14 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Tweak gdb.trace/ftrace.exp for aarch64 Date: Tue, 15 Dec 2015 16:08:06 +0000 Message-Id: <1450195686-18310-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes Some tests are skipped on aarch64 unexpectedly because arg0exp isn't set. This patch is to set arg0exp to "$x0" for aarch64. I'll push it in. gdb/testsuite: 2015-12-15 Yao Qi * gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target is aarch64*-*-*. --- gdb/testsuite/gdb.trace/ftrace.exp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/testsuite/gdb.trace/ftrace.exp b/gdb/testsuite/gdb.trace/ftrace.exp index 4c81578..0772aa5 100644 --- a/gdb/testsuite/gdb.trace/ftrace.exp +++ b/gdb/testsuite/gdb.trace/ftrace.exp @@ -243,6 +243,8 @@ if [is_amd64_regs_target] { set arg0exp "\$rdi" } elseif [is_x86_like_target] { set arg0exp "*(int *) (\$ebp + 8)" +} elseif { [istarget "aarch64*-*-*"] } { + set arg0exp "\$x0" } else { set arg0exp "" }