From 42b7727548672d1366d8e7cff17732b47cc3adda Mon Sep 17 00:00:00 2001 From: Salvatore Culcasi Date: Tue, 7 May 2013 17:26:52 -0400 Subject: [PATCH] Bug 407163 - GDB Console: breakpoint not added with MinGW and gdb Change-Id: I970e3f3f34aa96bbfcc317ada68457ed68e0c462 Reviewed-on: https://git.eclipse.org/r/12601 Reviewed-by: Marc Khouzam Reviewed-by: Mikhail Khodjaiants IP-Clean: Mikhail Khodjaiants Tested-by: Mikhail Khodjaiants --- .../cdt/dsf/mi/service/MIBreakpointsSynchronizer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java index abf68c175f4..731d8c3ed2d 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java @@ -6,14 +6,14 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * Mentor Graphics - Initial API and implementation + * Mentor Graphics - Initial API and implementation + * Salvatore Culcasi (ST) - Bug 407163 - GDB Console: breakpoint not added with MinGW and gdb *******************************************************************************/ package org.eclipse.cdt.dsf.mi.service; import java.io.File; import java.math.BigInteger; -import java.net.URI; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -1319,7 +1319,7 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI resource = ResourcesPlugin.getWorkspace().getRoot(); else { IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI( - URI.create(String.format("file:/%s", fileName))); //$NON-NLS-1$ + new File(fileName).toURI()); if (files.length > 0) { resource = files[0]; }