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

Yao Qi yao@codesourcery.com
Fri Dec 24 08:42:00 GMT 2010


GDB doesn't handle insns for stack protector on i386.  These two patches 
are drafted to address this.

Patch 1 is about fixing GDB analyze i386 prologue for insns and/add, 
which are part of i386 prologue, but GDB can't handle.

Patch 2 is about handling i386 stack protector insns during prologue 
analysis.  Without patch 1, patch 2 doesn't work in some cases.

Regression tested on i686-pc-linux-gnu with -fstack-protector.  These 
failures are fixed,

-FAIL: gdb.mi/gdb792.exp: create var for class A
-FAIL: gdb.mi/gdb792.exp: list children of class A
-FAIL: gdb.mi/gdb792.exp: list children of A.public
-FAIL: gdb.mi/gdb792.exp: list children of A.private
-FAIL: gdb.mi/gdb792.exp: list children of A.protected
-FAIL: gdb.mi/gdb792.exp: list children of A.protected.b
-FAIL: gdb.mi/gdb792.exp: list children of A.protected.b.public
-FAIL: gdb.mi/gdb792.exp: list children of A.protected.b.private
-FAIL: gdb.mi/gdb792.exp: create var for class C which has baseclass A
-FAIL: gdb.mi/gdb792.exp: list children of class C

-- 
Yao Qi



More information about the Gdb-patches mailing list