于 2011/10/21 8:41, Asmwarrior 写道:
> Hi, all. Just for a record.
>
> This reason that gdb crash on WinXP build from gcc 4.6.x can be found here:
>
> http://lists.gnu.org/archive/html/qemu-devel/2011-10/msg02462.html
>
> When building gdb with "-omit-frame-pointer" disabled, gdb works well.
It's strange that -O2 enables "-fomit-frame-pointer", but -Os doesn't.
Because I build gdb with "-Os" to work well, but gdb will also crash
when built with "-Os -fomit-frame-pointer".
>
> Also, Kai Tietz supplies a patch to solve this problem. (I'm not sure
> how the patch works, does it just disable the -omit-frame-pointer on
> I386 for mingw?)
This patch can only be used for trunk (4.7), but no gcc4.6 branch. I
don't know whether there is another better method to solve the issue.
>
>
> asmwarrior
> ollydbg from codeblocks' forum
--
Best Regards,
xunxun
|