aboutsummaryrefslogtreecommitdiff
path: root/tools/autodebugger_js.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/autodebugger_js.py')
-rw-r--r--tools/autodebugger_js.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/autodebugger_js.py b/tools/autodebugger_js.py
index ee90e6f1..309e2f85 100644
--- a/tools/autodebugger_js.py
+++ b/tools/autodebugger_js.py
@@ -32,6 +32,10 @@ for i in range(len(lines)):
if 'STACKTOP' not in lines[i] and 'stackBase' not in lines[i]:
#lines[i] += ''' print("[%4d] %s = " + %s);''' % (i+1, var, var)
lines[i] += ''' print("%s = " + %s);''' % (var, var)
+ m = re.match('^ +HEAP.*$', lines[i])
+ if m and lines[i].count(' = ') == 1:
+ left, right = lines[i].split(' = ')
+ lines[i] += ''' print("%s = " + %s);''' % (left, left)
print '\n'.join(lines)