Skip to main content
summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorEugene Tarassov2012-02-28 20:24:11 -0500
committerEugene Tarassov2012-02-28 20:24:11 -0500
commit136ef0adc09492e356ec7b400579ffcd59f211de (patch)
tree0aa4e07f8d228ab065d8ee3cc77ac2a6a4170f62 /server
parent80996943a32a8f01143112e3fb8912c23fe90f2e (diff)
downloadorg.eclipse.tcf.agent-136ef0adc09492e356ec7b400579ffcd59f211de.tar.gz
org.eclipse.tcf.agent-136ef0adc09492e356ec7b400579ffcd59f211de.tar.xz
org.eclipse.tcf.agent-136ef0adc09492e356ec7b400579ffcd59f211de.zip
TCF Server: fixed stack frame registers access.
Diffstat (limited to 'server')
-rw-r--r--server/tcf/services/context-proxy.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/server/tcf/services/context-proxy.c b/server/tcf/services/context-proxy.c
index df7cb4ca..a65fdd35 100644
--- a/server/tcf/services/context-proxy.c
+++ b/server/tcf/services/context-proxy.c
@@ -1113,9 +1113,18 @@ static void read_register_property(InputStream * inp, const char * name, void *
static unsigned get_reg_index(ContextCache * cache, const char * id) {
unsigned r = 0;
- while (r < cache->reg_pos) {
- if (strcmp(id, cache->reg_props[r].id) == 0) return r;
- r++;
+ if (*id++ == 'R') {
+ for (;;) {
+ if (*id == '.' || *id != '@') {
+ return r;
+ }
+ else if (*id >= '0' && *id <= '9') {
+ r = r * 10 + (*id++ - '0');
+ }
+ else {
+ break;
+ }
+ }
}
str_exception(ERR_OTHER, "Invalid register ID");
return 0;

Back to the top