On 12/24/2010 04:21 PM, Yao Qi wrote: > Patch 1 is about fixing GDB analyze i386 prologue for insns and/add, > which are part of i386 prologue, but GDB can't handle. Here is a prologue generated by GCC, instructions on [1] can't be handled by GDB so far. This patch is to handle them in prologue parsing. push %ebp mov %esp,%ebp and $0xfffffff0,%esp // <---- [1] add $0xffffff80,%esp // <---- [1] mov %gs:0x14,%eax mov %eax,0x7c(%esp) xor %eax,%eax lea 0x54(%esp),%eax Note that `and' instruction, for alignment, is not a must in prologue. My knowledge on i386 prologue is very limited and GCC i386 prologue generate is too complicated to understand for me, so I am not pretty sure on this patch. I send it out, and your comments are appreciated. -- Yao Qi