Commit 6850ce2d authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Fix script for printing string16 in lldb.

Looks like the underlying ivar names changed.

Change-Id: I78755e0d5a77c19c1b972ff933f0e81b14dbdbe4
Reviewed-on: https://chromium-review.googlesource.com/1013299Reviewed-by: default avatarHiroshi Ichikawa <ichikawa@chromium.org>
Commit-Queue: Hiroshi Ichikawa <ichikawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551215}
parent b4aa02a0
......@@ -17,8 +17,8 @@ def __lldb_init_module(debugger, internal_dict):
# This is highly dependent on libc++ being compiled with little endian.
def basestring16_SummaryProvider(valobj, internal_dict):
s = valobj.GetValueForExpressionPath('.__r_.__first_.__s')
l = valobj.GetValueForExpressionPath('.__r_.__first_.__l')
s = valobj.GetValueForExpressionPath('.__r_.__value_.__s')
l = valobj.GetValueForExpressionPath('.__r_.__value_.__l')
size = s.GetChildMemberWithName('__size_').GetValueAsUnsigned(0)
is_short_string = size & 1 == 0
if is_short_string:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment