[lldb-dev] Question on using lldb inside a GUI

Malea, Daniel daniel.malea at intel.com
Tue Sep 24 08:39:00 PDT 2013


There is no MI interface, but LLDB can be driven from Python and C++:

- Python API Documentation
<http://lldb.llvm.org/python_reference/index.html>
- C++ API Documentation
<http://lldb.llvm.org/cpp_reference/html/index.html>

Also, see the examples in the source tree and in the Python docs.

For getting filenames, use an SBFileSpec object and call GetPath() on it,
or use GetDirectory() and GetFilename(). To see actual source code, use a
SBSourceManager object.

Dan

On 2013-09-24 11:15 AM, ""C. Bergström"" <cbergstrom at pathscale.com> wrote:

>On 09/24/13 10:16 PM, Yin Ma wrote:
>> Hello,
>>
>> We are developing our Debugger GUI to support lldb.
>> Does lldb have an enable mode for GUI mode?
>> like gdb -fullname, it will emit a string that
>> indicates source code location instead of printing
>> source line to stdout?
>cli wrappers suck - Doesn't lldb have an API interface similar to GDB's
>MI that allows you to control it?
>_______________________________________________
>lldb-dev mailing list
>lldb-dev at cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev





More information about the lldb-dev mailing list