[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] where to start my thread?
|
You shouldn't add code to the existing plugins. Instead you should create
your own plugin and implement IDebugEventSetListener. Based on the events
that the debug framework sends you can start your thread, and do whatever
you want to do. That's a standard approach.
----- Original Message -----
From: "Yan Chen" <ychen5@xxxxxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Friday, April 16, 2004 2:54 AM
Subject: [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
>
> .
>
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
>