From: Andreas Schwab <schwab@linux-m68k.org>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch i386, 0/2] skip insns generated by -fstack-protector
Date: Fri, 24 Dec 2010 11:28:00 -0000 [thread overview]
Message-ID: <m2zkrvedm1.fsf@whitebox.home> (raw)
In-Reply-To: <4D145B02.8030507@codesourcery.com> (Yao Qi's message of "Fri, 24 Dec 2010 16:34:10 +0800")
Yao Qi <yao@codesourcery.com> 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."
next prev parent reply other threads:[~2010-12-24 9:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-24 8:42 Yao Qi
2010-12-24 9:15 ` Yao Qi
2010-12-24 11:28 ` Andreas Schwab [this message]
2010-12-25 14:03 ` Yao Qi
2010-12-24 9:36 ` [patch i386, 2/2] " Yao Qi
2011-01-04 15:22 ` [PING patch i386, 0/2] " Yao Qi
2011-01-13 11:56 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2zkrvedm1.fsf@whitebox.home \
--to=schwab@linux-m68k.org \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox