Bug 1260329 - Properly escape the frameTable when running |dmd.py --clamp-contents|. r=mccr8.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 29 Mar 2016 13:34:57 +1100
changeset 291135 35053f4c889b0c2bec7812a6614d2b3eba2f349a
parent 291134 8f159c5d671e045cecf67b95b1e75b9362937f08
child 291136 5d5b5862ab90e00fcf4c9737dbe4f810f9a7dae3
push id74481
push usernnethercote@mozilla.com
push dateFri, 01 Apr 2016 06:21:39 +0000
treeherdermozilla-inbound@35053f4c889b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1260329
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1260329 - Properly escape the frameTable when running |dmd.py --clamp-contents|. r=mccr8.
memory/replace/dmd/dmd.py
--- a/memory/replace/dmd/dmd.py
+++ b/memory/replace/dmd/dmd.py
@@ -715,17 +715,17 @@ def prettyPrintDmdJson(out, j):
         out.write('\n  "{0}": {1}'.format(k, json.dumps(l)))
         first = False
     out.write('\n },\n')
 
     out.write(' "frameTable": {')
     first = True
     for k, v in j['frameTable'].iteritems():
         out.write('' if first else ',')
-        out.write('\n  "{0}": "{1}"'.format(k, v))
+        out.write('\n  "{0}": {1}'.format(k, json.dumps(v)))
         first = False
     out.write('\n }\n')
 
     out.write('}\n')
 
 
 ##################################################################
 # Code for clamping addresses using conservative pointer analysis.