aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-25 13:26:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-25 13:26:21 -0800
commitf0df601ff867efe53e2cc1e63eaec0635a5065ac (patch)
tree646c20aca6abcbf4bae1f9f92a221cdc83eed13f /tools
parent03710544c7500d257a29c3733f171be6970e9765 (diff)
add heap writes to js debugger
Diffstat (limited to 'tools')
-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)