Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to use subclassed GdbBackend_HEAD?

Hmm. Now I wonder why I didn't see that already.

For next person asking themselves this question, using the org.eclipse.examples.dsf.gdb project as a base, you need to add

@Override
protected IMIBackend createBackendGDBService(DsfSession session, ILaunchConfiguration lc) {
return new GDBExtendedBackend(session, lc);
}
To your GDBExtendedDebugServicesFactory. Assuming you subclassed GDBBackend_HEAD in a class called GDBExtendedBackend.

Thank you, Marc!

On Tue, Mar 29, 2016 at 5:07 PM, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:

You have to subclass GdbDebugServicesFactory and then allocate this new subclass in your launch delegate, which probably already is a subclass of GdbLauchDelegate.

A new launch delegate is the entry point to modify existing DSF-GDB functionality.

BR,
Marc

From: Tim Orling <ticotimo@xxxxxxxxx>
Sent: Mar 29, 2016 19:15
To: CDT General developers list.
Subject: [cdt-dev] How to use subclassed GdbBackend_HEAD?

We have subclassed GdbBackend_HEAD, but are missing how we tell Eclipse that this is the backend we want to use.

Ideas?

--Tim (Intel)

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top