This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Slowdown of the response from the command line?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]