* Re: Slowdown of the response from the command line?
2010-03-04 11:21 ` Chris Sutcliffe
@ 2010-03-04 12:01 ` asm warrior
2010-03-04 14:12 ` asm warrior
2010-03-05 2:45 ` Asm_gmail
2 siblings, 0 replies; 9+ messages in thread
From: asm warrior @ 2010-03-04 12:01 UTC (permalink / raw)
To: Chris Sutcliffe; +Cc: gdb
On Thu, Mar 4, 2010 at 7:21 PM, Chris Sutcliffe <ir0nh34d@gmail.com> wrote:
> 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:
Thanks, ironhead, I will try it right now.
>
> ftp://sourceware.org/pub/gdb/snapshots/branch/
>
> I've been using them to try and get Python working for MinGW.
so, the latest branch you built works? that's a great news.
>
>> 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?
>
When the gdb crashed, these is a Messagebox, and saying some error.
sorry I can't remember all because I've done that in my lab (I will
report it tomorrow when I return to my office), but now I'm at home.
So, now, I will download a 7.0.90 branch and build it again and test
it.
>> 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
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slowdown of the response from the command line?
2010-03-04 11:21 ` Chris Sutcliffe
2010-03-04 12:01 ` asm warrior
@ 2010-03-04 14:12 ` asm warrior
2010-03-05 2:13 ` Chris Sutcliffe
2010-03-05 2:45 ` Asm_gmail
2 siblings, 1 reply; 9+ messages in thread
From: asm warrior @ 2010-03-04 14:12 UTC (permalink / raw)
To: Chris Sutcliffe; +Cc: gdb
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!!!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slowdown of the response from the command line?
2010-03-04 14:12 ` asm warrior
@ 2010-03-05 2:13 ` Chris Sutcliffe
0 siblings, 0 replies; 9+ messages in thread
From: Chris Sutcliffe @ 2010-03-05 2:13 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slowdown of the response from the command line?
2010-03-04 11:21 ` Chris Sutcliffe
2010-03-04 12:01 ` asm warrior
2010-03-04 14:12 ` asm warrior
@ 2010-03-05 2:45 ` Asm_gmail
2 siblings, 0 replies; 9+ messages in thread
From: Asm_gmail @ 2010-03-05 2:45 UTC (permalink / raw)
To: Chris Sutcliffe; +Cc: gdb
On 2010-3-4 19:21, Chris Sutcliffe wrote:
>> 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?
>
>
When gdb.exe(build from the /current snapshot 20100304) crashes, a
standard windows message dialog jumps says:
gdb.exe has encountered a problem and needs to close. we are sorry for
the inconvenience.....
And here is my debuglog from codeblocks:
-------------------------------------------------------------------------------------------------
Command-line: D:\MinGW\bin\gdb.exe -nx -fullname -quiet -args bin/ptest.exe
Working dir : F:\cb_svn\src\plugins\codecompletion\parser\ptest\
> set prompt >>>>>>cb_gdb:
Reading symbols from
F:\cb_svn\src\plugins\codecompletion\parser\ptest/bin/ptest.exe...
done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.1.50.20100304
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor intel
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source D:\Program
Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory F:/cb_svn/src/plugins/codecompletion/parser/ptest/
>>>>>>cb_gdb:
> directory F:/cb_svn/src/plugins/codecompletion/parser/
>>>>>>cb_gdb:
> break "F:/cb_svn/src/plugins/codecompletion/parser/parserthread.cpp:450"
Breakpoint 2 at 0x402d8e: file
F:\cb_svn\src\plugins\codecompletion\parser\parserthread.cpp, line 450.
>>>>>>cb_gdb:
> run
-------------------------------------------------------------------------------------------------
after showing "run", gdb.exe crashes.
> I'll take a look at producing a profiling gdb this weekend and I'll
> let you know how I make out.
>
> Cheers!
>
> Chris
>
Thank you very much!!
^ permalink raw reply [flat|nested] 9+ messages in thread