From patchwork Wed Sep 16 14:03:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 8725 Received: (qmail 85419 invoked by alias); 16 Sep 2015 14:03:31 -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 85405 invoked by uid 89); 16 Sep 2015 14:03:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f180.google.com Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com) (209.85.212.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 16 Sep 2015 14:03:29 +0000 Received: by wiclk2 with SMTP id lk2so72588962wic.1 for ; Wed, 16 Sep 2015 07:03:26 -0700 (PDT) X-Received: by 10.180.23.71 with SMTP id k7mr19058506wif.11.1442412206074; Wed, 16 Sep 2015 07:03:26 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com ([195.154.84.196]) by smtp.gmail.com with ESMTPSA id jq10sm1509856wjc.40.2015.09.16.07.03.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Sep 2015 07:03:25 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Don't skip gdb.asm/asm-source.exp on aarch64 Date: Wed, 16 Sep 2015 15:03:24 +0100 Message-Id: <1442412204-23473-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes This patch adds gdb.asm/aarch64.inc, so asm-source.exp isn't skipped on aarch64 any more. I'll push it in. gdb/testsuite: 2015-09-16 Yao Qi * gdb.asm/asm-source.exp: Set asm-arch for aarch64*-*-* target. * gdb.asm/aarch64.inc: New file. --- gdb/testsuite/gdb.asm/aarch64.inc | 34 ++++++++++++++++++++++++++++++++++ gdb/testsuite/gdb.asm/asm-source.exp | 3 +++ 2 files changed, 37 insertions(+) create mode 100644 gdb/testsuite/gdb.asm/aarch64.inc diff --git a/gdb/testsuite/gdb.asm/aarch64.inc b/gdb/testsuite/gdb.asm/aarch64.inc new file mode 100644 index 0000000..0144cdc --- /dev/null +++ b/gdb/testsuite/gdb.asm/aarch64.inc @@ -0,0 +1,34 @@ + comment "subroutine prologue" + .macro gdbasm_enter + stp x29, x30, [sp,#-32]! + mov x29, sp + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + ldp x29, x30, [sp],#32 + ret + .endm + + .macro gdbasm_call subr + bl \subr + .endm + + .macro gdbasm_several_nops + nop + nop + nop + nop + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + mov x8, #93 + svc 0 + .endm + + comment "crt0 startup" + .macro gdbasm_startup + mov x0, sp + .endm + diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 14a0f85..bd66c93 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -40,6 +40,9 @@ switch -glob -- [istarget] { "arm*-*-*" { set asm-arch arm } + "aarch64*-*-*" { + set asm-arch aarch64 + } "bfin-*-*" { set asm-arch bfin }