diff options
author | Eugene Tarassov | 2014-09-24 18:38:19 +0000 |
---|---|---|
committer | Eugene Tarassov | 2014-09-24 18:38:19 +0000 |
commit | 1d59568d3289f0908cb38b549c3008a091f7d2fd (patch) | |
tree | 8bd33598476bdb6df64fc2124c2cf5972f2b38ac | |
parent | 965c803d5bea3ce4d9c868eef0403ccf64a1ff0a (diff) | |
download | org.eclipse.tcf-1.3_WR_20140926_VX7_bugfix.tar.gz org.eclipse.tcf-1.3_WR_20140926_VX7_bugfix.tar.xz org.eclipse.tcf-1.3_WR_20140926_VX7_bugfix.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.java | 6 |
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; } |