[lldb-dev] api questions
Carlo Kok
ck at remobjects.com
Tue Sep 25 12:11:22 PDT 2012
Op 25-9-2012 20:53, Greg Clayton schreef:
>
> 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?
List the threads active. But I think i can just request this whenever I
need it.
>
>> * 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.
>
That's fine. What I wanted to know is if it got bound at all at some
point. Before libraries are loaded they are surely unbound, and while
they might trigger in multiple places at some point, i just need to know
if the user didn't put one at a bad place.
Thanks!
Carlo Kok
More information about the lldb-dev
mailing list