Archives by date

You are browsing the site archives by date.

How to print Chromium string16 values from lldb using python scripts

I found this here: http://stackoverflow.com/questions/12923873/how-to-print-wchar-t-string-in-lldb with a minor tweak of if -> elif Thanks stack overflow! Python file: $ cat ~/work/lldbscripts/unsignedshortptrsummary.py import lldb def unsignedshortptr_SummaryProvider(valobj, dict): e = lldb.SBError() s = u'”‘ if valobj.GetValue() != 0: i = 0 newchar = -1 while newchar != 0: # read next wchar character out of memory data_val […]