mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Only pass the filename not the full path.
This commit is contained in:
parent
3f63758501
commit
7622705eb4
1 changed files with 4 additions and 1 deletions
|
@ -1501,7 +1501,10 @@ public class CDebugTarget extends CDebugElement
|
||||||
ICDIBreakpointManager bm = getCDISession().getBreakpointManager();
|
ICDIBreakpointManager bm = getCDISession().getBreakpointManager();
|
||||||
try
|
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() );
|
ICDICondition condition = bm.createCondition( breakpoint.getIgnoreCount(), breakpoint.getCondition() );
|
||||||
ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, condition, null );
|
ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, condition, null );
|
||||||
if ( !getBreakpoints().containsKey( breakpoint ) )
|
if ( !getBreakpoints().containsKey( breakpoint ) )
|
||||||
|
|
Loading…
Add table
Reference in a new issue