1 Nov 2002 02:32
why is gdb 5.2 so slow
wim delvaux <wim.delvaux <at> adaptiveplanet.com>
2002-11-01 01:32:19 GMT
2002-11-01 01:32:19 GMT
I have been working with gdb 4.xx for years. because of the dynamic library breakpoint handing I moved to 5.2 only to find it VERY slow. I wrote this mail because I just had to kill gdb because it consumed 100 % cpu for MINUTES without doing anything usefull. I run debian (testing version with the latests versions) I have currently installed 5.2.cvs 2002081. Kernel version 2.4.18 I must admin that I do not have the fastest workhorse imaginable (a PIII 800) but that used to be no problem. I also sometimes use ddd 3.1 with gdb and again in the 4-version I had no problem, executing was crips, debugging (almost) fun. Now it skips breakpoints, takes ages to skip to the next statement, sometimes does not even want to stop (because it refers to some missing thread or something). Only killing is the solution. PLEASE help me out here !!!! W
Daniel, humor me here ...
GDB, to implement a thread-hop (step a single thread over a breakpoint)
with something like (with a Linux Kernel):
- gdb is notifed of a thread stopped on a breakpoint (wait), call this
the `current thread'
.
> GDB is either doing this very inefficiently (a lot more than the above)
> or there are some straightforward performance tweaks (step out of
> range?). It could also turn out, though, that the above is as good as
> it gets
RSS Feed