[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Cancel in FinalLaunchSequence
|
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Derek Morris
> Sent: Thursday, September 06, 2012 11:58 AM
> To: CDT Debug developers list
> Subject: [cdt-dev] Cancel in FinalLaunchSequence
>
> Hi,
>
> I have implemented by own FinalLaunchSequence (by subclassing
> the original). It is all working OK, except when a fatal
> error occurs and I need to cancel the launch.
>
> The problem is that at the point of the fatal error, GDB has
> been started, but after the error, it is not being closed - I
> have to close it manually in the UI.
>
> In the handleCancel() method that is repsonding to the fatal
> error, I am:
> rm.cancel();
> rm.done();
>
> Which does seem to cancel the FinalLaunchSequence, but leaves
> GDB still running.
In your launch delegate, you have to shutdown the DSF session
if the FinalLaunchSequence is aborted.
Look at GdbLaunchDelegate.cleanupLaunch() (which is run in
a 'finally' clause, in that case)
I hope this helps
Marc
>
> Does anybody have some advice on how I can resolve this issue?
>
> Thanks
> --
> DmSubs
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>