Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] MISession terminate patch

Hi,

We're seeing a problem when debugging using CDT 2.1.1.

As part of a debug session, we launch a number of tools, including gdb
talking to a remote target (gdbserver) over tcp/ip.  Some of the time,
clicking on the terminate button while the target is running, doesn't
terminate the Elf Debugger Process, as displayed in the debug window,
even though the actual gdb process has terminated successfully. All of
the other launch sub-processes are terminated successfully. This results
in the debug window displaying the launch with only the elf debugger
process being displayed as active (running), and it can't be terminated.
I believe that this is caused by the EventThread thread terminating
before the last command (kill) by the MISession.terminate() gets posted.

Attached is a patch for the MISession.java file (in
org.eclipse.cdt.debug.mi.core) which sets the condition for terminating
the EventThread thread later on in the terminate sequence, to ensure
that the final postCommand(kill,2000) makes it through to the
EventThread and is posted before the thread dies. 

Would it be possible to have the patch applied please?

Thanks,
Li-Wei Lee
Altera Europe



Back to the top