[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-debug-dev] where to start my thread?
|
I encountered a problem, can someone give me some help?Thanks a lot!!!!!
My purpose is to do some thing like this: when detecting a specified
breakpoint is hit during a debug session, I would like to send a event
to my realtime control driver which is a running thread, and then my
realtime driver will handle the event.
Right now I just want to give a try,so I did following things
Since class CDebugUIPlugin implements IDebugEventSetListener interface,I add some
code to its handleDebugEvents method:identify if the suspend event is because of
breakpoint, if yes, based on the info of the breakpoint, I will send a event to my
realtime driver, but where should I start that realtime driver thread? I tried to
start the thread at either CDebugUIPlugin constructor or CDebugUIPlugin startup, but
both ways failed since eclipse cannot load up my thread and some views, like Cbreakpoints view.
So I would like to know if the reason why I cannot start my thread is because
there is time limit on startup of CDebugUIplugin which means I cannot do time-consume task over
there.
So where should I start my realtime driver?
Thanks
Yan
.