memory located variables no behave like outputs, when forced
authorEdouard Tisserant
Wed, 18 May 2011 11:22:48 +0200
changeset 604 5b1c92060fc2
parent 603 e1ef99c609eb
child 605 2250ed42e306
memory located variables no behave like outputs, when forced
plugger.py
--- a/plugger.py	Wed May 18 11:21:10 2011 +0200
+++ b/plugger.py	Wed May 18 11:22:48 2011 +0200
@@ -1327,7 +1327,7 @@
            "for_each_variable_do_code":"\n".join([
                {"EXT":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
                 "IN":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
-                "MEM":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
+                "MEM":"    (*fp)((void*)&%(C_path)s,%(type)s_O_ENUM);\n",
                 "OUT":"    (*fp)((void*)&%(C_path)s,%(type)s_O_ENUM);\n",
                 "VAR":"    (*fp)((void*)&%(C_path)s,%(type)s_ENUM);\n"}[v["vartype"]]%v
                 for v in self._VariablesList if v["vartype"] != "FB" and v["type"] in DebugTypesSize ]),
@@ -1336,7 +1336,7 @@
                "        *varp = (void*)&%(C_path)s;\n"%v+
                {"EXT":"        return %(type)s_P_ENUM;\n",
                 "IN":"        return %(type)s_P_ENUM;\n",
-                "MEM":"        return %(type)s_P_ENUM;\n",
+                "MEM":"        return %(type)s_O_ENUM;\n",
                 "OUT":"        return %(type)s_O_ENUM;\n",
                 "VAR":"        return %(type)s_ENUM;\n"}[v["vartype"]]%v
                 for v in self._VariablesList if v["vartype"] != "FB" and v["type"] in DebugTypesSize ])}