This is the mail archive of the
mailing list for the GDB project.
Re: gdb built from gcc 4.6.1 has some crash problem
ä 2011/10/21 8:41, Asmwarrior åé:
Hi, all. Just for a record.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".
This reason that gdb crash on WinXP build from gcc 4.6.x can be found here:
When building gdb with "-omit-frame-pointer" disabled, gdb works well.
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.
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?)
ollydbg from codeblocks' forum