Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-03-05 12:47:23 -0500
committerEugene Tarassov2014-03-05 12:47:23 -0500
commit8c0bc30f909d48f8e95d0aaf7d1b20d26dd69173 (patch)
tree4b9a374e18fa29a1f73556fccf92714407f6ef0b /plugins/org.eclipse.tcf.debug
parentfa937e47716a0694cbd8f3ea8f1a9123a3820345 (diff)
downloadorg.eclipse.tcf-8c0bc30f909d48f8e95d0aaf7d1b20d26dd69173.tar.gz
org.eclipse.tcf-8c0bc30f909d48f8e95d0aaf7d1b20d26dd69173.tar.xz
org.eclipse.tcf-8c0bc30f909d48f8e95d0aaf7d1b20d26dd69173.zip
TCF Debugger: show more info about breakpoint in the Debug view when a context is stopped by a breakpoint hit
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