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

Bogdan Hopulele via lldb-dev lldb-dev at lists.llvm.org
Tue Oct 25 01:42:19 PDT 2016

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.

Why is the default set to false? The event shouldn't be generated if there is no listener and if there is one then why not notify it? I'm also curious how Xcode manages to update its threads window when changing the selected thread from the console if no event gets generated.

2 solutions come to mind:

1.       Overload the public functions in order to expose the notify parameter (broadcast for the frame function).

2.       Change the default if there is no reason to have it set to false.

National Instruments Romania S.R.L.
B-dul 21 Decembrie 1989, nr. 77, A2
Cluj-Napoca 400604, Romania
C.I.F.: RO17961616 | O.R.C.: J12/3337/2005
Telefon: +40 264 406428 | Fax: +40 264 406429
E-mail: office.cluj at ni.com
Web: romania.ni.com

Vanzari si suport tehnic:
Telefon gratuit : 0800 070071
E-mail vanzari: ni.romania at ni.com
E-mail suport tehnic: techsupport at ni.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20161025/84983056/attachment-0001.html>

More information about the lldb-dev mailing list