Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.tcf.debug')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java
index dc206d58b..7f7227a23 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java
@@ -553,9 +553,6 @@ public class TCFBreakpointsModel {
m.put(IBreakpoint.REGISTERED, Boolean.TRUE);
m.put(IBreakpoint.PERSISTED, Boolean.TRUE);
m.put(IBreakpoint.ID, ITCFConstants.ID_TCF_DEBUG_MODEL);
- String msg = "";
- if (location != null) msg += location;
- m.put(ATTR_MESSAGE, "Breakpoint: " + msg);
String file = (String)p.get(IBreakpoints.PROP_FILE);
if (file != null && file.length() > 0) {
m.put(ATTR_FILE, file);
@@ -596,6 +593,11 @@ public class TCFBreakpointsModel {
}
m.put(ATTR_TYPE, cdt_type);
}
+ String msg = null;
+ if (location != null) msg = location;
+ else if (file != null && line != null) msg = file + ":" + line;
+ else msg = (String)p.get(IBreakpoints.PROP_ID);
+ m.put(ATTR_MESSAGE, "Breakpoint: " + msg);
m.put(ATTR_TCF_STAMP, Boolean.TRUE.toString());
return m;

Back to the top