mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-02 13:13:36 +02:00
[302315] Change org.eclipse.cdt.dsf.gdb version from 2.1 to 3.0 to accommodate interface changes
This commit is contained in:
parent
901457b262
commit
31dd35c469
46 changed files with 59 additions and 183 deletions
|
@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.dsf.gdb;singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.dsf.gdb;singleton:=true
|
||||||
Bundle-Version: 2.1.0.qualifier
|
Bundle-Version: 3.0.0.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.dsf.gdb.internal.GdbPlugin
|
Bundle-Activator: org.eclipse.cdt.dsf.gdb.internal.GdbPlugin
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Require-Bundle: org.eclipse.core.runtime,
|
Require-Bundle: org.eclipse.core.runtime,
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2009 Ericsson and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Ericsson - Initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
package org.eclipse.cdt.dsf.gdb.actions;
|
|
||||||
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 2.0
|
|
||||||
* @deprecated This interface was synchronous. I has been replaced with the asynchronous
|
|
||||||
* interface @{link org.eclipse.cdt.debug.core.model.IReverseResumeHandler}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IReverseResumeHandler {
|
|
||||||
public boolean canReverseResume(ISelection debugContext);
|
|
||||||
public void reverseResume(ISelection debugContext);
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2009 Ericsson and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Ericsson - Initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
package org.eclipse.cdt.dsf.gdb.actions;
|
|
||||||
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 2.0
|
|
||||||
* @deprecated This interface was synchronous. I has been replaced with the asynchronous
|
|
||||||
* interface @{link org.eclipse.cdt.debug.core.model.IReverseStepIntoHandler}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IReverseStepIntoHandler {
|
|
||||||
public boolean canReverseStepInto(ISelection debugContext);
|
|
||||||
public void reverseStepInto(ISelection debugContext);
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2009 Ericsson and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Ericsson - Initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
package org.eclipse.cdt.dsf.gdb.actions;
|
|
||||||
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 2.0
|
|
||||||
* @deprecated This interface was synchronous. I has been replaced with the asynchronous
|
|
||||||
* interface @{link org.eclipse.cdt.debug.core.model.IReverseStepOverHandler}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IReverseStepOverHandler {
|
|
||||||
public boolean canReverseStepOver(ISelection debugContext);
|
|
||||||
public void reverseStepOver(ISelection debugContext);
|
|
||||||
}
|
|
|
@ -1,28 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2009 Ericsson and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Ericsson - initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
package org.eclipse.cdt.dsf.gdb.actions;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 2.0
|
|
||||||
* @deprecated This interface was synchronous. I has been replaced with the asynchronous
|
|
||||||
* interface @{link org.eclipse.cdt.debug.core.model.IReverseToggleHandler}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IReverseToggleHandler {
|
|
||||||
public boolean canToggleReverse(ISelection debugContext);
|
|
||||||
public void toggleReverse(ISelection debugContext);
|
|
||||||
public boolean isReverseToggled(ISelection debugContext);
|
|
||||||
public boolean isReverseToggled(ICommandControlDMContext debugContext);
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2009 Ericsson and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* Ericsson - Initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
package org.eclipse.cdt.dsf.gdb.actions;
|
|
||||||
|
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 2.0
|
|
||||||
* @deprecated This interface was synchronous. I has been replaced with the asynchronous
|
|
||||||
* interface @{link org.eclipse.cdt.debug.core.model.IUncallHandler}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IUncallHandler {
|
|
||||||
public boolean canUncall(ISelection debugContext);
|
|
||||||
public void uncall(ISelection debugContext);
|
|
||||||
}
|
|
|
@ -213,7 +213,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
|
||||||
/**
|
/**
|
||||||
* Method used to check that the project, program and binary are correct.
|
* Method used to check that the project, program and binary are correct.
|
||||||
* Can be overridden to avoid checking certain things.
|
* Can be overridden to avoid checking certain things.
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected IPath checkBinaryDetails(final ILaunchConfiguration config) throws CoreException {
|
protected IPath checkBinaryDetails(final ILaunchConfiguration config) throws CoreException {
|
||||||
// First verify we are dealing with a proper project.
|
// First verify we are dealing with a proper project.
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class LaunchUtils {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A prefix that we use to indicate that a GDB version is for MAC OS
|
* A prefix that we use to indicate that a GDB version is for MAC OS
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public static final String MACOS_GDB_MARKER = "APPLE"; //$NON-NLS-1$
|
public static final String MACOS_GDB_MARKER = "APPLE"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ import org.osgi.framework.BundleContext;
|
||||||
/**
|
/**
|
||||||
* Initial breakpoint service implementation.
|
* Initial breakpoint service implementation.
|
||||||
* Implements the IBreakpoints interface.
|
* Implements the IBreakpoints interface.
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class GDBBreakpoints_7_0 extends AbstractDsfService implements IBreakpoints
|
public class GDBBreakpoints_7_0 extends AbstractDsfService implements IBreakpoints
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,7 +43,7 @@ import org.osgi.framework.BundleContext;
|
||||||
* This class implements the ITraceControl interface which gives access
|
* This class implements the ITraceControl interface which gives access
|
||||||
* to the debugger's tracing functionality.
|
* to the debugger's tracing functionality.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class GDBTraceControl_7_1 extends AbstractDsfService implements IGDBTraceControl, ICachingService {
|
public class GDBTraceControl_7_1 extends AbstractDsfService implements IGDBTraceControl, ICachingService {
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ public class GdbDebugServicesFactory extends AbstractDsfDebugServicesFactory {
|
||||||
return new MIStack(session);
|
return new MIStack(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
protected IGDBTraceControl createTraceControlService(DsfSession session, ILaunchConfiguration config) {
|
protected IGDBTraceControl createTraceControlService(DsfSession session, ILaunchConfiguration config) {
|
||||||
// This service is available for GDB 7.1. But until that GDB is itself available
|
// This service is available for GDB 7.1. But until that GDB is itself available
|
||||||
// there is a pre-release that has a version of 6.8.50.20090414
|
// there is a pre-release that has a version of 6.8.50.20090414
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.dsf.service.IDsfService;
|
||||||
* The TraceControl service provides access to the debugger Tracing functionality.
|
* The TraceControl service provides access to the debugger Tracing functionality.
|
||||||
* It is used to do such things as start and stop tracing.
|
* It is used to do such things as start and stop tracing.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public interface IGDBTraceControl extends IDsfService {
|
public interface IGDBTraceControl extends IDsfService {
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class GDBBackendCLIProcess extends MIBackendCLIProcess {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected boolean isMissingSecondaryPromptCommand(String operation) {
|
protected boolean isMissingSecondaryPromptCommand(String operation) {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.eclipse.cdt.dsf.service.DsfSession;
|
||||||
/**
|
/**
|
||||||
* Specific ExpressionService for MacOS
|
* Specific ExpressionService for MacOS
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MacOSGDBExpressions extends MIExpressions {
|
public class MacOSGDBExpressions extends MIExpressions {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.dsf.mi.service.MIProcesses;
|
||||||
import org.eclipse.cdt.dsf.service.DsfServiceEventHandler;
|
import org.eclipse.cdt.dsf.service.DsfServiceEventHandler;
|
||||||
import org.eclipse.cdt.dsf.service.DsfSession;
|
import org.eclipse.cdt.dsf.service.DsfSession;
|
||||||
|
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
public class MacOSGDBProcesses extends GDBProcesses {
|
public class MacOSGDBProcesses extends GDBProcesses {
|
||||||
|
|
||||||
public MacOSGDBProcesses(DsfSession session) {
|
public MacOSGDBProcesses(DsfSession session) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.dsf.service.DsfSession;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.Status;
|
import org.eclipse.core.runtime.Status;
|
||||||
|
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
public class MacOSGDBRunControl extends GDBRunControl {
|
public class MacOSGDBRunControl extends GDBRunControl {
|
||||||
|
|
||||||
public MacOSGDBRunControl(DsfSession session) {
|
public MacOSGDBRunControl(DsfSession session) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.cdt.dsf.service.DsfSession;
|
||||||
/**
|
/**
|
||||||
* Specific VariableManager for MacOS
|
* Specific VariableManager for MacOS
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MacOSGDBVariableManager extends MIVariableManager {
|
public class MacOSGDBVariableManager extends MIVariableManager {
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.eclipse.cdt.dsf.debug.service.IRunControl;
|
||||||
import org.eclipse.cdt.dsf.gdb.service.GdbDebugServicesFactory;
|
import org.eclipse.cdt.dsf.gdb.service.GdbDebugServicesFactory;
|
||||||
import org.eclipse.cdt.dsf.service.DsfSession;
|
import org.eclipse.cdt.dsf.service.DsfSession;
|
||||||
|
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
public class MacOSGdbDebugServicesFactory extends GdbDebugServicesFactory {
|
public class MacOSGdbDebugServicesFactory extends GdbDebugServicesFactory {
|
||||||
|
|
||||||
// Mac OS has it's own version of GDB, which does not follow the standard GDB version
|
// Mac OS has it's own version of GDB, which does not follow the standard GDB version
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class MIBreakpointDMData implements IBreakpointDMData {
|
||||||
|
|
||||||
// Breakpoint types
|
// Breakpoint types
|
||||||
public static enum MIBreakpointNature { UNKNOWN, BREAKPOINT, WATCHPOINT, CATCHPOINT,
|
public static enum MIBreakpointNature { UNKNOWN, BREAKPOINT, WATCHPOINT, CATCHPOINT,
|
||||||
/** @since 2.1*/ TRACEPOINT };
|
/** @since 3.0*/ TRACEPOINT };
|
||||||
private final MIBreakpointNature fNature;
|
private final MIBreakpointNature fNature;
|
||||||
|
|
||||||
|
|
||||||
|
@ -233,14 +233,14 @@ public class MIBreakpointDMData implements IBreakpointDMData {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public int getPassCount() {
|
public int getPassCount() {
|
||||||
return fBreakpoint.getPassCount();
|
return fBreakpoint.getPassCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public String getCommands() {
|
public String getCommands() {
|
||||||
return fBreakpoint.getCommands();
|
return fBreakpoint.getCommands();
|
||||||
|
@ -298,7 +298,7 @@ public class MIBreakpointDMData implements IBreakpointDMData {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public void setPassCount(int count) {
|
public void setPassCount(int count) {
|
||||||
fBreakpoint.setPassCount(count);
|
fBreakpoint.setPassCount(count);
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
public static final String BREAKPOINT = "breakpoint"; //$NON-NLS-1$
|
public static final String BREAKPOINT = "breakpoint"; //$NON-NLS-1$
|
||||||
public static final String WATCHPOINT = "watchpoint"; //$NON-NLS-1$
|
public static final String WATCHPOINT = "watchpoint"; //$NON-NLS-1$
|
||||||
public static final String CATCHPOINT = "catchpoint"; //$NON-NLS-1$
|
public static final String CATCHPOINT = "catchpoint"; //$NON-NLS-1$
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
public static final String TRACEPOINT = "tracepoint"; //$NON-NLS-1$
|
public static final String TRACEPOINT = "tracepoint"; //$NON-NLS-1$
|
||||||
|
|
||||||
// Basic set of breakpoint attribute markers
|
// Basic set of breakpoint attribute markers
|
||||||
|
@ -76,10 +76,10 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
public static final String ADDRESS = PREFIX + ".address"; //$NON-NLS-1$
|
public static final String ADDRESS = PREFIX + ".address"; //$NON-NLS-1$
|
||||||
public static final String CONDITION = PREFIX + ".condition"; //$NON-NLS-1$
|
public static final String CONDITION = PREFIX + ".condition"; //$NON-NLS-1$
|
||||||
public static final String IGNORE_COUNT = PREFIX + ".ignoreCount"; //$NON-NLS-1$
|
public static final String IGNORE_COUNT = PREFIX + ".ignoreCount"; //$NON-NLS-1$
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
public static final String PASS_COUNT = PREFIX + ".passCount"; //$NON-NLS-1$
|
public static final String PASS_COUNT = PREFIX + ".passCount"; //$NON-NLS-1$
|
||||||
public static final String IS_ENABLED = PREFIX + ".isEnabled"; //$NON-NLS-1$
|
public static final String IS_ENABLED = PREFIX + ".isEnabled"; //$NON-NLS-1$
|
||||||
/** @since 2.1 */
|
/** @since 3.0 */
|
||||||
public static final String COMMANDS = PREFIX + ".commands"; //$NON-NLS-1$
|
public static final String COMMANDS = PREFIX + ".commands"; //$NON-NLS-1$
|
||||||
|
|
||||||
// Basic set of watchpoint attribute markers
|
// Basic set of watchpoint attribute markers
|
||||||
|
|
|
@ -467,7 +467,7 @@ public class MIExpressions extends AbstractDsfService implements IExpressions, I
|
||||||
* Creates the MI variable manager to be used by this expression service.
|
* Creates the MI variable manager to be used by this expression service.
|
||||||
* Overriding classes may override to provide a custom services tracker.
|
* Overriding classes may override to provide a custom services tracker.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected MIVariableManager createMIVariableManager() {
|
protected MIVariableManager createMIVariableManager() {
|
||||||
return new MIVariableManager(getSession(), getServicesTracker());
|
return new MIVariableManager(getSession(), getServicesTracker());
|
||||||
|
|
|
@ -917,14 +917,14 @@ public class MIVariableManager implements ICommandControl {
|
||||||
/**
|
/**
|
||||||
* Method to allow to override the MIVariableObject creation
|
* Method to allow to override the MIVariableObject creation
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected MIVariableObject createVariableObject(VariableObjectId id, MIVariableObject parentObj) {
|
protected MIVariableObject createVariableObject(VariableObjectId id, MIVariableObject parentObj) {
|
||||||
return new MIVariableObject(id, parentObj);
|
return new MIVariableObject(id, parentObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MIRootVariableObject extends MIVariableObject {
|
public class MIRootVariableObject extends MIVariableObject {
|
||||||
|
|
||||||
|
@ -1158,7 +1158,7 @@ public class MIVariableManager implements ICommandControl {
|
||||||
/**
|
/**
|
||||||
* Method to allow to override the MIRootVariableObject creation.
|
* Method to allow to override the MIRootVariableObject creation.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected MIRootVariableObject createRootVariableObject(VariableObjectId id) {
|
protected MIRootVariableObject createRootVariableObject(VariableObjectId id) {
|
||||||
return new MIRootVariableObject(id);
|
return new MIRootVariableObject(id);
|
||||||
|
@ -1175,7 +1175,7 @@ public class MIVariableManager implements ICommandControl {
|
||||||
* Note that if no frameContext is specified (only Execution, or even only Container), which can
|
* Note that if no frameContext is specified (only Execution, or even only Container), which can
|
||||||
* characterize a global variable for example, we will only use the available information.
|
* characterize a global variable for example, we will only use the available information.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class VariableObjectId {
|
public class VariableObjectId {
|
||||||
// We don't use the expression context because it is not safe to compare them
|
// We don't use the expression context because it is not safe to compare them
|
||||||
|
@ -1249,7 +1249,7 @@ public class MIVariableManager implements ICommandControl {
|
||||||
/**
|
/**
|
||||||
* Method to allow to override the VariableObjectId creation.
|
* Method to allow to override the VariableObjectId creation.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected VariableObjectId createVariableObjectId() {
|
protected VariableObjectId createVariableObjectId() {
|
||||||
return new VariableObjectId();
|
return new VariableObjectId();
|
||||||
|
@ -1375,28 +1375,28 @@ public class MIVariableManager implements ICommandControl {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected DsfSession getSession() {
|
protected DsfSession getSession() {
|
||||||
return fSession;
|
return fSession;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected ICommandControl getCommandControl() {
|
protected ICommandControl getCommandControl() {
|
||||||
return fCommandControl;
|
return fCommandControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected void rootVariableUpdated(MIRootVariableObject rootObj) {
|
protected void rootVariableUpdated(MIRootVariableObject rootObj) {
|
||||||
updatedRootList.add(rootObj);
|
updatedRootList.add(rootObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected Map<VariableObjectId, MIVariableObject> getLRUCache() {
|
protected Map<VariableObjectId, MIVariableObject> getLRUCache() {
|
||||||
return lruVariableList;
|
return lruVariableList;
|
||||||
|
|
|
@ -313,7 +313,7 @@ public abstract class AbstractCLIProcess extends Process
|
||||||
* does not send the secondary prompt for, but should.
|
* does not send the secondary prompt for, but should.
|
||||||
* If so, we'll need to pretend we are receiving the secondary prompt.
|
* If so, we'll need to pretend we are receiving the secondary prompt.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
protected boolean isMissingSecondaryPromptCommand(String operation) {
|
protected boolean isMissingSecondaryPromptCommand(String operation) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -355,7 +355,7 @@ public abstract class AbstractCLIProcess extends Process
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public boolean inMissingSecondaryPrompt() {
|
public boolean inMissingSecondaryPrompt() {
|
||||||
return fPrompt == PromptType.IN_SECONDARY_PROMPT_MISSING;
|
return fPrompt == PromptType.IN_SECONDARY_PROMPT_MISSING;
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
* time that tracepoint is hit. If no passcount is given, the trace experiment will run until stopped
|
* time that tracepoint is hit. If no passcount is given, the trace experiment will run until stopped
|
||||||
* explicitly by the user.
|
* explicitly by the user.
|
||||||
|
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class CLIPasscount extends CLICommand<MIInfo> {
|
public class CLIPasscount extends CLICommand<MIInfo> {
|
||||||
public CLIPasscount(IBreakpointsTargetDMContext ctx, int breakpoint, int passcount) {
|
public CLIPasscount(IBreakpointsTargetDMContext ctx, int breakpoint, int passcount) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
/**
|
/**
|
||||||
* This command turns on on off the recording of "Process Record and Replay".
|
* This command turns on on off the recording of "Process Record and Replay".
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class CLIRecord extends CLICommand<MIInfo> {
|
public class CLIRecord extends CLICommand<MIInfo> {
|
||||||
public CLIRecord(ICommandControlDMContext ctx, boolean enable) {
|
public CLIRecord(ICommandControlDMContext ctx, boolean enable) {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This command creates a tracepoint.
|
* This command creates a tracepoint.
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class CLITrace extends CLICommand<CLITraceInfo> {
|
public class CLITrace extends CLICommand<CLITraceInfo> {
|
||||||
public CLITrace(IBreakpointsTargetDMContext ctx, String location) {
|
public CLITrace(IBreakpointsTargetDMContext ctx, String location) {
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class MIBreakInsert extends MICommand<MIBreakInsertInfo>
|
||||||
* This constructor allows to specify if the breakpoint should actually be
|
* This constructor allows to specify if the breakpoint should actually be
|
||||||
* a tracepoint (this will only work starting with GDB 7.1)
|
* a tracepoint (this will only work starting with GDB 7.1)
|
||||||
* It also includes if a breakpoint should be created disabled (starting GDB 7.0)
|
* It also includes if a breakpoint should be created disabled (starting GDB 7.0)
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public MIBreakInsert(IBreakpointsTargetDMContext ctx, boolean isTemporary, boolean isHardware,
|
public MIBreakInsert(IBreakpointsTargetDMContext ctx, boolean isTemporary, boolean isHardware,
|
||||||
String condition, int ignoreCount, String line, int tid, boolean disabled, boolean isTracepoint) {
|
String condition, int ignoreCount, String line, int tid, boolean disabled, boolean isTracepoint) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
*
|
*
|
||||||
* Available starting with GDB 7.1
|
* Available starting with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class MIBreakPasscount extends MICommand<MIInfo>
|
public class MIBreakPasscount extends MICommand<MIInfo>
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class MIExecContinue extends MICommand<MIInfo>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public MIExecContinue(IExecutionDMContext dmc, String groupId) {
|
public MIExecContinue(IExecutionDMContext dmc, String groupId) {
|
||||||
this(dmc, false, groupId);
|
this(dmc, false, groupId);
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class MIExecInterrupt extends MICommand<MIInfo>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public MIExecInterrupt(IExecutionDMContext dmc, String groupId) {
|
public MIExecInterrupt(IExecutionDMContext dmc, String groupId) {
|
||||||
this(dmc, false, groupId);
|
this(dmc, false, groupId);
|
||||||
|
|
|
@ -16,7 +16,7 @@ import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommand
|
||||||
*
|
*
|
||||||
* -gdb-set pagination [on | off]
|
* -gdb-set pagination [on | off]
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MIGDBSetPagination extends MIGDBSet
|
public class MIGDBSetPagination extends MIGDBSet
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommand
|
||||||
*
|
*
|
||||||
* -gdb-set target-async [on | off]
|
* -gdb-set target-async [on | off]
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MIGDBSetTargetAsync extends MIGDBSet
|
public class MIGDBSetTargetAsync extends MIGDBSet
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.eclipse.cdt.dsf.datamodel.IDMContext;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITargetSelectTFile extends MITargetSelect {
|
public class MITargetSelectTFile extends MITargetSelect {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceDefineVariable extends MICommand<MIInfo> {
|
public class MITraceDefineVariable extends MICommand<MIInfo> {
|
||||||
public MITraceDefineVariable(ITraceTargetDMContext ctx, String varName) {
|
public MITraceDefineVariable(ITraceTargetDMContext ctx, String varName) {
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MITraceListVariablesInfo;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceListVariables extends MICommand<MITraceListVariablesInfo> {
|
public class MITraceListVariables extends MICommand<MITraceListVariablesInfo> {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceSave extends MICommand<MIInfo> {
|
public class MITraceSave extends MICommand<MIInfo> {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceStart extends MICommand<MIInfo> {
|
public class MITraceStart extends MICommand<MIInfo> {
|
||||||
public MITraceStart(ITraceTargetDMContext ctx) {
|
public MITraceStart(ITraceTargetDMContext ctx) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MITraceStatusInfo;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceStatus extends MICommand<MITraceStatusInfo> {
|
public class MITraceStatus extends MICommand<MITraceStatusInfo> {
|
||||||
public MITraceStatus(ITraceTargetDMContext ctx) {
|
public MITraceStatus(ITraceTargetDMContext ctx) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MITraceStopInfo;
|
||||||
*
|
*
|
||||||
* Available with GDB 7.1
|
* Available with GDB 7.1
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceStop extends MICommand<MITraceStopInfo> {
|
public class MITraceStop extends MICommand<MITraceStopInfo> {
|
||||||
public MITraceStop(ITraceTargetDMContext ctx) {
|
public MITraceStop(ITraceTargetDMContext ctx) {
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.macos.MacOSMIVarUpdateInfo;
|
||||||
* It seems that for MacOS, we must use the full string for print-values, such as
|
* It seems that for MacOS, we must use the full string for print-values, such as
|
||||||
* --all-values.
|
* --all-values.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MacOSMIVarUpdate extends MICommand<MacOSMIVarUpdateInfo> {
|
public class MacOSMIVarUpdate extends MICommand<MacOSMIVarUpdateInfo> {
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import java.util.regex.Pattern;
|
||||||
*
|
*
|
||||||
* ~"Tracepoint 2 at 0x4035a9: file /scratch/marc/test/src/main.cxx, line 109"
|
* ~"Tracepoint 2 at 0x4035a9: file /scratch/marc/test/src/main.cxx, line 109"
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class CLITraceInfo extends MIInfo {
|
public class CLITraceInfo extends MIInfo {
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ public class MIBreakpoint {
|
||||||
* To know of fast vs slow tracepoint use {@link getType()} and look
|
* To know of fast vs slow tracepoint use {@link getType()} and look
|
||||||
* for "tracepoint" or "fast tracepoint"
|
* for "tracepoint" or "fast tracepoint"
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public boolean isTracepoint() {
|
public boolean isTracepoint() {
|
||||||
return isTpt;
|
return isTpt;
|
||||||
|
@ -252,7 +252,7 @@ public class MIBreakpoint {
|
||||||
* Returns the passcount of a tracepoint. Will return 0 if this
|
* Returns the passcount of a tracepoint. Will return 0 if this
|
||||||
* breakpoint is not a tracepoint.
|
* breakpoint is not a tracepoint.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public int getPassCount() {
|
public int getPassCount() {
|
||||||
return passcount;
|
return passcount;
|
||||||
|
@ -261,7 +261,7 @@ public class MIBreakpoint {
|
||||||
/**
|
/**
|
||||||
* Set the passcount of a tracepoint. Will not do anything if
|
* Set the passcount of a tracepoint. Will not do anything if
|
||||||
* this breakpoint is not a tracepoint.
|
* this breakpoint is not a tracepoint.
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public void setPassCount(int count) {
|
public void setPassCount(int count) {
|
||||||
if (isTpt == false) return;
|
if (isTpt == false) return;
|
||||||
|
@ -271,7 +271,7 @@ public class MIBreakpoint {
|
||||||
/**
|
/**
|
||||||
* Return the commands associated with this breakpoint (or tracepoint)
|
* Return the commands associated with this breakpoint (or tracepoint)
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public String getCommands() {
|
public String getCommands() {
|
||||||
return commands;
|
return commands;
|
||||||
|
@ -280,7 +280,7 @@ public class MIBreakpoint {
|
||||||
/**
|
/**
|
||||||
* Sets the commands associated with this breakpoint (or tracepoint)
|
* Sets the commands associated with this breakpoint (or tracepoint)
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public void setCommands(String cmds) {
|
public void setCommands(String cmds) {
|
||||||
commands = cmds;
|
commands = cmds;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||||
* body=[variable={name="$trace_timestamp",initial="0"}
|
* body=[variable={name="$trace_timestamp",initial="0"}
|
||||||
* variable={name="$foo",initial="10",current="15"}]}
|
* variable={name="$foo",initial="10",current="15"}]}
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceListVariablesInfo extends MIInfo {
|
public class MITraceListVariablesInfo extends MIInfo {
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.eclipse.cdt.dsf.gdb.service.IGDBTraceControl.STOP_REASON_ENUM;
|
||||||
* ^done,supported="1",running="0",stop-reason="request",frames="0",buffer-size="5242880",buffer-free="5242880"
|
* ^done,supported="1",running="0",stop-reason="request",frames="0",buffer-size="5242880",buffer-free="5242880"
|
||||||
* ^done,supported="1",running="0",stop-reason="passcount",stopping-tracepoint="7",frames="3",buffer-size="5242880",buffer-free="5242862"
|
* ^done,supported="1",running="0",stop-reason="passcount",stopping-tracepoint="7",frames="3",buffer-size="5242880",buffer-free="5242862"
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceStatusInfo extends MIInfo {
|
public class MITraceStatusInfo extends MIInfo {
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.eclipse.cdt.dsf.mi.service.command.output;
|
||||||
* The output is therefore a subset of the output of the -trace-status command.
|
* The output is therefore a subset of the output of the -trace-status command.
|
||||||
* The way MI fields are optional allows us to simply re-use the MITraceStatusInfo class
|
* The way MI fields are optional allows us to simply re-use the MITraceStatusInfo class
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MITraceStopInfo extends MITraceStatusInfo {
|
public class MITraceStopInfo extends MITraceStatusInfo {
|
||||||
public MITraceStopInfo(MIOutput out) {
|
public MITraceStopInfo(MIOutput out) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIVarChange;
|
||||||
* -var-update *
|
* -var-update *
|
||||||
* ^done,changelist=[varobj={name="var1",in_scope="true",type_changed="false"}],time={.....}
|
* ^done,changelist=[varobj={name="var1",in_scope="true",type_changed="false"}],time={.....}
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class MacOSMIVarUpdateInfo extends MIInfo {
|
public class MacOSMIVarUpdateInfo extends MIInfo {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue