summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalvatore Culcasi2013-05-07 17:26:52 (EDT)
committerMikhail Khodjaiants2013-05-08 14:30:09 (EDT)
commit42b7727548672d1366d8e7cff17732b47cc3adda (patch)
tree914f6e5ee9a03e06cceefffc0a17f2d021268ab4
parent191b7afdbf31d1edf7e6ce219e5c0fbb69edb1dd (diff)
downloadorg.eclipse.cdt-42b7727548672d1366d8e7cff17732b47cc3adda.zip
org.eclipse.cdt-42b7727548672d1366d8e7cff17732b47cc3adda.tar.gz
org.eclipse.cdt-42b7727548672d1366d8e7cff17732b47cc3adda.tar.bz2
Bug 407163 - GDB Console: breakpoint not added with MinGW and gdbrefs/changes/01/12601/2
Change-Id: I970e3f3f34aa96bbfcc317ada68457ed68e0c462 Reviewed-on: https://git.eclipse.org/r/12601 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com> IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com> Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java6
1 files 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 abf68c1..731d8c3 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];
}