1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

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 <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>
This commit is contained in:
Salvatore Culcasi 2013-05-07 17:26:52 -04:00 committed by Mikhail Khodjaiants
parent 191b7afdbf
commit 42b7727548

View file

@ -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];
}