commit | 1d59568d3289f0908cb38b549c3008a091f7d2fd | [log] [tgz] |
---|---|---|
author | Eugene Tarassov <eugene.tarassov@xilinx.com> | Wed Sep 24 11:38:19 2014 -0700 |
committer | Eugene Tarassov <eugene.tarassov@xilinx.com> | Wed Sep 24 11:38:19 2014 -0700 |
tree | 8bd33598476bdb6df64fc2124c2cf5972f2b38ac | |
parent | 965c803d5bea3ce4d9c868eef0403ccf64a1ff0a [diff] |
TCF Debugger: Registers view: fixed handling of register name that starts with a digit
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 e5566ed..73941ef 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 @@ 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; }