From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21254 invoked by alias); 4 Mar 2010 14:12:52 -0000 Received: (qmail 21243 invoked by uid 22791); 4 Mar 2010 14:12:51 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-gx0-f222.google.com (HELO mail-gx0-f222.google.com) (209.85.217.222) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Mar 2010 14:12:47 +0000 Received: by gxk22 with SMTP id 22so1074359gxk.4 for ; Thu, 04 Mar 2010 06:12:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.251.5 with SMTP id y5mr2477883ybh.48.1267711965388; Thu, 04 Mar 2010 06:12:45 -0800 (PST) In-Reply-To: <2bf229d31003040321w3ed171a6jf3f4369cb2596882@mail.gmail.com> References: <9a806f981002251623w62282343i4553def7df4404ab@mail.gmail.com> <4B8F5FC0.4010103@gmail.com> <2bf229d31003040321w3ed171a6jf3f4369cb2596882@mail.gmail.com> Date: Thu, 04 Mar 2010 14:12:00 -0000 Message-ID: <9a806f981003040612l47d60c6bu219cfa9da0f9404f@mail.gmail.com> Subject: Re: Slowdown of the response from the command line? From: asm warrior To: Chris Sutcliffe Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 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: 2010-03/txt/msg00029.txt.bz2 On Thu, Mar 4, 2010 at 7:21 PM, Chris Sutcliffe wrote: > > I'd recommend one of the 7.0.90.xxxx sources: > > ftp://sourceware.org/pub/gdb/snapshots/branch/ > > I've been using them to try and get Python working for MinGW. Hi, ironhead. Now, I have successfully build the gdb branch gdb-7.0.90.20100304.tar (it takes nearlly one and half an hour), and gdb.exe works fine, and there's no crash. thanks very much!!. I use these build environment( MSYS, tdm-gcc4.4.1-dw2 core and g++ package, others packages like binutilites and wapi were all downloaded from the Official Mingw sourceforge sites.) The new build branch 0304 gdb.exe still response slowly when showing a wxString value in watch window, but if I have not watches, it runs fast when doing "steps or step in ...". I use these command to build the gdb, I unzip the gdb source code in "/c/gdb/gdbbranch20100304/" and run the scrips command in "/c/gdb/obj/" and the generated file was installed to "/c/gdb/install" ../gdbbranch20100304/configure --prefix=/c/gdb/install --with-expat --without-included-gettext CFLAGS="-I/c/expat/install/include -static -L/c/expat/install/lib -O2 -w" make make install > > I'm no guru by any means, but in order to create a profiling gdb one > way is to specify CFLAGS at configuration time: > > $ CFLAGS="-pg" ../configure .... > > Once you have a gdb binary with profiling enabled, it should produce a > profile file (a.out if memory serves), which you can then view using > 'gprof a.out'. As you suggested, but I have failed using the -pg option. if I use these command: ../gdbbranch20100304/configure --prefix=/c/gdb/install --with-expat --without-included-gettext CFLAGS="-I/c/expat/install/include -static -L/c/expat/install/lib -O2 -w -g -pg" make make install I failed in the configure step, MSYS shells just hangs when checking the gcc system. I don't know why... any comments? Thanks!!!