This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch i386, 0/2] skip insns generated by -fstack-protector


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]