1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Only pass the filename not the full path.

This commit is contained in:
Alain Magloire 2002-09-12 19:36:57 +00:00
parent 3f63758501
commit 7622705eb4

View file

@ -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 ) )