[lldb-dev] api questions

Greg Clayton gclayton at apple.com
Tue Sep 25 11:53:29 PDT 2012

On Sep 25, 2012, at 6:43 AM, Carlo Kok <ck at remobjects.com> wrote:

> I've figured out most of what i need from the LLDB api but have a few questions I can't figure out myself:
> * How do i get notified of "thread started", "thread finished" events?

As Jim said, we don't currently support that. Mostly because our MacOSX doesn't support notifying when a thread comes and goes, and there isn't much we can do when a thread does come/go. A static view of thread created and thread destroyed is easy, but if you have a program that is running, it is tricky and probably going to slow down debugging, if you want to keep up with all of the threads that are coming and going. 

What are you trying to do?

> * How do i find out when a breakpoint has been bound?

Jim explained this quite well, but to emphasize: all of our breakpoints are always resolving when shared libraries come and go. So file + line, and breakpoints by name will continually resolve themselves as your program runs. One breakpoint maps to multiple locations.

> * How can I get notified of when a module is loaded?
> * How do I stop a process when it's still running, "Stop" sets a breakpoint, which isn't what i want. Disposing the debugger creates access violations.
> (That all said, it besides these few minor issues, it does work quite well)


More information about the lldb-dev mailing list