This is the mail archive of the gdb@sources.redhat.com 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]

5.1 extremely slow


Hi,

I've upgraded to 5.1.1 due to bugs in 4.x, but debugging almost any program is 
unbearably slow. I've attached some detailed debug output; here is a summary:

In the file gdb_commands I put:
break main
r
k
q

Compare running the command "time strace -c gdb -x gdb_commands 
src/.libs/gideon" under 4.18 and 5.1.1:

4.18:

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 44.44    0.153028          23      6763           ptrace

real    0m4.299s
user    0m2.550s
sys     0m0.810s

5.1.1:

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 98.07   26.668416          27    986910           ptrace

real    1m9.949s
user    0m20.750s
sys     0m40.540s

Note the nearly 1 million calls to ptrace with 5.1: more than a hundred-fold 
increase compared to 4.18.

If you need more detailed strace output or any other info, let me know.

Thanks,
John

Attachment: gdb_test
Description: Text document


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