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?

On Mon, Jan 23, 2012 at 7:54 PM, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:
>> -----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 a lot for your help!
I'll follow up in the bug.

Anna.


Back to the top