From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126589 invoked by alias); 23 Jun 2015 13:05:53 -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 126580 invoked by uid 89); 23 Jun 2015 13:05:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f172.google.com Received: from mail-pd0-f172.google.com (HELO mail-pd0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 23 Jun 2015 13:05:51 +0000 Received: by pdbki1 with SMTP id ki1so7091307pdb.1 for ; Tue, 23 Jun 2015 06:05:49 -0700 (PDT) X-Received: by 10.68.136.42 with SMTP id px10mr69805062pbb.19.1435064749857; Tue, 23 Jun 2015 06:05:49 -0700 (PDT) Received: from [127.0.0.1] (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id nw8sm23294136pdb.30.2015.06.23.06.05.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 06:05:48 -0700 (PDT) Message-ID: <558959A4.6050003@gmail.com> Date: Tue, 23 Jun 2015 13:05:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH] Convert have_ptrace_getregset to a tri-state boolean References: <1434551008-1013-1-git-send-email-yao.qi@linaro.org> In-Reply-To: <1434551008-1013-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/msg00462.txt.bz2 On 17/06/15 15:23, Yao Qi wrote: > gdb: > > 2015-06-17 Yao Qi > > * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): > Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly. > (amd64_linux_store_inferior_registers): Likewise. > * arm-linux-nat.c (fetch_fpregister): Likewise. > (fetch_fpregs, store_fpregister): Likewise. > (store_fpregister, store_fpregs): Likewise. > (fetch_register, fetch_regs): Likewise. > (store_register, store_regs): Likewise. > (fetch_vfp_regs, store_vfp_regs): Likewise. > (arm_linux_read_description): Check have_ptrace_getregset is > TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE > or TRIBOOL_FALSE. > * i386-linux-nat.c (fetch_xstateregs): Check > have_ptrace_getregset is not TRIBOOL_TRUE. > (store_xstateregs): Likewise. > * linux-nat.c (have_ptrace_getregset): Change its type to > enum tribool. > * linux-nat.h (tribool): New enum. > * x86-linux-nat.c (x86_linux_read_description): Use enum tribool. > Check whether have_ptrace_getregset is TRIBOOL_TRUE. I've pushed it in. -- Yao (齐尧)