Community
Participate
Working Groups
Build Identifier: 20090920-1017 CBreakpointManager.isSameBreakpoint() compares the file paths of two breakpoints as if they're two strings. I've seen a case, while running Eclipse in Windows environment, where two breakpoints are the same but somehow their file path got represented differently ("C:\\path" vs "C:/path"), so it incorrectly decided that they are two different breakpoints. Reproducible: Always
I'm thinking we should, in CBreakpointManager.isSameBreakpoint(), create a File object from getLocation().toOSString() and then calls that File object's getCanonicalPath(), since the path it's compared to is obtained from Path.getCanonicalPath(). Do you have a reproducible case we can test a solution on?
Unfortunately, I'm using a custom debugger with a custom Launch mechanism, so I'm not sure how you can reproduce it.
If you can provide details on the code flow in isSameBreakpoint() in your scenario, I may be able to figure out how the situation happens and work on a solution.