Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] Absolute paths and source containers

Title: Absolute paths and source containers
Hi,

I’ve been working on a couple issues that appear when the debugger back-end refers to files by absolute path and the file’s location can not be found in any of the available source containers. Source containers provide a neat way to locate files given some info (usually the file name) but if the info is a full absolute path none of the source container types will be able to “find” it.

There is some discussion of this in bug 91808 and a subsequent workaround in CSourceLookupParticipant.java that handles most cases but I thought a more comprehensive way to address this in CDT would be to create a source container that knows how to “find” files specified by their full absolute path. Adding a AbsoluteSourceContainer removed the need for the workaround, fixes my bug where breakpoints can not be set in these files, and should cover additional cases in the future.

This is working well it our testing and unless someone sees a problem I’ll commit it for CDT 3.1.1.

Thanks – Ken

Back to the top