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?


On Thu, Mar 4, 2010 at 7:21 PM, Chris Sutcliffe <ir0nh34d@gmail.com> 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!!!


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