| Summary: | Can't map sources if the executable was built on a different file system | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Ken Ryall <ken.ryall> | ||||||
| Component: | cdt-debug | Assignee: | Ken Ryall <ken.ryall> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | elaskavaia.cdt, pawel.1.piech | ||||||
| Version: | 7.0 | Flags: | ken.ryall:
review?
(john.cortell) |
||||||
| Target Milestone: | 7.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Ken Ryall
Created attachment 170659 [details]
fix
Creates a new Path object that will work even if the path string comes from a different file system.
Committed to HEAD for CDT 7.0. wait a sec ":" is a valid symbol in a file name on Unix. You cannot just replace anything before ":" as device. The safer fix would be to test for something like ^[A-Za-z]: in the begging of the file path. *** cdt cvs genie on behalf of kryall *** Bug 315244 - Can't map sources if the executable was built on a different file system [*] MapEntrySourceContainer.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java?root=Tools_Project&r1=1.7&r2=1.8 Created attachment 170685 [details]
another fix
Good point, this patch should only treat : as a Windows device separator if it precedes the first path separator. So a unix path like
/home/user/docs/Letter:12.txt
won't be mistreated as a Windows path.
*** cdt cvs genie on behalf of kryall *** Bug 315244 - Can't map sources if the executable was built on a different file system [*] MapEntrySourceContainer.java 1.10 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java?root=Tools_Project&r1=1.9&r2=1.10 |