From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25258 invoked by alias); 6 Aug 2008 18:04:45 -0000 Received: (qmail 25240 invoked by uid 22791); 6 Aug 2008 18:04:44 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 18:03:49 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id m76I3hkw010689; Wed, 6 Aug 2008 20:03:43 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id m76I3geR020710; Wed, 6 Aug 2008 20:03:42 +0200 (CEST) Date: Wed, 06 Aug 2008 18:04:00 -0000 Message-Id: <200808061803.m76I3geR020710@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: hjl.tools@gmail.com CC: gdb-patches@sourceware.org In-reply-to: <6dc9ffc80808061007o7f35f10etbd136be66ab91380@mail.gmail.com> (hjl.tools@gmail.com) Subject: Re: PING PATCH: Update x86 stack align analyzer References: <6dc9ffc80808061007o7f35f10etbd136be66ab91380@mail.gmail.com> 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 X-SW-Source: 2008-08/txt/msg00126.txt.bz2 > Date: Wed, 6 Aug 2008 10:07:06 -0700 > From: "H.J. Lu" > > PING. I'll try to look at it tonight. > H.J. > On Wed, Jul 30, 2008 at 2:11 PM, H.J. Lu wrote: > > Gcc 4.4 revision 138335: > > > > http://gcc.gnu.org/ml/gcc-cvs/2008-07/msg01048.html > > > > introduced new ways to align stack. This patch teaches gdb how to > > recognize the new stack prologue. OK for trunk? > > > > Please CC me since I am not on the gdb-patches mailing list. > > > > Thanks. > > > > > > H.J. > > ---- > > 2008-07-30 Xuepeng Guo > > H.J. Lu > > > > * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg. > > (amd64_init_frame_cache): Initialize saved_sp_reg. > > (amd64_analyze_stack_align): New. > > (amd64_analyze_prologue): Call it. > > (amd64_frame_cache): Try to use saved_sp_reg if frame is invalid. > > > > * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to > > AMD64_R14_REGNUM. > > > > * i386-tdep.c (i386_frame_cache): Remove stack_align. Add > > saved_sp_reg. > > (i386_alloc_frame_cache): Remove stack_align. Initialize > > saved_sp_reg to I386_ESP_REGNUM. > > (i386_analyze_stack_align): Rewrite. > > (i386_frame_cache): Use saved_sp_reg only if frame is invalid. > > >