From a5748a34afe9ae837b14f26f69d6b3518ef91966 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Fri, 24 Jun 2011 09:34:23 +0400 Subject: DREAMWEB: Fixed continuing to another procedure. (axe misuse crash) --- devtools/tasmrecover/tasm/cpp.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'devtools') diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py index 0196e5b45c..dfdfb239f4 100644 --- a/devtools/tasmrecover/tasm/cpp.py +++ b/devtools/tasmrecover/tasm/cpp.py @@ -466,7 +466,9 @@ namespace %s { self.resolve_label(s.label) #adding statements + #BIG FIXME: this is quite ugly to handle code analysis from the code generation. rewrite me! for label, proc, offset in self.unbounded: + self.body += "\treturn;\n" #we need to return before calling code from the other proc self.body += "/*continuing to unbounded code: %s from %s:%d-%d*/\n" %(label, proc.name, offset, len(proc.stmts)) start = len(self.proc.stmts) self.proc.add_label(label) -- cgit v1.2.3