Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Debugger Source File Lookup

To be clear, this result was with "Search for duplicate source files on the path" and Debugger - "Use full file path to set breakpoints" checked in the Launch Configuration. (It's only an option in the CDI launcher)

On Thu, Mar 18, 2010 at 5:20 PM, Tim Black <timblaktu@xxxxxxxxx> wrote:
Thanks for your responsiveness, Jon. Hope you enjoy Santa Clara! Hopefully we can continue this when you're back. Here's some info:

I ran CDT 6.0.2 under the debugger for 4 scenarios - all permutations of CDI-based launcher vs. DSF-based launcher, and Default Source Lookup Path vs. Absolute File Path only. I hit the breakpoint in getSourceElement every time. (this is different from what I reported before - that was user error ;-) ) Every time I used Absolute File Path only, the sources.elementData[0].path found the correct main.cpp. Every time I used Default Source Lookup, sources.elementData[0].path found the wrong main.cpp.

Below are the stack traces for each run. The trace looks different from yours for the CDI case. Mine calling CSourceLookupDirector(AbstractSourceLookupDirector).getSourceElement(Object) but yours calls org.eclipse.cdt.debug.ui.sourcelookup.DefaultSourceLocator(org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector).getSourceElement(java.lang.Object).

DSF - Absolute File Path only
        Thread [Worker-8] (Suspended (breakpoint at line 746 in AbstractSourceLookupDirector))   
            DsfSourceLookupDirector(AbstractSourceLookupDirector).getSourceElement(Object) line: 746   
            DsfSourceDisplayAdapter$LookupJob.performLookup() line: 191   
            DsfSourceDisplayAdapter$LookupJob.run(IProgressMonitor) line: 174   
            Worker.run() line: 55   

DSF - Default source lookup
        Thread [Worker-0] (Suspended (breakpoint at line 746 in AbstractSourceLookupDirector))   
            DsfSourceLookupDirector(AbstractSourceLookupDirector).getSourceElement(Object) line: 746   
            DsfSourceDisplayAdapter$LookupJob.performLookup() line: 191   
            DsfSourceDisplayAdapter$LookupJob.run(IProgressMonitor) line: 174   
            Worker.run() line: 55   

CDI - Absolute File Path only
        Thread [Worker-10] (Suspended)   
            CSourceLookupDirector(AbstractSourceLookupDirector).getSourceElement(Object) line: 746   
            SourceLookupFacility.lookup(Object, ISourceLocator) line: 148   
            DebugUITools.lookupSource(Object, ISourceLocator) line: 777   
            StackFrameSourceDisplayAdapter$SourceLookupJob.run(IProgressMonitor) line: 109   
            Worker.run() line: 55   

CDI - Default source lookup
        Thread [Worker-3] (Suspended (breakpoint at line 746 in AbstractSourceLookupDirector))   
            CSourceLookupDirector(AbstractSourceLookupDirector).getSourceElement(Object) line: 746   
            SourceLookupFacility.lookup(Object, ISourceLocator) line: 148   
            DebugUITools.lookupSource(Object, ISourceLocator) line: 777   
            StackFrameSourceDisplayAdapter$SourceLookupJob.run(IProgressMonitor) line: 109   
            Worker.run() line: 55   



Back to the top