From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14069 invoked by alias); 6 Aug 2008 17:08:09 -0000 Received: (qmail 14056 invoked by uid 22791); 6 Aug 2008 17:08:09 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 17:07:09 +0000 Received: by nf-out-0910.google.com with SMTP id h3so4523nfh.48 for ; Wed, 06 Aug 2008 10:07:06 -0700 (PDT) Received: by 10.210.126.5 with SMTP id y5mr2854033ebc.29.1218042426607; Wed, 06 Aug 2008 10:07:06 -0700 (PDT) Received: by 10.210.66.15 with HTTP; Wed, 6 Aug 2008 10:07:06 -0700 (PDT) Message-ID: <6dc9ffc80808061007o7f35f10etbd136be66ab91380@mail.gmail.com> Date: Wed, 06 Aug 2008 17:08:00 -0000 From: "H.J. Lu" To: GDB Subject: PING PATCH: Update x86 stack align analyzer MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00122.txt.bz2 PING. 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. >