[lldb-dev] [Bug 30789] New: Watchpoint::SetEnabled & therefore SBWatchpoint::SetEnabled don't actually disable a watchpoint

2016-10-25 Thread via lldb-dev
https://llvm.org/bugs/show_bug.cgi?id=30789 Bug ID: 30789 Summary: Watchpoint::SetEnabled & therefore SBWatchpoint::SetEnabled don't actually disable a watchpoint Product: lldb Version: unspecified Hardw

Re: [lldb-dev] Generating an event when calling SBThread::SetSelectedFrame and SBProcess::SetSelectedThreadByID

2016-10-25 Thread Greg Clayton via lldb-dev
I agree with Jim here. If you are calling an API manually, I don't see a reason for a notification. A few ways to fix this: 1 - Add a SBBroadcaster to your code and then listen to it in your main event loop that is already listening to events. When you call SBProcess::SetSelectedThreadByID(), yo

Re: [lldb-dev] Generating an event when calling SBThread::SetSelectedFrame and SBProcess::SetSelectedThreadByID

2016-10-25 Thread Jim Ingham via lldb-dev
The SB API's in general don't send events about changing the things that they directly change. It seems awkward to say "Do X" and then have to field an event telling you that "X was done". And the return from the function generally tells you whether what you tried to do succeeded or not, so it

[lldb-dev] Generating an event when calling SBThread::SetSelectedFrame and SBProcess::SetSelectedThreadByID

2016-10-25 Thread Bogdan Hopulele via lldb-dev
Hi all, Does anyone know how I can get LLDB to generate events when calling SBProcess::SetSelectedThreadByID? SetSelectedThreadByID calls SetSelectedThreadByIndexID, but it doesn't pass the notify parameter so it defaults to false in ThreadList.h . Same story for SBThread::SetSelectedFrame. Wh