Hello, I am currently working on an IDE for C++ and I would like to integrate lldb as a debugger using the C++ API but it has been difficult for me to understand the architecture because there is no documentation available (except doxygen which isn't helpful at all). I am at the point understanding the Event system? How are Events created? How can I use SBListener and SBBroadcaster? (What's the function of SBBroadvaster).
My current code looks something like this: SBListener listener; SBProcess process = target.Launch(listener, args, env, nullptr, nullptr, nullptr, "/home/cynecx/dev/helloWorld", 0, true, error); process.Continue(); StateType state = process.GetState(); // is stopped SBEvent event; while(true) { if(listener.WaitForEvent(0xFFFFFFFF, event)) { // This branch is never hit SBStream stream; event.GetDescription(stream); std::cout << stream.GetData() << std::endl; } else { break; } } It would help developers (IDE) a lot if there might be some tutorials/documentation on how to use the API. Regards, Paul
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev