mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Bug 360314: Rename IGDBHardware to IGDBHardwareAndOS to prepare to use it for OS information as well.
This commit is contained in:
parent
0116245961
commit
00ef45a136
8 changed files with 23 additions and 23 deletions
|
@ -33,8 +33,8 @@ import org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.utils.DSFDebugModel;
|
|||
import org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.utils.DSFDebugModelListener;
|
||||
import org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.utils.DSFSessionState;
|
||||
import org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.utils.DebugViewUtils;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.ICPUDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.ICoreDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.ICPUDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.ICoreDMContext;
|
||||
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
|
||||
import org.eclipse.cdt.dsf.mi.service.IMIProcessDMContext;
|
||||
import org.eclipse.cdt.dsf.ui.viewmodel.datamodel.IDMVMContext;
|
||||
|
|
|
@ -30,10 +30,10 @@ import org.eclipse.cdt.dsf.debug.service.IRunControl.StateChangeReason;
|
|||
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService;
|
||||
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.model.VisualizerExecutionState;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.ICPUDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.ICoreDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.IHardwareTargetDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.ICPUDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.ICoreDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.IHardwareTargetDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBProcesses.IGdbThreadDMData;
|
||||
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
|
||||
|
||||
|
@ -61,7 +61,7 @@ public class DSFDebugModel {
|
|||
final Object arg)
|
||||
{
|
||||
ICommandControlService controlService = sessionState.getService(ICommandControlService.class);
|
||||
IGDBHardware hwService = sessionState.getService(IGDBHardware.class);
|
||||
IGDBHardwareAndOS hwService = sessionState.getService(IGDBHardwareAndOS.class);
|
||||
if (controlService == null || hwService == null) {
|
||||
listener.getCPUsDone(null, arg);
|
||||
return;
|
||||
|
@ -99,7 +99,7 @@ public class DSFDebugModel {
|
|||
final DSFDebugModelListener listener,
|
||||
final Object arg)
|
||||
{
|
||||
IGDBHardware hwService = sessionState.getService(IGDBHardware.class);
|
||||
IGDBHardwareAndOS hwService = sessionState.getService(IGDBHardwareAndOS.class);
|
||||
if (hwService == null) {
|
||||
listener.getCoresDone(cpuContext, null, arg);
|
||||
return;
|
||||
|
|
|
@ -15,8 +15,8 @@ package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.utils;
|
|||
import org.eclipse.cdt.dsf.datamodel.IDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.IProcesses.IThreadDMData;
|
||||
import org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.model.VisualizerExecutionState;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.ICPUDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.ICoreDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.ICPUDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.ICoreDMContext;
|
||||
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
|
||||
|
||||
/** Interface for classes that interact with DSFDebugModel.
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.eclipse.cdt.dsf.debug.service.ISourceLookup;
|
|||
import org.eclipse.cdt.dsf.debug.service.ISourceLookup.ISourceLookupDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.IStack;
|
||||
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBTraceControl;
|
||||
import org.eclipse.cdt.dsf.mi.service.CSourceLookup;
|
||||
import org.eclipse.cdt.dsf.mi.service.IMIBackend;
|
||||
|
@ -62,7 +62,7 @@ public class ServicesLaunchSequence extends Sequence {
|
|||
},
|
||||
new Step() { @Override
|
||||
public void execute(RequestMonitor requestMonitor) {
|
||||
IGDBHardware hwService = fLaunch.getServiceFactory().createService(IGDBHardware.class, fSession, fLaunch.getLaunchConfiguration());
|
||||
IGDBHardwareAndOS hwService = fLaunch.getServiceFactory().createService(IGDBHardwareAndOS.class, fSession, fLaunch.getLaunchConfiguration());
|
||||
hwService.initialize(requestMonitor);
|
||||
}},
|
||||
new Step() { @Override
|
||||
|
|
|
@ -60,13 +60,13 @@ import org.eclipse.core.runtime.Status;
|
|||
import org.osgi.framework.BundleContext;
|
||||
|
||||
/**
|
||||
* This class implements the IGDBHardware interface which gives access
|
||||
* This class implements the {@link IGDBHardwareAndOS} interface which gives access
|
||||
* to hardware information about the target.
|
||||
*
|
||||
* @since 4.1
|
||||
*/
|
||||
@SuppressWarnings("restriction")
|
||||
public class GDBHardware extends AbstractDsfService implements IGDBHardware, ICachingService {
|
||||
public class GDBHardwareAndOS extends AbstractDsfService implements IGDBHardwareAndOS, ICachingService {
|
||||
|
||||
@Immutable
|
||||
protected static class GDBCPUDMC extends AbstractDMContext
|
||||
|
@ -171,7 +171,7 @@ public class GDBHardware extends AbstractDsfService implements IGDBHardware, ICa
|
|||
// Bug 374293
|
||||
private boolean fSessionInitializationComplete;
|
||||
|
||||
public GDBHardware(DsfSession session) {
|
||||
public GDBHardwareAndOS(DsfSession session) {
|
||||
super(session);
|
||||
}
|
||||
|
||||
|
@ -216,8 +216,8 @@ public class GDBHardware extends AbstractDsfService implements IGDBHardware, ICa
|
|||
getSession().addServiceEventListener(this, null);
|
||||
|
||||
// Register this service.
|
||||
register(new String[] { IGDBHardware.class.getName(),
|
||||
GDBHardware.class.getName() },
|
||||
register(new String[] { IGDBHardwareAndOS.class.getName(),
|
||||
GDBHardwareAndOS.class.getName() },
|
||||
new Hashtable<String, String>());
|
||||
|
||||
requestMonitor.done();
|
|
@ -96,10 +96,10 @@ public class GdbDebugServicesFactory extends AbstractDsfDebugServicesFactory {
|
|||
return (V)createTraceControlService(session, (ILaunchConfiguration)arg);
|
||||
}
|
||||
}
|
||||
} else if (IGDBHardware.class.isAssignableFrom(clazz)) {
|
||||
} else if (IGDBHardwareAndOS.class.isAssignableFrom(clazz)) {
|
||||
for (Object arg : optionalArguments) {
|
||||
if (arg instanceof ILaunchConfiguration) {
|
||||
return (V)createHardwareService(session, (ILaunchConfiguration)arg);
|
||||
return (V)createHardwareAndOSService(session, (ILaunchConfiguration)arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ public class GdbDebugServicesFactory extends AbstractDsfDebugServicesFactory {
|
|||
}
|
||||
|
||||
/** @since 4.1 */
|
||||
protected IGDBHardware createHardwareService(DsfSession session, ILaunchConfiguration config) {
|
||||
return new GDBHardware(session);
|
||||
protected IGDBHardwareAndOS createHardwareAndOSService(DsfSession session, ILaunchConfiguration config) {
|
||||
return new GDBHardwareAndOS(session);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.eclipse.cdt.dsf.service.IDsfService;
|
|||
*
|
||||
* @since 4.1
|
||||
*/
|
||||
public interface IGDBHardware extends IDsfService {
|
||||
public interface IGDBHardwareAndOS extends IDsfService {
|
||||
|
||||
/**
|
||||
* The physical target that has CPUs and Cores.
|
|
@ -15,7 +15,7 @@ package org.eclipse.cdt.dsf.gdb.service.command;
|
|||
import org.eclipse.cdt.dsf.debug.service.IModules.ISymbolDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.ISignals.ISignalsDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.ISourceLookup.ISourceLookupDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardware.IHardwareTargetDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBHardwareAndOS.IHardwareTargetDMContext;
|
||||
import org.eclipse.cdt.dsf.gdb.service.IGDBTraceControl.ITraceTargetDMContext;
|
||||
import org.eclipse.cdt.dsf.mi.service.command.MIControlDMContext;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue