From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32708 invoked by alias); 9 Dec 2016 09:27:28 -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 32625 invoked by uid 89); 9 Dec 2016 09:27:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=arm64, U*qiyaoltc, qiyaoltcgmailcom, qiyaoltc@gmail.com X-HELO: mail-wj0-f195.google.com Received: from mail-wj0-f195.google.com (HELO mail-wj0-f195.google.com) (209.85.210.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Dec 2016 09:27:25 +0000 Received: by mail-wj0-f195.google.com with SMTP id xy5so1485509wjc.1 for ; Fri, 09 Dec 2016 01:27:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=2fKG9k6MrQjpZgVx/8GZQr+sSpEKvqB7Sje8dzM6wwA=; b=Y/LcurBowOjnz2n7Lzma/En92tmJZbPyuvQa5FEux+8SEi7MJcr3Tqpujwe+0t6iD4 Oq3PrMz76FrT0PSmMstnrMDDGZq7CmADtNVWJKvpirPXdbySSgyUz6t7qD0wjgn5Uaw8 21HMxjvPAgGOD7vlUvyttHeconmfk8+tw6T9B0iJHfvA3J7+m0N0OTWGDBaFzmTCdE1X XqEpu8yAKyJ7CJ/YUTufvH8mCJ22HLf2xrSFtiYu/l9u1EFg1wjsu6RqcIYnNWdQ0iEp 5poYOeOolWpLZ+OryE0RTnGp5bpc8XP6AV/9WsW1nrC6Jq1CM6n4AqK2WVkXIqHmDCis CINQ== X-Gm-Message-State: AKaTC00BkMAv/UUkRrMpTt/vXr4s4QhubjzE5td4P1JUvq+Kry94zqW+bKg4ojU6j8bDFA== X-Received: by 10.194.115.226 with SMTP id jr2mr66314242wjb.75.1481275643642; Fri, 09 Dec 2016 01:27:23 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id l6sm19569080wmd.5.2016.12.09.01.27.20 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 09 Dec 2016 01:27:23 -0800 (PST) Date: Fri, 09 Dec 2016 09:27:00 -0000 From: Yao Qi To: Kees Cook Cc: "gdb-patches@sourceware.org" , Brian Murray , Matthias Klose Subject: Re: [PATCH] Fix PTRACE_GETREGSET failure for compat inferiors on arm64 Message-ID: <20161209092707.GB13661@E107787-LIN> References: <20161202214613.GA54717@beast> <20161202224952.panaxwmmrx4emord@localhost> <20161205102626.5bx5ylt6inrbtjs4@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00223.txt.bz2 On 16-12-05 08:06:06, Kees Cook wrote: > On Mon, Dec 5, 2016 at 2:26 AM, Yao Qi wrote: > > On 16-12-04 11:30:36, Kees Cook wrote: > >> Right, I was asking how the target description is built. I couldn't > >> determine where FPA was detected. > >> > > > > It is detected in arm-tdep.c:arm_gdbarch_init, which looks for feature > > org.gnu.gdb.arm.fpa, and set have_fpa_registers to 1 if this feature is > > found. > > Yup, that part I found. What sets org.gnu.gdb.arm.fpa? > The remote stub may know the architecture support FPA, and reply the target description with feature org.gnu.gdb.arm.fpa to GDB. -- Yao (齐尧)