[lldb-dev] Using data formatters to display QString

Eran Ifrah eran.ifrah at gmail.com
Mon Apr 28 07:33:54 PDT 2014


Hi,

I am trying to view the content of a QString, in gdb I could simply type
from the command line:

(gdb)print mystr.toUtf8().constData()

and I would get the info, can I do something similar with lldb's data
formatters (hint: I am getting parse error)?

for example:
type summary add QString --summary-string "${var.toUtf8().constData()}"

​So my question is: can I use functions when defining 'type summary' or am
I limited to variables members only?

Thanks,​

-- 
Eran Ifrah
Author of codelite, a cross platform open source C/C++ IDE:
http://www.codelite.org
wxCrafter, a wxWidgets RAD: http://wxcrafter.codelite.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140428/27bfd4b6/attachment.html>


More information about the lldb-dev mailing list