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 90401 Details for
Bug 219863
regression: Address breakpoints inserted from console do not resolve location properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
4.0 patch
cdt_4_0_addressBreakpoint.txt (text/plain), 1.72 KB, created by
Elena Laskavaia
on 2008-02-21 15:34:09 EST
(
hide
)
Description:
4.0 patch
Filename:
MIME Type:
Creator:
Elena Laskavaia
Created:
2008-02-21 15:34:09 EST
Size:
1.72 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.debug.core >Index: src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java,v >retrieving revision 1.71.2.2 >diff -u -r1.71.2.2 CBreakpointManager.java >--- src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java 26 Jan 2008 00:57:57 -0000 1.71.2.2 >+++ src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java 21 Feb 2008 20:21:19 -0000 >@@ -867,11 +867,16 @@ > > private ICAddressBreakpoint createAddressBreakpoint( ICDILocationBreakpoint cdiBreakpoint ) throws CDIException, CoreException { > IPath execFile = getExecFilePath(); >- String sourceHandle = execFile.toOSString(); >+ String binary = execFile.toOSString(); > IAddress address = getDebugTarget().getAddressFactory().createAddress( cdiBreakpoint.getLocator().getAddress() ); >- ICAddressBreakpoint breakpoint = CDIDebugModel.createAddressBreakpoint( sourceHandle, >- sourceHandle, >- ResourcesPlugin.getWorkspace().getRoot(), >+ ICDILocator location = cdiBreakpoint.getLocator(); >+ String file = location.getFile(); >+ if (file==null || file.length()==0) file=binary; >+ int line = location.getLineNumber(); >+ ICAddressBreakpoint breakpoint = CDIDebugModel.createAddressBreakpoint( binary, >+ file, >+ ResourcesPlugin.getWorkspace().getRoot(), >+ line, > address, > cdiBreakpoint.isEnabled(), > cdiBreakpoint.getCondition().getIgnoreCount(),
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:
bjorn.freeman-benson
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 219863
: 90401 |
91048