Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Leger2016-07-07 05:18:03 -0400
committerFrederic Leger2016-07-07 05:18:03 -0400
commit72c9f8995912207a44d31c82f74056248e882dba (patch)
tree58e4f7c74b1b3138b6abeffa80d505df8d56bab0 /python/src/tcf/services/runcontrol.py
parent69846a1fda38662c05543d5b584086cf0fbc8406 (diff)
downloadorg.eclipse.tcf-72c9f8995912207a44d31c82f74056248e882dba.tar.gz
org.eclipse.tcf-72c9f8995912207a44d31c82f74056248e882dba.tar.xz
org.eclipse.tcf-72c9f8995912207a44d31c82f74056248e882dba.zip
TCF Python: Python 3 compliance.
The whole TCF python code should now be python 2 AND python 3 compatible. As there are few tests, I made sure this works by running the BasicTests.py and ProcessStart.py using both a python2 or python3 interpreter.
Diffstat (limited to 'python/src/tcf/services/runcontrol.py')
-rw-r--r--python/src/tcf/services/runcontrol.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/python/src/tcf/services/runcontrol.py b/python/src/tcf/services/runcontrol.py
index e84d7f577..729a94017 100644
--- a/python/src/tcf/services/runcontrol.py
+++ b/python/src/tcf/services/runcontrol.py
@@ -1,5 +1,5 @@
# *****************************************************************************
-# * Copyright (c) 2011, 2013-2014 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2013-2014, 2016 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
@@ -526,8 +526,8 @@ class RunControlISA(object):
res += 'Address=' + str(self.getAddress()) + ', '
res += ISA_SIZE + '=' + str(self.getSize()) + ', '
res += ISA_ALIGNMENT + '=' + str(self.getAlignment()) + ', '
- res += ISA_MAX_INSTRUCTION_SIZE + '=' + \
- str(self.getMaxInstructionSize()) + ', '
+ res += ISA_MAX_INSTRUCTION_SIZE + '='
+ res += str(self.getMaxInstructionSize()) + ', '
res += 'Default=' + str(self.getDefault())
res += ']'
return res
@@ -980,6 +980,18 @@ class RunControlListener(object):
"""
pass
+ def contextStateChanged(self, context):
+ """Called when context state changes and the context is not and was not
+ in suspended state.
+
+ Changes to and from suspended state should be reported by other events:
+ contextSuspended, contextResumed, containerSuspended, containerResumed.
+
+ :param context: ID of a context that changed state.
+ :type context: |basestring|
+ """
+ pass
+
def contextSuspended(self, context, pc, reason, params):
"""Called when a thread is suspended.

Back to the top