<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">You can also have a look at CodeLite's LLDB debugger plugin implementation (also, pure C++)</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">More specifically, this file: <a href="https://github.com/eranif/codelite/blob/master/LLDBDebugger/codelite-lldb/CodeLiteLLDBApp.cpp">https://github.com/eranif/codelite/blob/master/LLDBDebugger/codelite-lldb/CodeLiteLLDBApp.cpp</a> which wraps SB API (it converts JSON format commands arriving from CodeLite into SB API calls and send back the replies)</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Eran</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 11, 2014 at 12:49 AM, Jason Molenda <span dir="ltr"><<a href="mailto:jmolenda@apple.com" target="_blank">jmolenda@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You might want to look at test/api/multiple-debuggers/multi-process-driver.cpp which is an example C++ driver program which creates an lldb debug session (50 of them, actually), inserts breakpoints, runs to the breakpoints, backtraces and continues as a simple example in C++.<br>
<br>
(the test itself is trying to hit race conditions with multiple debuggers running at the same time on separate threads.)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
J<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Nov 10, 2014, at 1:30 PM, <a href="mailto:jingham@apple.com">jingham@apple.com</a> wrote:<br>
><br>
> The SB API's are a C++ interface to lldb (that's how Xcode uses them, for example.) Those C++ API's are translated into<br>
> a Python interface (using the SWIG tool) for scripting purposes. But you should feel free to use the C++ version if you like C++.<br>
><br>
> I think Greg just suggested Python because it's an easy way to play around and figure out how they work.<br>
><br>
> Jim<br>
><br>
><br>
>> On Nov 10, 2014, at 1:03 PM, Jose H <<a href="mailto:jose.francisco.hevia@gmail.com">jose.francisco.hevia@gmail.com</a>> wrote:<br>
>><br>
>> @jingham: Oh, simple. I just wanted a better way to handle the errors<br>
>> and output of lldb that just having a text file stream that I have to<br>
>> parse to understand, because I want the GUI to understand some things<br>
>> like an error happened or not and I just can't stand parsing stuff.<br>
>><br>
>> Anyway, I have read a lot of code meanwhile and I understand lldb much<br>
>> better now.<br>
>><br>
>> About the SB API's, it forces me to use python, but I am using C++ so<br>
>> I prefer to use the c++ equivalent if possible. Not that it looks too<br>
>> hard as the SP APIs seem direct mappings of the c++ objects.<br>
>><br>
>> I am using C++ because I already have lots of graphic code on<br>
>> c/c++(years of work) that I want to use in this project.<br>
>> _______________________________________________<br>
>> lldb-dev mailing list<br>
>> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif">Eran Ifrah,<br>Author of codelite, a cross platform open source C/C++ IDE: <a href="http://www.codelite.org" target="_blank">http://www.codelite.org</a><br></font><div><font face="verdana, sans-serif">CodeLite IDE Blog: <a href="http://codeliteide.blogspot.com/" target="_blank">http://codeliteide.blogspot.com/</a></font></div></div></div>
</div>