Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-09-24 14:38:19 -0400
committerEugene Tarassov2014-09-24 14:38:19 -0400
commit1d59568d3289f0908cb38b549c3008a091f7d2fd (patch)
tree8bd33598476bdb6df64fc2124c2cf5972f2b38ac
parent965c803d5bea3ce4d9c868eef0403ccf64a1ff0a (diff)
downloadorg.eclipse.tcf-1d59568d3289f0908cb38b549c3008a091f7d2fd.tar.gz
org.eclipse.tcf-1d59568d3289f0908cb38b549c3008a091f7d2fd.tar.xz
org.eclipse.tcf-1d59568d3289f0908cb38b549c3008a091f7d2fd.zip
TCF Debugger: Registers view: fixed handling of register name that starts with a digit1.3_WR_20140926_VX71.3_WR_20140926_VX7_bugfix
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeRegister.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeRegister.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeRegister.java
index e5566ed3d..73941ef1d 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeRegister.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeRegister.java
@@ -114,8 +114,10 @@ public class TCFNodeRegister extends TCFNode implements IElementEditor, IWatchIn
char ch = s.charAt(i);
if (ch >= 'A' && ch <= 'Z') continue;
if (ch >= 'a' && ch <= 'z') continue;
- if (ch >= '0' && ch <= '9') continue;
- if (ch == '_') continue;
+ if (i > 0) {
+ if (ch >= '0' && ch <= '9') continue;
+ if (ch == '_') continue;
+ }
need_quotes = true;
break;
}

Back to the top