Title: [150640] trunk/Tools
Revision
150640
Author
[email protected]
Date
2013-05-24 07:48:21 -0700 (Fri, 24 May 2013)

Log Message

Update WTF::Vector pretty printers
https://bugs.webkit.org/show_bug.cgi?id=116719

Patch by Simon Pena <[email protected]> on 2013-05-24
Reviewed by Anders Carlsson.

After r148891, WTF::Vector pretty printers were left outdated, as
the WTF::Vector was made to extend a VectorBuffer, instead of keeping
one as a member. This patch updates the pretty printers so they work
again.

* gdb/webkit.py:
(WTFVectorPrinter.children):
(WTFVectorPrinter.to_string):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (150639 => 150640)


--- trunk/Tools/ChangeLog	2013-05-24 14:20:35 UTC (rev 150639)
+++ trunk/Tools/ChangeLog	2013-05-24 14:48:21 UTC (rev 150640)
@@ -1,3 +1,19 @@
+2013-05-24  Simon Pena  <[email protected]>
+
+        Update WTF::Vector pretty printers
+        https://bugs.webkit.org/show_bug.cgi?id=116719
+
+        Reviewed by Anders Carlsson.
+
+        After r148891, WTF::Vector pretty printers were left outdated, as
+        the WTF::Vector was made to extend a VectorBuffer, instead of keeping
+        one as a member. This patch updates the pretty printers so they work
+        again. 
+
+        * gdb/webkit.py:
+        (WTFVectorPrinter.children):
+        (WTFVectorPrinter.to_string):
+
 2013-05-24  Steve Falkenburg  <[email protected]>
 
         Update prepareConsistentTestingEnvironment to use a non-deprecated API.

Modified: trunk/Tools/gdb/webkit.py (150639 => 150640)


--- trunk/Tools/gdb/webkit.py	2013-05-24 14:20:35 UTC (rev 150639)
+++ trunk/Tools/gdb/webkit.py	2013-05-24 14:48:21 UTC (rev 150640)
@@ -261,12 +261,12 @@
         self.val = val
 
     def children(self):
-        start = self.val['m_buffer']['m_buffer']
+        start = self.val['m_buffer']
         return self.Iterator(start, start + self.val['m_size'])
 
     def to_string(self):
         return ('%s of length %d, capacity %d'
-                % ('WTF::Vector', self.val['m_size'], self.val['m_buffer']['m_capacity']))
+                % ('WTF::Vector', self.val['m_size'], self.val['m_capacity']))
 
     def display_hint(self):
         return 'array'
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to