Hello Eran and asmwarrior!

I have seen something similar with a mingw-w64 build.

(I have taken the liberty of cross-posting this reply to the mingw-w64
list.)

On Fri, Jul 20, 2012 at 9:46 PM, asmwarrior <asmwarr...@gmail.com> wrote:
> On 2012-7-20 21:10, Eran Ifrah wrote:
>> Hello,
>>
>> I am not sure whether this issue is related to MinGW or to GDB.
>> Since I don't have this issue on Linux / Mac and it only happens on Windows 
>> 7 + MinGW, I decided to post it here - maybe someone else on this list face 
>> this issue

I am running a 64-bit mingw-w64 build on 64-bit windows 7, and see
slow gdb startup with Qt applications.  (I haven't tested whether
startup is also slow with simple non-Qt console programs.)

>> in the past and can shed some light / provide some good tips on the matter.
>>
>> Now to the actual problem:
>> When I debug my application which consists of many shared libraries ("dll"s, 
>> around 35 - 40) and I have a breakpoint set in one of the shared libraries
>> the startup time of gdb is *very* slow ( I am talking here about 10 mins ).

In my case I do not have pre-set breakpoints.

When I run gdb on a small Qt test program, (e.g. "gdb test.exe")
the gdb prompt appears essentially immediately, but when I then
type "run" it takes about three minutes for the test application to
actually launch (i.e., for the gui to appear).

Once I get past that slow startup, debugging seems to run normally.

>> ...
>> Some info about my environment:
>>
>> MinGW 4.6.1 (TDM) 32 bit - I tried the official one 4.7 from MinGW with no 
>> luck - the problem persists
>> GDB 7.05 (note that I tried all versions of gdbs available on MinGW SF 
>> download page, from 6.8.5 -> 7.4 with no luck)
>> Windows 7 64bit

In my case I am running:

   g++ (GCC) 4.7.0 20110829 (experimental)
   GNU gdb (GDB) 7.3.0.20110829-cvs

from a native 64-bit Ruben "personal build" of g++ 4.7.0, and
Qt 4.8.0-rc1.

(I don't have any reason to think the slow gdb startup is related
to Qt -- I just haven't bothered to test it on non-Qt applications.)

It is worth noting that this problem first showed up for me (or at
least became noticeably worse) recently -- I think the last time
I upgraded my compiler / Qt combination.  I don't recall, offhand,
the g++ build / gdb version that I had been using previously that
did not have the slow startup problem (or at least not as badly).

>> ...
>> Any advise?

No, but if anybody gets this issue sorted out, I would love to hear
about it.

>> ...
>> Eran Ifrah
>> Author of the cross platform, open source C++ IDE: http://www.codelite.org
>>
> Hi, Eran
>
> I meet such problem years before, but it was fixed in the gdb trunk months 
> ago.
> I'm not sure the mingw gdb official 7.4 have this fixed, but from my test, 
> the slow loading problem is already solved.

As I mentioned above, my gdb version is 7.3.0.

> You can try a recent gdb (mostly the gdb build from gdb cvs HEAD)

If anybody knows of a recent mingw or mingw-w64 build of gdb
that addresses this issue, please chime in.

> ...
> asmwarrior

Thanks for any updates on this problem.


K. Frank

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to