Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] ICDIThreadGroup.getCurrentThread()

I am implementing a CDT debugger and I am wandering what is the meaning of ICDIThreadGroup.getCurrentThread in terms of Debug Model.

 

The documentation says “Returns the currently selected thread.” but it is not clear what “selected” means.

Is it implied that when a thread is halted it automatically changes the current thread in the model? What happens if few threads are halted at the same time?

May be it is clear for GDB experts but I want to make sure I implement it properly for our debugger too.

 

I see how it is used in CDT but I was wandering if that context should only be kept in the presentation layer.

Or on the other side we could propagate the context to the model – then we probably need also a method ICDIThreadGroup.setCurrentThread. Also we may need similar IThread.setCurrentStackFrame, getCurrentStackFrame. And may be notifications when that context changes.

 

Any thoughts….

May be I am missing something…

 

Thanks

Dobrin

 

 

 

 

 


Back to the top