Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Debugging multiple targets

Thanks for the reply Marc. I did look for a method getSession() for the launch parameter in the launch method of my GdbLaunchDelegate but there was none. So after I got your answer I did:

DsfSession session = ((GdbLaunch) launch).getSession();

...and it works great!

(not sure why I should have to cast the launch to GdbLaunch though).

Thanks again,

Antony

On 03/06/2014 21:13, Marc Khouzam wrote:
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
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top