Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] jtag launch and DSF

Yes, we share the same GdbLaunchDelegate class for all of DSF-GDB's launch
configurations.  The pattern for the launches was pretty similar:

1- do some checking (project, binary, gdb version, ...)
2- launch all the DSF services (using the ServicesLaunchSequence class)
3- perform all GDB initialization (using the FinalLaunchSequence class)

The real differences between different launch configs are being
handled in FinalLaunchSequence, where the right GDB commands are
only sent if the right configuration attributes are set.  For example
-target-select <host:port> is only sent when doing a remote launch.

For JTag, you could have a new launch delegate class, but my guess
is that it will be very similar.  It should probably extend GdbLaunchDelegate.

What you will want to customize is the FinalLaunchSequence.
You can either add conditional operations to the existing class
or you can create a new FinalLaunchSequence for JTag and
have it be called by overriding GdbLaunchDelegate.getFinalLaunchSequence()

If the JTag stuff is in a different plugin that org.eclipse.cdt.dsf.gdb
then you may need to have your own FinalLaunchSequence to avoid
creating a dependency with the JTag plugins.

I hope this helps.
Feel free to ask more questions :-)

Marc

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Alena Laskavaia
> Sent: Wednesday, March 10, 2010 10:40 AM
> To: CDT General developers list.
> Subject: [cdt-dev] jtag launch and DSF
> 
> I have a question.
> 
> We trying to port jtag launch configuration (aka Gdb hardware 
> debugging) 
> to dsf.
> First approach is to keep the ui and use same switch that C/C++ App 
> using to switch between dsf and cdi.
> But DSF seems to have only one launch configuration and use it for 
> everything. Should we attempt to use this schema
> instead or keep separate launch configuration?
> 
> Separate launch seems to make more sense to me, because it very 
> different workflow than C/C++ Application launch.
> Any comments?
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 

Back to the top