Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Perrin2012-02-24 08:24:14 +0000
committerAnton Leherbauer2012-02-24 08:24:14 +0000
commite29a28376424d9b5488a79e60a92fedd45eff300 (patch)
tree1304cd8338960990fb268ffdb0dbffbb485f1134 /python/src/tcf/services/remote/SymbolsProxy.py
parent170184b56da3a5100db3bb438d59db985b4e82ba (diff)
downloadorg.eclipse.tcf-e29a28376424d9b5488a79e60a92fedd45eff300.tar.gz
org.eclipse.tcf-e29a28376424d9b5488a79e60a92fedd45eff300.tar.xz
org.eclipse.tcf-e29a28376424d9b5488a79e60a92fedd45eff300.zip
TCF Python: Bug 372346 - Missing service support for Expressions and
Symbols
Diffstat (limited to 'python/src/tcf/services/remote/SymbolsProxy.py')
-rw-r--r--python/src/tcf/services/remote/SymbolsProxy.py49
1 files changed, 48 insertions, 1 deletions
diff --git a/python/src/tcf/services/remote/SymbolsProxy.py b/python/src/tcf/services/remote/SymbolsProxy.py
index 72c3b10fb..132999c10 100644
--- a/python/src/tcf/services/remote/SymbolsProxy.py
+++ b/python/src/tcf/services/remote/SymbolsProxy.py
@@ -1,5 +1,5 @@
# *******************************************************************************
-# * Copyright (c) 2011 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -72,6 +72,38 @@ class SymbolsProxy(symbols.SymbolsService):
done.doneFind(self.token, error, id)
return FindCommand().token
+ def findByName(self, context_id, ip, name, done):
+ done = self._makeCallback(done)
+ service = self
+ class FindByNameCommand(Command):
+ def __init__(self):
+ super(FindByNameCommand, self).__init__(service.channel, service, "findByName", (context_id, ip, name))
+ def done(self, error, args):
+ ids = []
+ if not error:
+ assert len(args) >= 2
+ error = self.toError(args[0])
+ if not error:
+ ids = args[1:]
+ done.doneFind(self.token, error, ids)
+ return FindByNameCommand().token
+
+ def findInScope(self, context_id, ip, scope_id, name, done):
+ done = self._makeCallback(done)
+ service = self
+ class FindInScopeCommand(Command):
+ def __init__(self):
+ super(FindInScopeCommand, self).__init__(service.channel, service, "findInScope", (context_id, ip, scope_id, name))
+ def done(self, error, args):
+ ids = []
+ if not error:
+ assert len(args) >= 2
+ error = self.toError(args[0])
+ if not error:
+ ids = args[1:]
+ done.doneFind(self.token, error, ids)
+ return FindInScopeCommand().token
+
def findByAddr(self, context_id, addr, done):
done = self._makeCallback(done)
service = self
@@ -102,6 +134,21 @@ class SymbolsProxy(symbols.SymbolsService):
done.doneList(self.token, error, lst)
return ListCommand().token
+ def getArrayType(self, type_id, length, done):
+ done = self._makeCallback(done)
+ service = self
+ class GetArrayTypeCommand(Command):
+ def __init__(self):
+ super(GetArrayTypeCommand, self).__init__(service.channel, service, "getArrayType", (type_id, length))
+ def done(self, error, args):
+ id = None
+ if not error:
+ assert len(args) == 2
+ error = self.toError(args[0])
+ id = args[1]
+ done.doneGetArrayType(self.token, error, id)
+ return GetArrayTypeCommand().token
+
def findFrameInfo(self, context_id, address, done):
done = self._makeCallback(done)
service = self

Back to the top