From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13868 invoked by alias); 6 Dec 2011 05:47:53 -0000 Received: (qmail 13858 invoked by uid 22791); 6 Dec 2011 05:47:52 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_NJABL_PROXY,TW_DB,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Dec 2011 05:47:39 +0000 Received: by iapp10 with SMTP id p10so7979420iap.0 for ; Mon, 05 Dec 2011 21:47:38 -0800 (PST) Received: by 10.50.196.137 with SMTP id im9mr13510364igc.32.1323150458382; Mon, 05 Dec 2011 21:47:38 -0800 (PST) Received: from [192.168.1.102] ([218.109.113.216]) by mx.google.com with ESMTPS id eb23sm85452421ibb.2.2011.12.05.21.47.35 (version=SSLv3 cipher=OTHER); Mon, 05 Dec 2011 21:47:36 -0800 (PST) Message-ID: <4EDDAD62.9000103@gmail.com> Date: Tue, 06 Dec 2011 10:34:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tom Tromey CC: gdb-patches@sourceware.org Subject: Re: [patch] avoid the crash of gdb+pretty printer on initialized local variables References: <4ED379D8.4060808@gmail.com> <4ED8534D.2050100@gmail.com> <4EDAD0B3.80505@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00162.txt.bz2 On 2011-12-6 5:44, Tom Tromey wrote: >>>>>> ">" == ext asmwarrior writes: > > Tom> I forget, something to do with not using the right gcc flag? > >>> My app was build with -O0 and -g, no extra flag is used. > > I mean a missing flag when building gdb. I vaguely recall a need for > -fno-omit-frame-pointer, and that without this, gdb exceptions cause > crashes. > > Tom Hi, Tom, thanks. Yes, gdb build under mingw should have -fno-omit-frame-pointer flag, otherwise, it will crash. I forget to mention that My gdb was build with -O0 and -g, so I think no optimization was used in building gdb. The problem is that gdb still crash when it try to pretty-print the uninitialized local variables. asmwarrior ollydbg from codeblocks' forum