[lldb-dev] How do you call complex methods from python?

Zachary Turner zturner at google.com
Thu Oct 2 18:00:16 PDT 2014


When public methods take complex arguments like char*'s that get written
into, parameters passed by reference, etc, how do we know what syntax to
call them with from Python?

For example, consider this method:

size_t
SBCommunication::Read (void *dst, size_t dst_len, uint32_t timeout_usec,
ConnectionStatus &status)

The first argument is a buffer that gets written to.  The last argument is
a ConnectionStatus that gets passed by reference.  In lldb, I'm doing the
following:

>>> comm = lldb.SBCommunication("test")
>>> comm.Connect("file://d:\\file1.cpp")
>>> comm.Read(?????)

How do I write this so that it works?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141002/6d7c4829/attachment.html>


More information about the lldb-dev mailing list