From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33490 invoked by alias); 1 Jun 2015 11:17:51 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 33451 invoked by uid 89); 1 Jun 2015 11:17:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f54.google.com Received: from mail-pa0-f54.google.com (HELO mail-pa0-f54.google.com) (209.85.220.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 01 Jun 2015 11:17:49 +0000 Received: by padjw17 with SMTP id jw17so34917887pad.2 for ; Mon, 01 Jun 2015 04:17:47 -0700 (PDT) X-Received: by 10.70.103.230 with SMTP id fz6mr40047604pdb.1.1433157467211; Mon, 01 Jun 2015 04:17:47 -0700 (PDT) Received: from [127.0.0.1] (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id bx8sm14259993pab.38.2015.06.01.04.17.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 04:17:46 -0700 (PDT) Message-ID: <556C3F54.2060502@gmail.com> Date: Mon, 01 Jun 2015 11:17:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH 0/6] Use PTRACE_GETREGSET and PTRACE_SETREGSET in arm-linux-nat.c References: <1432822816-32327-1-git-send-email-yao.qi@linaro.org> In-Reply-To: <1432822816-32327-1-git-send-email-yao.qi@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00000.txt.bz2 On 28/05/15 15:20, Yao Qi wrote: > This patch series is to let GDB arm-linux-nat.c use ptrace commands > PTRACE_GETREGSET and PTRACE_SETREGSET if linux kernel supports. > > Patch #1 and #2 are factoring out macros and variables into more > common files. Patch #3 checks whether PTRACE_GETREGSET is supported by > linux kernel. Patch #4 - #6 use PTRACE_{G,S}ETREGSET ptrace commands > to fetch and store general purpose registers, FP registers and VFP > registers. > > The whole test series are tested on x86_64-linux and arm-linux (with > PTRACE_GETREGSET and without PTRACE_GETREGSET kernel support respectively). > > After these patches, arm-linux-nat.c is similar to aarch64-linux-nat.c > in the aspect of fetching and storing registers. It paves the way for > multi-arch support in aarch64 gdb (aarch64 gdb can do native debugging > for arm program), which is the motivation of this patch series. I removed " == 1" from the condition, as suggested by Doug, and pushed these patches in. -- Yao (齐尧)