| Summary: | CDT debugging is pathologically slow with large app | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Oyvind Harboe <oyvind.harboe> |
| Component: | cdt-debug | Assignee: | cdt-debug-inbox <cdt-debug-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Ken Ryall <ken.ryall> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, marc.khouzam, pawel.1.piech |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Oyvind Harboe
Can you include the 'gdb traces' output of your session (you'll find it in the Console view, using the little blue TV icon). With that, we can see what Eclipse is asking GDB for (In reply to comment #1) > Can you include the 'gdb traces' output of your session (you'll find it in the > Console view, using the little blue TV icon). > > With that, we can see what Eclipse is asking GDB for I can't include the output, but here are some pathological findings: The line below is *hundreds* of lines of directories... Can't be good. 050,519 7-environment-directory /home/oyvind/oharboe/wip /home/oyvind/oharboe/wip/.git /home/oyvind/\ oharboe/wip/.git/branches => 100's of lines 050,666 8-list-thread-groups 050,706 7^done,source-path="/home/oyvind/oharboe/wip:/home/oyvind/oharboe/wip/.git: => 100's of lines 076,683 =library-loaded,id=" => 100's of these Some more info:
315,858 80-exec-step --thread 1 1
315,858 80^running
315,858 *running,thread-id="all"
315,858 (gdb)
=> takes 60 seconds(?) to step a single source line here...
426,213 *stopped,reason="end-stepping-range",frame={addr="0x00007fffef1a44a4",func="StorableComp::na\
rrow_cast",args=[{name="i",value="0x3eed930"}],file="xxxx",line="24"},thread-id="1",stopped-threads="al\
l",core="1"
426,213 (gdb)
426,218 81-stack-info-depth --thread 1 11
426,220 81^done,depth="11"
426,220 (gdb)
426,303 82-stack-list-frames --thread 1 1 1
If I launch GDB from the command line, the stepping is instantaneous. My best guess is that the "environment-directory" thing is slowing things down. Can I disable that? I build w/absolute paths to GCC, so I don't need that do I? Looks like a long standing problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=225708 (In reply to comment #4) > If I launch GDB from the command line, the stepping is instantaneous. > > My best guess is that the "environment-directory" thing is slowing things down. > Can I disable that? > > I build w/absolute paths to GCC, so I don't need that do I? > > > Looks like a long standing problem: > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=225708 Yes, that sounds right. Details in Bug 225805. The "environment-directory" command has been removed for the next release. I believe you can work around this problem by setting up paths in the "Source" tab of the launch You'll have to look at Bug 225805 to find the exact way. *** This bug has been marked as a duplicate of bug 225805 *** |