View | Details | Raw Unified | Return to bug 219863 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java (-4 / +9 lines)
Lines 867-877 Link Here
867
867
868
	private ICAddressBreakpoint createAddressBreakpoint( ICDILocationBreakpoint cdiBreakpoint ) throws CDIException, CoreException {
868
	private ICAddressBreakpoint createAddressBreakpoint( ICDILocationBreakpoint cdiBreakpoint ) throws CDIException, CoreException {
869
		IPath execFile = getExecFilePath();
869
		IPath execFile = getExecFilePath();
870
		String sourceHandle = execFile.toOSString();
870
		String binary = execFile.toOSString();
871
		IAddress address = getDebugTarget().getAddressFactory().createAddress( cdiBreakpoint.getLocator().getAddress() );
871
		IAddress address = getDebugTarget().getAddressFactory().createAddress( cdiBreakpoint.getLocator().getAddress() );
872
		ICAddressBreakpoint breakpoint = CDIDebugModel.createAddressBreakpoint( sourceHandle,
872
		ICDILocator location = cdiBreakpoint.getLocator();
873
																				sourceHandle, 
873
		String file = location.getFile();
874
																				ResourcesPlugin.getWorkspace().getRoot(), 
874
		if (file==null || file.length()==0) file=binary;
875
		int line = location.getLineNumber();
876
		ICAddressBreakpoint breakpoint = CDIDebugModel.createAddressBreakpoint( binary,
877
																				file, 
878
																				ResourcesPlugin.getWorkspace().getRoot(),
879
																				line,
875
																				address, 
880
																				address, 
876
																				cdiBreakpoint.isEnabled(), 
881
																				cdiBreakpoint.isEnabled(), 
877
																				cdiBreakpoint.getCondition().getIgnoreCount(), 
882
																				cdiBreakpoint.getCondition().getIgnoreCount(), 

Return to bug 219863