|
Lines 34-39
Link Here
|
| 34 |
import org.eclipse.dd.mi.service.MIModules; |
34 |
import org.eclipse.dd.mi.service.MIModules; |
| 35 |
import org.eclipse.dd.mi.service.MIRegisters; |
35 |
import org.eclipse.dd.mi.service.MIRegisters; |
| 36 |
import org.eclipse.dd.mi.service.MIStack; |
36 |
import org.eclipse.dd.mi.service.MIStack; |
|
|
37 |
import org.eclipse.debug.core.ILaunchConfiguration; |
| 37 |
|
38 |
|
| 38 |
public class GdbDebugServicesFactory extends AbstractDsfDebugServicesFactory { |
39 |
public class GdbDebugServicesFactory extends AbstractDsfDebugServicesFactory { |
| 39 |
|
40 |
|
|
Lines 47-56
Link Here
|
| 47 |
|
48 |
|
| 48 |
@Override |
49 |
@Override |
| 49 |
@SuppressWarnings("unchecked") |
50 |
@SuppressWarnings("unchecked") |
| 50 |
public <V> V createService(DsfSession session, Class<V> clazz) { |
51 |
public <V> V createService(DsfSession session, Class<V> clazz, Object ... arguments) { |
| 51 |
if (MIBreakpointsManager.class.isAssignableFrom(clazz)) { |
52 |
if (MIBreakpointsManager.class.isAssignableFrom(clazz)) { |
| 52 |
return (V)createBreakpointManagerService(session); |
53 |
return (V)createBreakpointManagerService(session); |
| 53 |
} |
54 |
} else if (ICommandControl.class.isAssignableFrom(clazz)) { |
|
|
55 |
for (Object arg : arguments) { |
| 56 |
if (arg instanceof ILaunchConfiguration) { |
| 57 |
return (V)createCommandControl(session, (ILaunchConfiguration)arg); |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 54 |
|
62 |
|
| 55 |
return super.createService(session, clazz); |
63 |
return super.createService(session, clazz); |
| 56 |
} |
64 |
} |
|
Lines 64-72
Link Here
|
| 64 |
return new MIBreakpoints(session); |
72 |
return new MIBreakpoints(session); |
| 65 |
} |
73 |
} |
| 66 |
|
74 |
|
| 67 |
@Override |
75 |
protected ICommandControl createCommandControl(DsfSession session, ILaunchConfiguration config) { |
| 68 |
protected ICommandControl createCommandControl(DsfSession session) { |
76 |
return new GDBControl(session, config); |
| 69 |
return new GDBControl(session); |
|
|
| 70 |
} |
77 |
} |
| 71 |
|
78 |
|
| 72 |
@Override |
79 |
@Override |