Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Terminate debug session for embedded development

> 
> Hi,
> 
> We've also seen a problem with terminating gdb, during a debug session.
> Despite a call to launch.terminate, the gdb process is left hanging, and
> only a manual kill (either via the task manager, or kill) seems to work.
> In our case though, there is a problem interrupting our version of gdb
> in the first place, so we require a hard kill in order to ensure the
> process dies.
> 
> I've tried calling debugSession.getProcess().destroy(), but that doesn't
> seem to work reliably. Is there an alternative termination call that can
> generate a stronger kill?
> 

In Java ... java.lang.Process.destroy() is the best you can do.
We do have some JNI code, in spawner that can do better.
But would not the best course of action to fix gdb ...



Back to the top