From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29105 invoked by alias); 5 Mar 2010 02:13:26 -0000 Received: (qmail 29008 invoked by uid 22791); 5 Mar 2010 02:13:24 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Mar 2010 02:13:20 +0000 Received: by wwg30 with SMTP id 30so1185593wwg.0 for ; Thu, 04 Mar 2010 18:13:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.180.130 with SMTP id j2mr146040wem.86.1267755198275; Thu, 04 Mar 2010 18:13:18 -0800 (PST) In-Reply-To: <9a806f981003040612l47d60c6bu219cfa9da0f9404f@mail.gmail.com> References: <9a806f981002251623w62282343i4553def7df4404ab@mail.gmail.com> <4B8F5FC0.4010103@gmail.com> <2bf229d31003040321w3ed171a6jf3f4369cb2596882@mail.gmail.com> <9a806f981003040612l47d60c6bu219cfa9da0f9404f@mail.gmail.com> Date: Fri, 05 Mar 2010 02:13:00 -0000 Message-ID: <2bf229d31003041813q38eb11fcw73b0abccb2d902f2@mail.gmail.com> Subject: Re: Slowdown of the response from the command line? From: Chris Sutcliffe To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00034.txt.bz2 Hi Asmwarrior, >> 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? I'll take a look at producing a profiling gdb this weekend and I'll let you know how I make out. Cheers! Chris -- Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d