Bug 1058392 - Fix printing of JSStrings (and jsids) in certain versions of gdb. r=sfink
authorBlake Kaplan <mrbkap@gmail.com>
Wed, 29 Oct 2014 11:41:09 -0700
changeset 212999 7b6d9cc021ab092fcf295ff31a5185cf40df3116
parent 212998 24241717af63311a2e6202332441aa9403bfdbb6
child 213000 459d3080fdf8948c5d6e6419e1f2c8a34e6270cb
push id27738
push usercbook@mozilla.com
push dateThu, 30 Oct 2014 13:46:07 +0000
treeherdermozilla-central@1aa1b23d799e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1058392
milestone36.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 1058392 - Fix printing of JSStrings (and jsids) in certain versions of gdb. r=sfink
js/src/gdb/mozilla/JSString.py
--- a/js/src/gdb/mozilla/JSString.py
+++ b/js/src/gdb/mozilla/JSString.py
@@ -52,17 +52,17 @@ class JSStringPtr(Common):
                     chars = d['inlineStorageLatin1']
                 else:
                     chars = d['inlineStorageTwoByte']
             else:
                 if is_latin1:
                     chars = d['s']['u2']['nonInlineCharsLatin1']
                 else:
                     chars = d['s']['u2']['nonInlineCharsTwoByte']
-            for i in range(length):
+            for i in range(int(length)):
                 yield chars[i]
 
     def to_string(self):
         s = u''
         for c in self.chars():
             s += chr(c)
         return s