This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Slowdown of the response from the command line?
- From: Chris Sutcliffe <ir0nh34d at gmail dot com>
- To: gdb at sourceware dot org
- Date: Thu, 4 Mar 2010 06:21:06 -0500
- Subject: Re: Slowdown of the response from the command line?
- References: <9a806f981002251623w62282343i4553def7df4404ab@mail.gmail.com> <m3fx4noqew.fsf@fleche.redhat.com> <4B8F5FC0.4010103@gmail.com>
Hi Asmwarrior,
> Today, I have download the latest snapshot of gdb from:
> ftp://sourceware.org/pub/gdb/snapshots/current/gdb-7.1.50.20100304.tar.bz2
> And I build gdb.exe(I use TDM GCC 4.4.1 mingw32 on windowsXP) with expat
> enabled. Too bad, I even can't start debugging, when I start debugging, I
> always get the gdb.exe crashed.
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.
> If I can remember, the gdb.exe built from snapshot of 20100302, 20100301
> always get crashed on startup either.
What do you see when gdb crashes?
> I would prefer some gdb gurus can help. Thanks.
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'.
Cheers!
Chris
--
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d