Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 179524 Details for
Bug 196154
"Run to Line" command fails with native windows paths
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for CDT V201006141710
patch-cdt-v201006141710.txt (text/plain), 2.24 KB, created by
Francisco Gortázar
on 2010-09-24 10:28:56 EDT
(
hide
)
Description:
Patch for CDT V201006141710
Filename:
MIME Type:
Creator:
Francisco Gortázar
Created:
2010-09-24 10:28:56 EDT
Size:
2.24 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.dsf.ui >Index: src/org/eclipse/cdt/dsf/debug/internal/ui/actions/RunToLine.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/actions/RunToLine.java,v >retrieving revision 1.3 >diff -u -r1.3 RunToLine.java >--- src/org/eclipse/cdt/dsf/debug/internal/ui/actions/RunToLine.java 5 Mar 2010 16:52:06 -0000 1.3 >+++ src/org/eclipse/cdt/dsf/debug/internal/ui/actions/RunToLine.java 24 Sep 2010 14:24:47 -0000 >@@ -26,7 +26,9 @@ > import org.eclipse.cdt.dsf.service.DsfServicesTracker; > import org.eclipse.cdt.dsf.service.DsfSession; > import org.eclipse.core.resources.IFile; >+import org.eclipse.core.runtime.IPath; > import org.eclipse.core.runtime.IStatus; >+import org.eclipse.core.runtime.Path; > import org.eclipse.core.runtime.Status; > import org.eclipse.debug.core.DebugException; > import org.eclipse.debug.ui.actions.IRunToLineTarget; >@@ -84,7 +86,7 @@ > } > > public void runToLine(final String fileName, final int lineNumber, final boolean skipBreakpoints) throws DebugException { >- DsfSession session = DsfSession.getSession(fContext.getSessionId()); >+ DsfSession session = DsfSession.getSession(fContext.getSessionId()); > if (session != null && session.isActive()) { > Throwable exception = null; > try { >@@ -96,8 +98,10 @@ > > IRunControl2 runControl = tracker.getService(IRunControl2.class); > if (runControl != null) { >+ IPath path = Path.fromPortableString(fileName); >+ String lastSegment = path.lastSegment(); > runControl.runToLine( >- fContext, fileName, lineNumber, skipBreakpoints, rm); >+ fContext, lastSegment, lineNumber, skipBreakpoints, rm); > } else { > rm.setStatus(new Status(IStatus.ERROR, DsfUIPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED, "IRunControl2 service not available", null)); //$NON-NLS-1$ > rm.done();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196154
:
179524
|
179662