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:
parent
191b7afdbf
commit
42b7727548
1 changed files with 3 additions and 3 deletions
|
@ -7,13 +7,13 @@
|
|||
*
|
||||
* Contributors:
|
||||
* 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];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue