From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2714 invoked by alias); 8 Jul 2015 16:10:40 -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 2200 invoked by uid 89); 8 Jul 2015 16:10:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-HELO: mail-pd0-f182.google.com Received: from mail-pd0-f182.google.com (HELO mail-pd0-f182.google.com) (209.85.192.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 08 Jul 2015 16:10:34 +0000 Received: by pddu5 with SMTP id u5so60673663pdd.3 for ; Wed, 08 Jul 2015 09:10:32 -0700 (PDT) X-Received: by 10.70.134.133 with SMTP id pk5mr22097799pdb.133.1436371832856; Wed, 08 Jul 2015 09:10:32 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id do3sm2990906pbb.5.2015.07.08.09.10.28 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 08 Jul 2015 09:10:32 -0700 (PDT) From: Yao Qi To: Pierre Langlois Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 2/8] [AArch64] Refactor aarch64_make_stub_cache References: <1436273518-5959-1-git-send-email-pierre.langlois@arm.com> <1436273518-5959-3-git-send-email-pierre.langlois@arm.com> Date: Wed, 08 Jul 2015 16:10:00 -0000 In-Reply-To: <1436273518-5959-3-git-send-email-pierre.langlois@arm.com> (Pierre Langlois's message of "Tue, 7 Jul 2015 13:51:52 +0100") Message-ID: <86y4iqmxzi.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: 2015-07/txt/msg00230.txt.bz2 Pierre Langlois writes: > static struct aarch64_prologue_cache * > -aarch64_make_stub_cache (struct frame_info *this_frame) > +aarch64_make_stub_cache (struct frame_info *this_frame, void **this_cach= e) > { We need comments on this function, about its arguments and return value. > - int reg; > struct aarch64_prologue_cache *cache; > - CORE_ADDR unwound_fp; > + > + if (*this_cache) if (*this_cache !=3D NULL) > + return *this_cache; OK with these changes. --=20 Yao (=E9=BD=90=E5=B0=A7)