mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Bug 429251: Breakpoint problem marker is not displayed in external
source files Enable ExternalSearchAnnotationModel displaying BP problems by setting attribute C_MODEL_MARKER_EXTERNAL_LOCATION Change-Id: Icb0c2bf444aa1eb91a8da685c35a140e8174439b Signed-off-by: Teodor Madan <teodor.madan@freescale.com> Reviewed-on: https://git.eclipse.org/r/22748 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
f184e96fe7
commit
1a65b23a5d
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,7 @@ import java.util.Set;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import java.util.concurrent.RejectedExecutionException;
|
import java.util.concurrent.RejectedExecutionException;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.model.ICModelMarker;
|
||||||
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||||
import org.eclipse.cdt.debug.core.breakpointactions.BreakpointActionManager;
|
import org.eclipse.cdt.debug.core.breakpointactions.BreakpointActionManager;
|
||||||
import org.eclipse.cdt.debug.core.model.ICAddressBreakpoint;
|
import org.eclipse.cdt.debug.core.model.ICAddressBreakpoint;
|
||||||
|
@ -709,10 +710,13 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
|
||||||
// Add a problem marker to the resource
|
// Add a problem marker to the resource
|
||||||
IMarker problem_marker = resource.createMarker(BreakpointProblems.BREAKPOINT_PROBLEM_MARKER_ID);
|
IMarker problem_marker = resource.createMarker(BreakpointProblems.BREAKPOINT_PROBLEM_MARKER_ID);
|
||||||
int line_number = lineBreakpoint.getLineNumber();
|
int line_number = lineBreakpoint.getLineNumber();
|
||||||
|
String sourceHandle = lineBreakpoint.getSourceHandle();
|
||||||
problem_marker.setAttribute(IMarker.LOCATION, String.valueOf(line_number));
|
problem_marker.setAttribute(IMarker.LOCATION, String.valueOf(line_number));
|
||||||
problem_marker.setAttribute(IMarker.MESSAGE, description);
|
problem_marker.setAttribute(IMarker.MESSAGE, description);
|
||||||
problem_marker.setAttribute(IMarker.SEVERITY, severity);
|
problem_marker.setAttribute(IMarker.SEVERITY, severity);
|
||||||
problem_marker.setAttribute(IMarker.LINE_NUMBER, line_number);
|
problem_marker.setAttribute(IMarker.LINE_NUMBER, line_number);
|
||||||
|
if (sourceHandle != null)
|
||||||
|
problem_marker.setAttribute(ICModelMarker.C_MODEL_MARKER_EXTERNAL_LOCATION, sourceHandle);
|
||||||
|
|
||||||
// And save the baby
|
// And save the baby
|
||||||
fBreakpointMarkerProblems.put(breakpoint, problem_marker);
|
fBreakpointMarkerProblems.put(breakpoint, problem_marker);
|
||||||
|
|
Loading…
Add table
Reference in a new issue