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 101604 Details for
Bug 232415
[breakpoints] Can't set breakpoints in Windows
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]
MinGW specific patch
232415.patch (text/plain), 2.65 KB, created by
Francois Chouinard
on 2008-05-22 15:38:08 EDT
(
hide
)
Description:
MinGW specific patch
Filename:
MIME Type:
Creator:
Francois Chouinard
Created:
2008-05-22 15:38:08 EDT
Size:
2.65 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.dd.mi >Index: src/org/eclipse/dd/mi/service/MIBreakpointsManager.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.dd.dsf/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpointsManager.java,v >retrieving revision 1.8 >diff -u -r1.8 MIBreakpointsManager.java >--- src/org/eclipse/dd/mi/service/MIBreakpointsManager.java 13 May 2008 20:54:33 -0000 1.8 >+++ src/org/eclipse/dd/mi/service/MIBreakpointsManager.java 22 May 2008 19:35:02 -0000 >@@ -41,6 +41,7 @@ > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.IStatus; >+import org.eclipse.core.runtime.Platform; > import org.eclipse.core.runtime.Status; > import org.eclipse.core.runtime.jobs.ISchedulingRule; > import org.eclipse.core.runtime.jobs.Job; >@@ -1327,20 +1328,21 @@ > String hostPath = (String) attributes.get(ICBreakpoint.SOURCE_HANDLE); > > if (hostPath != null) { >+ > ISourceLookupDMContext srcDmc = DMContexts.getAncestorOfType(dmc, ISourceLookupDMContext.class); > if (srcDmc != null) { > fSourceLookup.getDebuggerPath(srcDmc, hostPath, > new DataRequestMonitor<String>(getExecutor(), rm) { > @Override > protected void handleSuccess() { >- attributes.put(ATTR_DEBUGGER_PATH, getData()); >+ attributes.put(ATTR_DEBUGGER_PATH, adjustDebuggerPath(getData())); > rm.done(); > } > }); > } else { > // Source lookup not available for given context, use the host > // path for the debugger path. >- attributes.put(ATTR_DEBUGGER_PATH, hostPath); >+ attributes.put(ATTR_DEBUGGER_PATH, adjustDebuggerPath(hostPath)); > rm.done(); > } > } else { >@@ -1351,6 +1353,23 @@ > } > > /** >+ * See bug232415 >+ * >+ * @param path the absolute path to the source file >+ * @return >+ */ >+ private String adjustDebuggerPath(String path) { >+ String result = path; >+ // Make it MinGW-specific >+ if (Platform.getOS().startsWith("win")) { //$NON-NLS-1$ >+ if (!path.startsWith("/")) { //$NON-NLS-1$ >+ result = path.substring(path.lastIndexOf('\\') + 1); >+ } >+ } >+ return result; >+ } >+ >+ /** > * Determine the set of modified attributes. > * Elementary set operations in full action :-) > *
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
Flags:
cdtdoug
:
iplog-
Actions:
View
|
Diff
Attachments on
bug 232415
:
100567
| 101604