From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1878 invoked by alias); 21 Oct 2011 03:04:09 -0000 Received: (qmail 1869 invoked by uid 22791); 21 Oct 2011 03:04:08 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_DB,TW_NX,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-pz0-f49.google.com (HELO mail-pz0-f49.google.com) (209.85.210.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Oct 2011 03:03:53 +0000 Received: by pzk32 with SMTP id 32so9638043pzk.8 for ; Thu, 20 Oct 2011 20:03:53 -0700 (PDT) Received: by 10.68.35.1 with SMTP id d1mr4773309pbj.63.1319166233285; Thu, 20 Oct 2011 20:03:53 -0700 (PDT) Received: from [192.168.1.3] ([112.94.251.175]) by mx.google.com with ESMTPS id jm5sm25410417pbc.1.2011.10.20.20.03.49 (version=SSLv3 cipher=OTHER); Thu, 20 Oct 2011 20:03:51 -0700 (PDT) Message-ID: <4EA0E112.7090903@gmail.com> Date: Fri, 21 Oct 2011 09:03:00 -0000 From: xunxun User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110929 Thunderbird/7.0 MIME-Version: 1.0 To: Asmwarrior CC: Chris Sutcliffe , gdb@sourceware.org, MinGW Users List , Kai Tietz Subject: Re: gdb built from gcc 4.6.1 has some crash problem References: <4E94471F.3010609@gmail.com> <4E94E274.7030803@gmail.com> <4E94E6CE.5060603@gmail.com> <4EA0BF9F.7070203@gmail.com> In-Reply-To: <4EA0BF9F.7070203@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00166.txt.bz2 于 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