Changeset 216701 in webkit


Ignore:
Timestamp:
May 11, 2017 4:34:20 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r216217): lldb_webkit.py no longer prints out a WTFString, StringImpl needs to handle StringImplShape change
https://bugs.webkit.org/show_bug.cgi?id=171989

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2017-05-11
Reviewed by Brian Burg.

  • lldb/lldb_webkit.py:

(WTFStringImplProvider.get_data8):
(WTFStringImplProvider.get_data16):
m_data8 and m_data16 are now part of the superclass StringImplShape
instead of directly in StringImpl. So first get the shape by getting
index 0, and the data properties are the same offset within that.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r216696 r216701  
     12017-05-11  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        REGRESSION(r216217): lldb_webkit.py no longer prints out a WTFString, StringImpl needs to handle StringImplShape change
     4        https://bugs.webkit.org/show_bug.cgi?id=171989
     5
     6        Reviewed by Brian Burg.
     7
     8        * lldb/lldb_webkit.py:
     9        (WTFStringImplProvider.get_data8):
     10        (WTFStringImplProvider.get_data16):
     11        m_data8 and m_data16 are now part of the superclass StringImplShape
     12        instead of directly in StringImpl. So first get the shape by getting
     13        index 0, and the data properties are the same offset within that.
     14
    1152017-05-11  Joseph Pecoraro  <pecoraro@apple.com>
    216
  • trunk/Tools/lldb/lldb_webkit.py

    r216235 r216701  
    231231
    232232    def get_data8(self):
    233         return self.valobj.GetChildAtIndex(2).GetChildMemberWithName('m_data8')
     233        return self.valobj.GetChildAtIndex(0).GetChildAtIndex(2).GetChildMemberWithName('m_data8')
    234234
    235235    def get_data16(self):
    236         return self.valobj.GetChildAtIndex(2).GetChildMemberWithName('m_data16')
     236        return self.valobj.GetChildAtIndex(0).GetChildAtIndex(2).GetChildMemberWithName('m_data16')
    237237
    238238    def to_string(self):
Note: See TracChangeset for help on using the changeset viewer.