From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16073 invoked by alias); 24 Dec 2010 09:15:15 -0000 Received: (qmail 16060 invoked by uid 22791); 24 Dec 2010 09:15:13 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Dec 2010 09:15:08 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 5C08A1800482; Fri, 24 Dec 2010 10:15:04 +0100 (CET) X-Auth-Info: Nv9XfvGGTNCOvzdhtrSMs1+Hc6Jbc0eeRvg3yoY1Zd0= Received: from linux.local (p508B17B6.dip.t-dialin.net [80.139.23.182]) by mail.mnet-online.de (Postfix) with ESMTPA id D65EF1C00300; Fri, 24 Dec 2010 10:15:04 +0100 (CET) Received: by linux.local (Postfix, from userid 501) id 0F43A1E52EC; Fri, 24 Dec 2010 10:15:02 +0100 (CET) From: Andreas Schwab To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [patch i386, 0/2] skip insns generated by -fstack-protector References: <4D145811.4060805@codesourcery.com> <4D145B02.8030507@codesourcery.com> X-Yow: I'm in a twist contest!! I'm in a bathtub! It's on Mars!! I'm in tip-top condition! Date: Fri, 24 Dec 2010 11:28:00 -0000 In-Reply-To: <4D145B02.8030507@codesourcery.com> (Yao Qi's message of "Fri, 24 Dec 2010 16:34:10 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-12/txt/msg00456.txt.bz2 Yao Qi writes: > @@ -1332,24 +1333,71 @@ i386_analyze_frame_setup (struct gdbarch *gdbarch, > if (limit <= pc) > return limit; > > - /* Check for stack adjustment > + /* GCC may generate `and' instruction in front of stack adjustment for > + stack alignment. Check for stack alignment, and skip it if any, > + > + and $0xfffffff0,%esp > + > + The change of ESP caused by this instruction is computed a little bit > + different here, because we can't get value of offset from > + instruction itself. We simulate the execution of this in struction s/in struction/instruction/ Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."