From 7622705eb4f309ba40b28dad8863f8f13d4fe11f Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 12 Sep 2002 19:36:57 +0000 Subject: [PATCH] Only pass the filename not the full path. --- .../eclipse/cdt/debug/internal/core/model/CDebugTarget.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java index d872e96f3bc..d93f3112564 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java @@ -1501,7 +1501,10 @@ public class CDebugTarget extends CDebugElement ICDIBreakpointManager bm = getCDISession().getBreakpointManager(); try { - ICDILocation location = bm.createLocation( breakpoint.getMarker().getResource().getLocation().toString(), null, breakpoint.getLineNumber() ); + // FIXME: We should make sure that the parent folder where we + // want to set the breakpoint is added to the list of source directory. + // where the debugger looks for files. + ICDILocation location = bm.createLocation( breakpoint.getMarker().getResource().getLocation().lastSegment(), null, breakpoint.getLineNumber() ); ICDICondition condition = bm.createCondition( breakpoint.getIgnoreCount(), breakpoint.getCondition() ); ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, condition, null ); if ( !getBreakpoints().containsKey( breakpoint ) )