Changeset 127965 in webkit
- Timestamp:
- Sep 8, 2012 12:36:18 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r127958 r127965 1 2012-09-08 Kenichi Ishibashi <bashi@chromium.org> 2 3 webkit.py gdb pretty printer can't print CString 4 https://bugs.webkit.org/show_bug.cgi?id=96068 5 6 Reviewed by Tony Chang. 7 8 Update WTFCStringPrinter to follow r126191. 9 10 * gdb/webkit.py: 11 (WTFCStringPrinter.to_string): 12 1 13 2012-09-07 Benjamin Poulain <bpoulain@apple.com> 2 14 -
trunk/Tools/gdb/webkit.py
r127191 r127965 116 116 "Print a WTF::CString" 117 117 def to_string(self): 118 # The CString holds a buffer, which is a refptr to a WTF:: Vector of chars.119 vector = self.val['m_buffer']['m_ptr']['m_vector']120 # The vector has two more layers of buffer members.121 return vector['m_buffer']['m_buffer']118 # The CString holds a buffer, which is a refptr to a WTF::CStringBuffer. 119 data = self.val['m_buffer']['m_ptr']['m_data'].cast(gdb.lookup_type('char').pointer()) 120 length = self.val['m_buffer']['m_ptr']['m_length'] 121 return ''.join([chr((data + i).dereference()) for i in xrange(length)]) 122 122 123 123
Note: See TracChangeset
for help on using the changeset viewer.