From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101778 invoked by alias); 26 Jan 2016 14:09:26 -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 101762 invoked by uid 89); 26 Jan 2016 14:09:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=qiyaoltc@gmail.com, qiyaoltcgmailcom X-HELO: mail-pa0-f68.google.com Received: from mail-pa0-f68.google.com (HELO mail-pa0-f68.google.com) (209.85.220.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 26 Jan 2016 14:09:24 +0000 Received: by mail-pa0-f68.google.com with SMTP id gi1so8012965pac.2 for ; Tue, 26 Jan 2016 06:09:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=K5sk18tgo8NZDxoM38JCk6rtPTxDImxRhc5hz7a9aJM=; b=CzvCE9r8X9R582nEzkYc/TkkUDH8RMpLk6ljiO+H1lGnm4d2j//SF5WM05HP3i4k/s eNcAkRTJ6RzN8mlxM+5lQB+z5TbVW0PlKeRcshxYfUesCMgc7osIEW3e/OoSOypsxFpC 94YC4LQpAS3f8xQTNAaeGe9KzE2AVebhu9QaR5h1aVf3En0YHYc9weScla3je0ftgDTt tm+UaXrA2uXa1KXj1LFHvmRjZ4jGgJCE9BRdIx++QcF+cRI1skqSPgkpCpoz0cpZRVlm LrnbZiKz2ZtxV/dVyiJKWAws3VYd8I9FWIEwMX6gX7XzvOnmZGtp8s+forzNxdsNQsnA GLNg== X-Gm-Message-State: AG10YORNDHXXFRqVcLwzbbfjGl6tGawJRfBUa3jepSbT/rJOWSGcjI/nB6NrGznacEezqw== X-Received: by 10.66.237.66 with SMTP id va2mr34342949pac.87.1453817362569; Tue, 26 Jan 2016 06:09:22 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id s13sm2250013pfi.12.2016.01.26.06.09.20 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 26 Jan 2016 06:09:21 -0800 (PST) From: Yao Qi To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 0/2] Remove argument pc in get_next_pcs References: <1452851849-24127-1-git-send-email-yao.qi@linaro.org> Date: Tue, 26 Jan 2016 14:09:00 -0000 In-Reply-To: <1452851849-24127-1-git-send-email-yao.qi@linaro.org> (Yao Qi's message of "Fri, 15 Jan 2016 09:57:27 +0000") Message-ID: <868u3cqvp1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00656.txt.bz2 Yao Qi writes: > Hi, > get_next_pcs in struct linux_target_ops has two arguments, PC and > REGCACHE. Since PC can be got from REGCACHE, PC is redundant, so this > patch series remove it in various places. After the removal, PC is > got from regcache via regcache_read_pc, so patch #1 uses > regcache_read_pc out of *the_low_target.get_next_pcs. Then, patch #2 > removes PC arguments and PC can be got inside the implementations of > get_next_pcs via regcache_read_pc. > > Regression tested on arm-linux. These two patches are pushed in. --=20 Yao (=E9=BD=90=E5=B0=A7)