Discussion:
[Mingw-users] Debugging with GDB on Windows / MinGW is painfully slow
Eran Ifrah
2012-07-20 13:10:42 UTC
Permalink
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
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 ).

If I remove all the breakpoints and start the debugger, the debug session
starts in a reasonable manner (still very slow compare to Linux) ~45
seconds.
I can then place the breakpoints back and continue debugging.

However, the above workaround does not work if I need to debug one of the
shared libraries initialization code

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

For comparison: GDB 7.4 on my Ubuntu 12.04 starts the debugging session
under 5 seconds for the same application

Any advise?
--
Eran Ifrah
Author of the cross platform, open source C++ IDE: http://www.codelite.org
Earnie Boyd
2012-07-20 15:30:38 UTC
Permalink
Post by Eran Ifrah
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
in the past and can shed some light / provide some good tips on the matter.
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 ).
If I remove all the breakpoints and start the debugger, the debug session
starts in a reasonable manner (still very slow compare to Linux) ~45
seconds.
I can then place the breakpoints back and continue debugging.
However, the above workaround does not work if I need to debug one of the
shared libraries initialization code
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
For comparison: GDB 7.4 on my Ubuntu 12.04 starts the debugging session
under 5 seconds for the same application
Any advise?
I'll utter guesses since at this point I have no real idea. I'm going
to guess you might have better experience if your GDB process is a
64bit process assuming your Windows 7 is a 64 bit CPU.
--
Earnie
-- https://sites.google.com/site/earnieboyd
Eran Ifrah
2012-07-20 15:49:18 UTC
Permalink
On Fri, Jul 20, 2012 at 6:30 PM, Earnie Boyd
Post by Eran Ifrah
Post by Eran Ifrah
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
Post by Eran Ifrah
7 + MinGW, I decided to post it here - maybe someone else on this list
face
Post by Eran Ifrah
this issue
in the past and can shed some light / provide some good tips on the
matter.
Post by Eran Ifrah
When I debug my application which consists of many shared libraries
("dll"s,
Post by Eran Ifrah
around 35 - 40) and I have a breakpoint set in one of the shared
libraries
Post by Eran Ifrah
the startup time of gdb is *very* slow ( I am talking here about 10 mins
).
Post by Eran Ifrah
If I remove all the breakpoints and start the debugger, the debug session
starts in a reasonable manner (still very slow compare to Linux) ~45
seconds.
I can then place the breakpoints back and continue debugging.
However, the above workaround does not work if I need to debug one of the
shared libraries initialization code
MinGW 4.6.1 (TDM) 32 bit - I tried the official one 4.7 from MinGW with
no
Post by Eran Ifrah
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
For comparison: GDB 7.4 on my Ubuntu 12.04 starts the debugging session
under 5 seconds for the same application
Any advise?
I'll utter guesses since at this point I have no real idea. I'm going
to guess you might have better experience if your GDB process is a
64bit process assuming your Windows 7 is a 64 bit CPU.
Thank you, I will try and get my hands on a 64bit gdb executable and will
try it again

--
Post by Eran Ifrah
Earnie
-- https://sites.google.com/site/earnieboyd
------------------------------------------------------------------------------
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-users mailing list
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list
etiquette may cause your account to be moderated.
_______________________________________________
https://lists.sourceforge.net/lists/listinfo/mingw-users
--
Eran Ifrah
Author of the cross platform, open source C++ IDE: http://www.codelite.org
asmwarrior
2012-07-21 01:46:32 UTC
Permalink
Post by Eran Ifrah
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
in the past and can shed some light / provide some good tips on the matter.
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 ).
If I remove all the breakpoints and start the debugger, the debug session starts in a reasonable manner (still very slow compare to Linux) ~45 seconds.
I can then place the breakpoints back and continue debugging.
However, the above workaround does not work if I need to debug one of the shared libraries initialization code
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
For comparison: GDB 7.4 on my Ubuntu 12.04 starts the debugging session under 5 seconds for the same application
Any advise?
--
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.
You can try a recent gdb (mostly the gdb build from gdb cvs HEAD)

See this report of my test:
http://sourceware.org/ml/gdb-patches/2011-11/msg00141.html

Here are some messages about the same problem I posted some years ago:
http://mingw-users.1079350.n2.nabble.com/Mingw-gdb-pending-breakpoint-on-a-shared-dll-will-slow-downing-loading-time-td5328832.html
http://www.digipedia.pl/usenet/thread/12169/1915/
http://sourceware.org/ml/gdb/2010-07/msg00080.html

asmwarrior
asmwarrior
2012-07-21 02:36:45 UTC
Permalink
Post by asmwarrior
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.
You can try a recent gdb (mostly the gdb build from gdb cvs HEAD)
http://sourceware.org/ml/gdb-patches/2011-11/msg00141.html
http://mingw-users.1079350.n2.nabble.com/Mingw-gdb-pending-breakpoint-on-a-shared-dll-will-slow-downing-loading-time-td5328832.html
http://www.digipedia.pl/usenet/thread/12169/1915/
http://sourceware.org/ml/gdb/2010-07/msg00080.html
asmwarrior
I just checked, and see that the fix is committed in 2011-11-16
http://sourceware.org/ml/gdb-cvs/2011-11/msg00096.html

and the gdb 7.4 was branched in:2011-12-13
http://sourceware.org/ml/gdb-announce/2011/msg00005.html

So, I believe the fix should already in gdb 7.4, I'm not sure why you still have such issue. Maybe, it is not the one I mentioned.

asmwarrior
K. Frank
2012-07-21 03:38:41 UTC
Permalink
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.)
Post by asmwarrior
Post by Eran Ifrah
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.)
Post by asmwarrior
Post by Eran Ifrah
in the past and can shed some light / provide some good tips on the matter.
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.
Post by asmwarrior
Post by Eran Ifrah
...
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).
Post by asmwarrior
Post by Eran Ifrah
...
Any advise?
No, but if anybody gets this issue sorted out, I would love to hear
about it.
Post by asmwarrior
Post by Eran Ifrah
...
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.
Post by asmwarrior
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.
Post by asmwarrior
...
asmwarrior
Thanks for any updates on this problem.


K. Frank
asmwarrior
2012-07-21 04:59:30 UTC
Permalink
Post by K. Frank
As I mentioned above, my gdb version is 7.3.0.
Post by asmwarrior
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.
You can try my build of gdb CVS (32bit)
see:
http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000

asmwarrior
Eran Ifrah
2012-07-21 07:07:31 UTC
Permalink
Post by asmwarrior
Post by K. Frank
As I mentioned above, my gdb version is 7.3.0.
Post by asmwarrior
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.
You can try my build of gdb CVS (32bit)
http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000
Thanks. There is one (minor?) problem with your gdb: it seems to requires
python installation... and the binaries are quite huge
I prefer the current MinGW way packing things: everything in a single
directory and there is no need to alter 'PATH' not to mention that
python pollutes C:\Windows\ ... (and other places?), which makes it hard to
move around my working environment

On the bright side, your gdb seems to be the fastest from the all the gdb's
I have tested so far.
The thing that did the change was changing the workflow a littlet:

* start gdb
* break at main
* place pending breakpoints
* continue

as opposed to:

* start gdb
* place pending breakpoints
* continue

asmwarrior
Post by asmwarrior
------------------------------------------------------------------------------
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-users mailing list
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list
etiquette may cause your account to be moderated.
_______________________________________________
https://lists.sourceforge.net/lists/listinfo/mingw-users
--
Eran Ifrah
Author of the cross platform, open source C++ IDE: http://www.codelite.org
Eli Zaretskii
2012-07-21 08:09:17 UTC
Permalink
Date: Sat, 21 Jul 2012 10:07:31 +0300
the binaries are quite huge
They probably include debug info. Just strip them.
Eran Ifrah
2012-07-21 08:30:09 UTC
Permalink
Post by Eli Zaretskii
Date: Sat, 21 Jul 2012 10:07:31 +0300
the binaries are quite huge
They probably include debug info. Just strip them.
Yes, but this was not my main concern, I was more concerned about the
python dependency
I just gonna have to live with it :)
Post by Eli Zaretskii
------------------------------------------------------------------------------
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-users mailing list
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list
etiquette may cause your account to be moderated.
_______________________________________________
https://lists.sourceforge.net/lists/listinfo/mingw-users
--
Eran Ifrah
Author of the cross platform, open source C++ IDE: http://www.codelite.org
asmwarrior
2012-07-21 15:21:50 UTC
Permalink
Post by asmwarrior
Post by K. Frank
As I mentioned above, my gdb version is 7.3.0.
Post by asmwarrior
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.
You can try my build of gdb CVS (32bit)
http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000
Thanks. There is one (minor?) problem with your gdb: it seems to requires python installation... and the binaries are quite huge
I prefer the current MinGW way packing things: everything in a single directory and there is no need to alter 'PATH' not to mention that python pollutes C:\Windows\ ... (and other places?), which makes it hard to move around my working environment
Yes, the gdb build by me has dependency on python 2.7, but in-fact, you don't need to put python.exe's path in your PATH environment.
If I remember correctly, you can just copy "python27.dll" and the folder "Lib", and maybe some msvcrt.dll to your MinGW/bin, the gdb should work fine. And I believe that using this way, the whole gdb package should be portable. I mean the official python27.dll was build from MSVC, so you need some MS crt dlls, besides that, python27.dll will automatically search its own library named "Lib" in the same folder.
After such copying, you can safely uninstall your python distribution, because all you needed is copied to MinGW/bin.

I'm just a little lazy to package my build gdb with such python files.
Post by asmwarrior
On the bright side, your gdb seems to be the fastest from the all the gdb's I have tested so far.
* start gdb
* break at main
* place pending breakpoints
* continue
* start gdb
* place pending breakpoints
* continue
The above two method should not have many difference from my point of view, I know a little about how gdb handling "pending breakpoints", when a new dll loaded, gdb try to see the sources of the dll may matches the pending bps, so it mainly scan all the debug information in the dll. The more dll loaded, the more time you needed.

BTW: I usually debug codeblocks(which have 10+ plugins as dlls) under gdb, I see gdb works just fine. (start up quite soon when you have pending bps)

asmwarrior
Ruben Van Boxem
2012-07-21 15:25:36 UTC
Permalink
K. Frank
2012-07-21 15:24:15 UTC
Permalink
Hi asmwarrior!

Thanks for the link to your gdb build.
Post by asmwarrior
Post by K. Frank
As I mentioned above, my gdb version is 7.3.0.
Post by asmwarrior
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.
You can try my build of gdb CVS (32bit)
There's one point I'm not certain of:

I assume -- perhaps incorrectly -- that I will need a 64-bit build
of gdb to debug 64-bit executables. As I understand it, the
application being debugged runs in-process inside of gdb. Is
this true, or can I freely mix a 32-bit gdb with 64-bit applications
(and vice versa)?
Post by asmwarrior
http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000
asmwarrior
Thanks for your help.

K. Frank
asmwarrior
2012-07-21 15:32:09 UTC
Permalink
Post by K. Frank
I assume -- perhaps incorrectly -- that I will need a 64-bit build
of gdb to debug 64-bit executables. As I understand it, the
application being debugged runs in-process inside of gdb. Is
this true, or can I freely mix a 32-bit gdb with 64-bit applications
(and vice versa)?
I have no experience of 64bit gdb nor 64bit executables. All of my system/application is 32bit.
So, I can't say much, sorry.

If I remember correct, there are some 64bit gdb from qt/qtcreator's site.

asmwarrior

unknown
1970-01-01 00:00:00 UTC
Permalink
--14dae9340c49d9701e04c5589f94
Content-Type: text/plain; charset=UTF-8
Post by asmwarrior
On Sat, Jul 21, 2012 at 7:59 AM, asmwarrior <
Post by K. Frank
As I mentioned above, my gdb version is 7.3.0.
Post by asmwarrior
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.
You can try my build of gdb CVS (32bit)
http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000
Thanks. There is one (minor?) problem with your gdb: it seems to
requires python installation... and the binaries are quite huge
I prefer the current MinGW way packing things: everything in a single
directory and there is no need to alter 'PATH' not to mention that python
pollutes C:\Windows\ ... (and other places?), which makes it hard to move
around my working environment
Yes, the gdb build by me has dependency on python 2.7, but in-fact, you
don't need to put python.exe's path in your PATH environment.
If I remember correctly, you can just copy "python27.dll" and the folder
"Lib", and maybe some msvcrt.dll to your MinGW/bin, the gdb should work
fine. And I believe that using this way, the whole gdb package should be
portable. I mean the official python27.dll was build from MSVC, so you need
some MS crt dlls, besides that, python27.dll will automatically search its
own library named "Lib" in the same folder.
After such copying, you can safely uninstall your python distribution,
because all you needed is copied to MinGW/bin.
I'm just a little lazy to package my build gdb with such python files.
You can see here<https://github.com/rubenvb/MinGW-w64-build-scripts/blob/master/toolchain/scripts/python.sh>what's
needed for Python GDB. My
builds<http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/release>come
with python-enabled gdb too. Only the python27.dll and the lib/
directory inside "bin" is necessary for correct Qt and Qt Creator
functionality.

Ruben
Post by asmwarrior
On the bright side, your gdb seems to be the fastest from the all the
gdb's I have tested so far.
* start gdb
* break at main
* place pending breakpoints
* continue
* start gdb
* place pending breakpoints
* continue
The above two method should not have many difference from my point of
view, I know a little about how gdb handling "pending breakpoints", when a
new dll loaded, gdb try to see the sources of the dll may matches the
pending bps, so it mainly scan all the debug information in the dll. The
more dll loaded, the more time you needed.
BTW: I usually debug codeblocks(which have 10+ plugins as dlls) under gdb,
I see gdb works just fine. (start up quite soon when you have pending bps)
asmwarrior
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
--14dae9340c49d9701e04c5589f94
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable <div class="gmail_quote">2012/7/21 asmwarrior <span dir="ltr">&lt;<a href="mailto:***@gmail.com" target="_blank">***@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2012-7-21 15:07, Eran Ifrah wrote:<br> <div class="im">&gt;<br>
&gt;<br>
&gt; On Sat, Jul 21, 2012 at 7:59 AM, asmwarrior &lt;<a href="mailto:asmwarrior-***@public.gmane.org">asmwarrior-***@public.gmane.org</a> &lt;mailto:<a href="mailto:***@gmail.com">***@gmail.com</a>&gt;&gt; wrote:<br>

&gt;<br>
&gt;     On 2012-7-21 11:38, K. Frank wrote:<br>
&gt;     &gt; As I mentioned above, my gdb version is 7.3.0.<br>
&gt;     &gt;<br>
&gt;     &gt;&gt; &gt;You can try a recent gdb (mostly the gdb build from gdb cvs HEAD)<br>
&gt;     &gt; If anybody knows of a recent mingw or mingw-w64 build of gdb<br>
&gt;     &gt; that addresses this issue, please chime in.<br>
&gt;     &gt;<br>
&gt;     You can try my build of gdb CVS (32bit)<br>
&gt;     see:<br>
&gt;     <a href="http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000" target="_blank">http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000</a><br>
&gt;<br> </div>&gt; Thanks. There is one (minor?) problem with your gdb: it seems to requires python installation...  and the binaries are quite huge<br>
&gt; I prefer the current MinGW way packing things: everything in a single directory and there is no need to alter &#39;PATH&#39; not to mention that python pollutes C:\Windows\ ... (and other places?), which makes it hard to move around my working environment<br>

<br>
Yes, the gdb build by me has dependency on python 2.7, but in-fact, you don&#39;t need to put python.exe&#39;s path in your PATH environment.<br>
If I remember correctly, you can just copy &quot;python27.dll&quot; and the folder &quot;Lib&quot;, and maybe some msvcrt.dll to your MinGW/bin, the gdb should work fine. And I believe that using this way, the whole gdb package should be portable. I mean the official python27.dll was build from MSVC, so you need some MS crt dlls, besides that, python27.dll will automatically search its own library named &quot;Lib&quot; in the same folder.<br>

After such copying, you can safely uninstall your python distribution, because all you needed is copied to MinGW/bin.<br>
<br>
I&#39;m just a little lazy to package my build gdb with such python files.<br></blockquote><div><br>You can see <a href="https://github.com/rubenvb/MinGW-w64-build-scripts/blob/master/toolchain/scripts/python.sh">here</a> what&#39;s needed for Python GDB. <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/release">My builds</a> come with python-enabled gdb too. Only the python27.dll and the lib/ directory inside &quot;bin&quot; is necessary for correct Qt and Qt Creator functionality.<br>
<br>Ruben<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
&gt;<br>
&gt; On the bright side, your gdb seems to be the fastest from the all the gdb&#39;s I have tested so far.<br>
&gt; The thing that did the change was changing the workflow a littlet:<br>
&gt;<br>
&gt; * start gdb<br>
&gt; * break at main<br>
&gt; * place pending breakpoints<br>
&gt; * continue<br>
&gt;<br>
&gt; as opposed to:<br>
&gt;<br>
&gt; * start gdb<br>
&gt; * place pending breakpoints<br>
&gt; * continue<br>
<br>
The above two method should not have many difference from my point of view, I know a little about how gdb handling &quot;pending breakpoints&quot;, when a new dll loaded, gdb try to see the sources of the dll may matches the pending bps, so it mainly scan all the debug information in the dll. The more dll loaded, the more time you needed.<br>

<br>
BTW: I usually debug codeblocks(which have 10+ plugins as dlls) under gdb, I see gdb works just fine. (start up quite soon when you have pending bps)<br>
<div class="HOEnZb"><div class="h5"><br>
asmwarrior<br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today&#39;s security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Mingw-w64-public mailing list<br>
<a href="mailto:Mingw-w64-***@lists.sourceforge.net">Mingw-w64-***@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/mingw-w64-public" target="_blank">https://lists.sourceforge.net/lists/listinfo/mingw-w64-public</a><br>
</div></div></blockquote></div><br>

--14dae9340c49d9701e04c5589f94--
Loading...