[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Debugging multiple targets
|
If you have the launch, you should be able to get the debug session directly.
GdbLaunch#getSession()
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On Behalf Of Antony Burton
> Sent: Tuesday, June 03, 2014 11:16 AM
> To: CDT General developers list.
> Subject: [cdt-dev] Debugging multiple targets
>
> Hi,
> I have created a new launcher and extended GdbLaunchDelegate and all
> works well. Now I would like to debug 2 targets at the same time, but I can't
> find out how to get the correct DsfSession for each launch. I use the method:
>
> DsfSession[] sessions = DsfSession.getActiveSessions();
>
> but which session in the array corresponds to the current launch? I tried
> getting the active sessions before I do the super.launch in the launch method
> of my launch delegate but it seems the session has already been created.
>
> Any help would be greatly appreciated,
>
> Thanks,
>
> Antony
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev