From: Keir Fraser Subject: Re: [PATCH] x86: slightly improve stack trace on debug builds Date: Tue, 25 Sep 2012 18:06:51 +0100 Message-ID: References: <5061F5D7020000780009DC03@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5061F5D7020000780009DC03@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 25/09/2012 17:20, "Jan Beulich" wrote: >> Lol, how does your brain work this way? It took me 15 minutes to decode this >> to something like (also I added range checks on ESP_BEFORE_EXCEPTION(regs), >> what do you think?): > > Sorry for this - just wanted to avoid having the condition evaluated > (and spelled out) twice (and it took me a minute at most to find this > iterate-at-most-twice solution). It's the kind of code that is definitely easier to write than to read. ;-)