Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Adding processes to the launch--synchronization issue?

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Anna Dushistova
> Sent: Monday, January 23, 2012 4:11 AM
> To: CDT General developers list.
> Subject: [cdt-dev] Adding processes to the 
> launch--synchronization issue?
> 
> Hi All,
> In org.eclipse.cdt.launch.remote we add a "remote shell" process to
> the launcher to get the application output.
> This is currently done via DebugPlugin.newProcess(...) method.
> Is there any way to synchronize it somehow with the rest of the
> debugging processes/sessions?
> I am especially interested in terminating the whole launch when
> something happens with the "remote shell" process,
> see https://bugs.eclipse.org/bugs/show_bug.cgi?id=368597 and
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=318051.
> 
> Does anyone have any idea?

The java.lang.Process you add to the launch for the remote shell
should override java.lang.Process.destroy() which could then
cleanup the debug session (e.g., call IGDBControl.terminate()).

You can look at MIInferiorProcess.destroy().

Marc


> 
> Thanks!
> Anna.
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 

Back to the top