diff --git a/debug/org.eclipse.cdt.debug.core/.project b/debug/org.eclipse.cdt.debug.core/.project index d42c04bc6a1..5a26a9020e9 100644 --- a/debug/org.eclipse.cdt.debug.core/.project +++ b/debug/org.eclipse.cdt.debug.core/.project @@ -20,9 +20,15 @@ + + org.eclipse.pde.api.tools.apiAnalysisBuilder + + + org.eclipse.jdt.core.javanature org.eclipse.pde.PluginNature + org.eclipse.pde.api.tools.apiAnalysisNature diff --git a/debug/org.eclipse.cdt.debug.core/META-INF/MANIFEST.MF b/debug/org.eclipse.cdt.debug.core/META-INF/MANIFEST.MF index 4730f7c0b33..7912d504690 100644 --- a/debug/org.eclipse.cdt.debug.core/META-INF/MANIFEST.MF +++ b/debug/org.eclipse.cdt.debug.core/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.cdt.debug.core; singleton:=true -Bundle-Version: 5.0.100.qualifier +Bundle-Version: 6.0.0.qualifier Bundle-Activator: org.eclipse.cdt.debug.core.CDebugCorePlugin Bundle-Vendor: %providerName Bundle-Localization: plugin @@ -18,7 +18,7 @@ Export-Package: org.eclipse.cdt.debug.core, org.eclipse.cdt.debug.core.sourcelookup, org.eclipse.cdt.debug.internal.core, org.eclipse.cdt.debug.internal.core.breakpoints, - org.eclipse.cdt.debug.internal.core.model, + org.eclipse.cdt.debug.internal.core.model;x-internal:=true, org.eclipse.cdt.debug.internal.core.sourcelookup Require-Bundle: org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", org.eclipse.debug.core;bundle-version="[3.2.0,4.0.0)", diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIDisposable.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIDisposable.java index a51ba6fb906..d6dc2e1d16e 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIDisposable.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIDisposable.java @@ -26,6 +26,7 @@ package org.eclipse.cdt.debug.core.cdi.model; *
  • {@link ICDIStackFrame} *
  • {@link ICDIThread} * + * @since 6.0 */ public interface ICDIDisposable { /** diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteMoveInstructionPointer.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteMoveInstructionPointer.java index c817c112c44..696d14ae545 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteMoveInstructionPointer.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteMoveInstructionPointer.java @@ -16,6 +16,7 @@ import org.eclipse.cdt.debug.core.cdi.ICDILocation; /** * Provides the ability to perform a jump without changing the run state of a thread or debug target. + * @since 6.0 */ public interface ICDIExecuteMoveInstructionPointer { diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteResume.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteResume.java index 3b565a008c9..fc6ea13f61f 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteResume.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExecuteResume.java @@ -16,6 +16,7 @@ import org.eclipse.cdt.debug.core.cdi.ICDILocation; /** * Provides the ability to resume a thread or debug target. + * @since 6.0 */ public interface ICDIExecuteResume { diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIBigIntegerValue.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIBigIntegerValue.java index 4729f9ce36b..7f0680a2f50 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIBigIntegerValue.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIBigIntegerValue.java @@ -16,7 +16,7 @@ package org.eclipse.cdt.debug.core.cdi.model.type; * * Represents the value of a variable. * - * @since Nov 18, 2008 + * @since Nov 6.0 , 2008 */ public interface ICDIBigIntegerValue extends ICDIIntegralValue { diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java index 8483f3c2dc9..63886cd8478 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java @@ -20,6 +20,11 @@ import java.util.HashMap; import java.util.List; import org.eclipse.cdt.debug.core.CDebugCorePlugin; +import org.eclipse.cdt.debug.internal.core.executables.ExecutablesChangeEvent; +import org.eclipse.cdt.debug.internal.core.executables.StandardExecutableImporter; +import org.eclipse.cdt.debug.internal.core.executables.StandardExecutableProvider; +import org.eclipse.cdt.debug.internal.core.executables.StandardSourceFileRemapping; +import org.eclipse.cdt.debug.internal.core.executables.StandardSourceFilesProvider; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; @@ -101,10 +106,16 @@ public class ExecutablesManager extends PlatformObject { executableProviders.add(provider); } + /** + * @since 6.0 + */ public void addSourceFilesProvider(ISourceFilesProvider provider) { sourceFileProviders.add(provider); } + /** + * @since 6.0 + */ public void removeSourceFilesProvider(ISourceFilesProvider provider) { sourceFileProviders.remove(provider); } @@ -178,6 +189,9 @@ public class ExecutablesManager extends PlatformObject { } } + /** + * @since 6.0 + */ public String remapSourceFile(Executable executable, String filePath) { synchronized (sourceFileRemappings) { for (ISourceFileRemapping remapping : sourceFileRemappings) { @@ -231,6 +245,9 @@ public class ExecutablesManager extends PlatformObject { return executableProviders.toArray(new IExecutableProvider[executableProviders.size()]); } + /** + * @since 6.0 + */ public ISourceFilesProvider[] getSourceFileProviders() { return sourceFileProviders.toArray(new ISourceFilesProvider[sourceFileProviders.size()]); } @@ -254,6 +271,9 @@ public class ExecutablesManager extends PlatformObject { } } + /** + * @since 6.0 + */ public String[] getSourceFiles(final Executable executable, IProgressMonitor monitor) { String[] result = new String[0]; @@ -284,6 +304,9 @@ public class ExecutablesManager extends PlatformObject { return result; } + /** + * @since 6.0 + */ public IStatus removeExecutables(Executable[] executables, IProgressMonitor monitor) { IExecutableProvider[] exeProviders = getExecutableProviders(); @@ -326,6 +349,9 @@ public class ExecutablesManager extends PlatformObject { return result; } + /** + * @since 6.0 + */ public void setRefreshNeeded(boolean refresh) { refreshNeeded = true; } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableImporter.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableImporter.java index 9800a0254ae..619664faf6d 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableImporter.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableImporter.java @@ -14,9 +14,18 @@ import org.eclipse.core.runtime.IProgressMonitor; public interface IExecutableImporter { - static int LOW_PRIORITY = 25; - static int NORMAL_PRIORITY = 50; - static int HIGH_PRIORITY = 75; + /** + * @since 6.0 + */ + public static final int LOW_PRIORITY = 25; + /** + * @since 6.0 + */ + public static final int NORMAL_PRIORITY = 50; + /** + * @since 6.0 + */ + public static final int HIGH_PRIORITY = 75; /** * Gets the priority to be used when importing these executables. @@ -26,9 +35,13 @@ public interface IExecutableImporter { * * @param executable * @return the priority level to be used for this ISourceFilesProvider + * @since 6.0 */ int getPriority(String[] fileNames); + /** + * @since 6.0 + */ public abstract boolean importExecutables(String[] fileNames, IProgressMonitor monitor); } \ No newline at end of file diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableProvider.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableProvider.java index 09b3267bbbc..7b798f7e1ef 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableProvider.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableProvider.java @@ -22,9 +22,18 @@ import org.eclipse.core.runtime.IStatus; */ public interface IExecutableProvider { - static int LOW_PRIORITY = 25; - static int NORMAL_PRIORITY = 50; - static int HIGH_PRIORITY = 75; + /** + * @since 6.0 + */ + public static final int LOW_PRIORITY = 25; + /** + * @since 6.0 + */ + public static final int NORMAL_PRIORITY = 50; + /** + * @since 6.0 + */ + public static final int HIGH_PRIORITY = 75; /** * Gets the priority to be used when providing a list of executables. @@ -33,11 +42,18 @@ public interface IExecutableProvider { * * @param executable * @return the priority level to be used for this ISourceFilesProvider + * @since 6.0 */ int getPriority(); + /** + * @since 6.0 + */ Executable[] getExecutables(IProgressMonitor monitor); + /** + * @since 6.0 + */ IStatus removeExecutable(Executable executable, IProgressMonitor monitor); } \ No newline at end of file diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutablesChangeEvent.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutablesChangeEvent.java index 3c559eadae4..9c7cab2285c 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutablesChangeEvent.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutablesChangeEvent.java @@ -11,9 +11,16 @@ package org.eclipse.cdt.debug.core.executables; + public interface IExecutablesChangeEvent { + /** + * @since 6.0 + */ public Executable[] getCurrentExecutables(); + /** + * @since 6.0 + */ public Executable[] getPreviousExecutables(); } \ No newline at end of file diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFileRemapping.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFileRemapping.java index ff0a0d60f74..23222b52ace 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFileRemapping.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFileRemapping.java @@ -10,6 +10,7 @@ *******************************************************************************/ package org.eclipse.cdt.debug.core.executables; + /** * ISourceFileRemapping is used by the Executables Manager when finding missing * source files. @@ -19,6 +20,9 @@ package org.eclipse.cdt.debug.core.executables; */ public interface ISourceFileRemapping { + /** + * @since 6.0 + */ String remapSourceFile(Executable executable, String filePath); } \ No newline at end of file diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFilesProvider.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFilesProvider.java index f6171005db4..2f06ef095d1 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFilesProvider.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ISourceFilesProvider.java @@ -16,14 +16,15 @@ import org.eclipse.core.runtime.IProgressMonitor; * ISourceFileProvider supplies a list of source files used by a given Executable. * * @author Ken Ryall + * @since 6.0 * */ public interface ISourceFilesProvider { - static int LOW_PRIORITY = 25; - static int NORMAL_PRIORITY = 50; - static int HIGH_PRIORITY = 75; + public static final int LOW_PRIORITY = 25; + public static final int NORMAL_PRIORITY = 50; + public static final int HIGH_PRIORITY = 75; /** * Gets the priority to be used for this executable. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToAddress.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToAddress.java index 833fbc85385..dbaac339b03 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToAddress.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToAddress.java @@ -1,34 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2008 Freescale Semiconductor 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: - * Freescale Semiconductor - Initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.debug.core.model; - -import org.eclipse.cdt.core.IAddress; -import org.eclipse.debug.core.DebugException; - -/** - * Provides the ability to move the instruction pointer of a debug target to the given address. - */ -public interface IMoveToAddress { - - /** - * Returns whether this operation is currently available for this element. - * - * @return whether this operation is currently available - */ - public boolean canMoveToAddress( IAddress address ); - - /** - * Causes this element can move the instruction pointer to the specified address. - * - * @exception DebugException on failure. Reasons include: - */ - public void moveToAddress( IAddress address ) throws DebugException; -} +/******************************************************************************* + * Copyright (c) 2008 Freescale Semiconductor 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: + * Freescale Semiconductor - Initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.debug.core.model; + +import org.eclipse.cdt.core.IAddress; +import org.eclipse.debug.core.DebugException; + +/** + * Provides the ability to move the instruction pointer of a debug target to the given address. + * @since 6.0 + */ +public interface IMoveToAddress { + + /** + * Returns whether this operation is currently available for this element. + * + * @return whether this operation is currently available + */ + public boolean canMoveToAddress( IAddress address ); + + /** + * Causes this element can move the instruction pointer to the specified address. + * + * @exception DebugException on failure. Reasons include: + */ + public void moveToAddress( IAddress address ) throws DebugException; +} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToLine.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToLine.java index 134cabb95a9..c407453ed88 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToLine.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IMoveToLine.java @@ -1,33 +1,34 @@ -/******************************************************************************* - * Copyright (c) 2008 Freescale Semiconductor 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: - * Freescale Semiconductor - Initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.debug.core.model; - -import org.eclipse.debug.core.DebugException; - -/** - * Provides the ability to move the instruction pointer of a debug target to the given line. - */ -public interface IMoveToLine { - - /** - * Returns whether this operation is currently available for this file and line number. - * - * @return whether this operation is currently available - */ - public boolean canMoveToLine( String fileName, int lineNumber ); - - /** - * Causes this element to move the instruction pointer to the specified line. - * - * @exception DebugException on failure. Reasons include: - */ - public void moveToLine( String fileName, int lineNumber ) throws DebugException; -} +/******************************************************************************* + * Copyright (c) 2008 Freescale Semiconductor 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: + * Freescale Semiconductor - Initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.debug.core.model; + +import org.eclipse.debug.core.DebugException; + +/** + * Provides the ability to move the instruction pointer of a debug target to the given line. + * @since 6.0 + */ +public interface IMoveToLine { + + /** + * Returns whether this operation is currently available for this file and line number. + * + * @return whether this operation is currently available + */ + public boolean canMoveToLine( String fileName, int lineNumber ); + + /** + * Causes this element to move the instruction pointer to the specified line. + * + * @exception DebugException on failure. Reasons include: + */ + public void moveToLine( String fileName, int lineNumber ) throws DebugException; +} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtAddress.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtAddress.java index 5f2feac8245..ca67dbd7d00 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtAddress.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtAddress.java @@ -1,34 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2004, 2008 QNX Software Systems 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: - * QNX Software Systems - Initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.debug.core.model; - -import org.eclipse.cdt.core.IAddress; -import org.eclipse.debug.core.DebugException; - -/** - * Provides the ability to resume a debug target at the given address. - */ -public interface IResumeAtAddress { - - /** - * Returns whether this operation is currently available for this element. - * - * @return whether this operation is currently available - */ - public boolean canResumeAtAddress( IAddress address ); - - /** - * Causes this element to resume the execution at the specified address. - * - * @exception DebugException on failure. Reasons include: - */ - public void resumeAtAddress( IAddress address ) throws DebugException; -} +/******************************************************************************* + * Copyright (c) 2004, 2008 QNX Software Systems 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: + * QNX Software Systems - Initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.debug.core.model; + +import org.eclipse.cdt.core.IAddress; +import org.eclipse.debug.core.DebugException; + +/** + * Provides the ability to resume a debug target at the given address. + * @since 6.0 + */ +public interface IResumeAtAddress { + + /** + * Returns whether this operation is currently available for this element. + * + * @return whether this operation is currently available + */ + public boolean canResumeAtAddress( IAddress address ); + + /** + * Causes this element to resume the execution at the specified address. + * + * @exception DebugException on failure. Reasons include: + */ + public void resumeAtAddress( IAddress address ) throws DebugException; +} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtLine.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtLine.java index 2f281216690..00f2d1ddd02 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtLine.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IResumeAtLine.java @@ -1,49 +1,50 @@ -/******************************************************************************* - * Copyright (c) 2004, 2006 QNX Software Systems 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: - * QNX Software Systems - Initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.debug.core.model; - -import org.eclipse.core.resources.IFile; -import org.eclipse.debug.core.DebugException; - -/** - * Provides the ability to resume a debug target at the given line. - */ -public interface IResumeAtLine { - - /** - * Returns whether this operation is currently available for this file and line number. - * - * @return whether this operation is currently available - */ - public boolean canResumeAtLine( IFile file, int lineNumber ); - - /** - * Causes this element to resume the execution at the specified line. - * - * @exception DebugException - * on failure. Reasons include: - */ - public void resumeAtLine( IFile file, int lineNumber ) throws DebugException; - - /** - * Returns whether this operation is currently available for this file and line number. - * - * @return whether this operation is currently available - */ - public boolean canResumeAtLine( String fileName, int lineNumber ); - - /** - * Causes this element to resume the execution at the specified line. - * - * @exception DebugException on failure. Reasons include: - */ - public void resumeAtLine( String fileName, int lineNumber ) throws DebugException; -} +/******************************************************************************* + * Copyright (c) 2004, 2006 QNX Software Systems 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: + * QNX Software Systems - Initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.debug.core.model; + +import org.eclipse.core.resources.IFile; +import org.eclipse.debug.core.DebugException; + +/** + * Provides the ability to resume a debug target at the given line. + * @since 6.0 + */ +public interface IResumeAtLine { + + /** + * Returns whether this operation is currently available for this file and line number. + * + * @return whether this operation is currently available + */ + public boolean canResumeAtLine( IFile file, int lineNumber ); + + /** + * Causes this element to resume the execution at the specified line. + * + * @exception DebugException + * on failure. Reasons include: + */ + public void resumeAtLine( IFile file, int lineNumber ) throws DebugException; + + /** + * Returns whether this operation is currently available for this file and line number. + * + * @return whether this operation is currently available + */ + public boolean canResumeAtLine( String fileName, int lineNumber ); + + /** + * Causes this element to resume the execution at the specified line. + * + * @exception DebugException on failure. Reasons include: + */ + public void resumeAtLine( String fileName, int lineNumber ) throws DebugException; +} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesChangeEvent.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/ExecutablesChangeEvent.java similarity index 84% rename from debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesChangeEvent.java rename to debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/ExecutablesChangeEvent.java index 1f05fd8e939..9ac64ad6bec 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesChangeEvent.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/ExecutablesChangeEvent.java @@ -8,8 +8,10 @@ * Contributors: * Nokia - Initial API and implementation *******************************************************************************/ -package org.eclipse.cdt.debug.core.executables; +package org.eclipse.cdt.debug.internal.core.executables; +import org.eclipse.cdt.debug.core.executables.Executable; +import org.eclipse.cdt.debug.core.executables.IExecutablesChangeEvent; import org.eclipse.core.runtime.PlatformObject; public class ExecutablesChangeEvent extends PlatformObject implements IExecutablesChangeEvent { diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardExecutableImporter.java similarity index 97% rename from debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java rename to debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardExecutableImporter.java index 88129a6db93..3492dc6c8ad 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardExecutableImporter.java @@ -8,7 +8,7 @@ * Contributors: * Nokia - Initial API and implementation *******************************************************************************/ -package org.eclipse.cdt.debug.core.executables; +package org.eclipse.cdt.debug.internal.core.executables; import java.io.File; import java.io.IOException; @@ -21,6 +21,9 @@ import org.eclipse.cdt.core.model.ICProject; import org.eclipse.cdt.core.settings.model.ICConfigExtensionReference; import org.eclipse.cdt.core.settings.model.ICProjectDescription; import org.eclipse.cdt.debug.core.CDebugCorePlugin; +import org.eclipse.cdt.debug.core.executables.Executable; +import org.eclipse.cdt.debug.core.executables.ExecutablesManager; +import org.eclipse.cdt.debug.core.executables.IExecutableImporter; import org.eclipse.core.filesystem.EFS; import org.eclipse.core.filesystem.IFileStore; import org.eclipse.core.resources.IContainer; diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardExecutableProvider.java similarity index 96% rename from debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java rename to debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardExecutableProvider.java index 384fdfe45d5..3f8542b73f0 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardExecutableProvider.java @@ -9,7 +9,7 @@ * Nokia - Initial API and implementation *******************************************************************************/ -package org.eclipse.cdt.debug.core.executables; +package org.eclipse.cdt.debug.internal.core.executables; import java.util.ArrayList; @@ -21,6 +21,9 @@ import org.eclipse.cdt.core.settings.model.CProjectDescriptionEvent; import org.eclipse.cdt.core.settings.model.ICProjectDescription; import org.eclipse.cdt.core.settings.model.ICProjectDescriptionListener; import org.eclipse.cdt.debug.core.CDebugCorePlugin; +import org.eclipse.cdt.debug.core.executables.Executable; +import org.eclipse.cdt.debug.core.executables.ExecutablesManager; +import org.eclipse.cdt.debug.core.executables.IExecutableProvider; import org.eclipse.cdt.internal.core.model.CModelManager; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardSourceFileRemapping.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFileRemapping.java similarity index 92% rename from debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardSourceFileRemapping.java rename to debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFileRemapping.java index 1afcea46431..150fe0c2cfd 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardSourceFileRemapping.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFileRemapping.java @@ -9,9 +9,11 @@ * Nokia - Initial API and implementation *******************************************************************************/ -package org.eclipse.cdt.debug.core.executables; +package org.eclipse.cdt.debug.internal.core.executables; import org.eclipse.cdt.debug.core.CDebugCorePlugin; +import org.eclipse.cdt.debug.core.executables.Executable; +import org.eclipse.cdt.debug.core.executables.ISourceFileRemapping; import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator; import org.eclipse.cdt.debug.internal.core.sourcelookup.CSourceLookupDirector; import org.eclipse.core.runtime.CoreException; diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardSourceFilesProvider.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFilesProvider.java similarity index 94% rename from debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardSourceFilesProvider.java rename to debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFilesProvider.java index d8cf3f17474..e9a4f5be329 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardSourceFilesProvider.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFilesProvider.java @@ -1,4 +1,4 @@ -package org.eclipse.cdt.debug.core.executables; +package org.eclipse.cdt.debug.internal.core.executables; import java.io.File; import java.io.FileInputStream; @@ -8,6 +8,8 @@ import java.io.InputStream; import org.eclipse.cdt.core.IBinaryParser; import org.eclipse.cdt.core.ISymbolReader; import org.eclipse.cdt.core.IBinaryParser.IBinaryFile; +import org.eclipse.cdt.debug.core.executables.Executable; +import org.eclipse.cdt.debug.core.executables.ISourceFilesProvider; import org.eclipse.cdt.internal.core.model.BinaryParserConfig; import org.eclipse.cdt.internal.core.model.CModelManager; import org.eclipse.core.resources.IFile; diff --git a/debug/org.eclipse.cdt.debug.mi.core/META-INF/MANIFEST.MF b/debug/org.eclipse.cdt.debug.mi.core/META-INF/MANIFEST.MF index ffe4c9de3d8..8d01592eb87 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/META-INF/MANIFEST.MF +++ b/debug/org.eclipse.cdt.debug.mi.core/META-INF/MANIFEST.MF @@ -18,7 +18,7 @@ Export-Package: org.eclipse.cdt.debug.mi.core, org.eclipse.cdt.debug.mi.core.command.factories.win32, org.eclipse.cdt.debug.mi.core.event, org.eclipse.cdt.debug.mi.core.output -Require-Bundle: org.eclipse.cdt.debug.core;bundle-version="[5.0.0,6.0.0)", +Require-Bundle: org.eclipse.cdt.debug.core;bundle-version="[6.0.0,7.0.0)", org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", org.eclipse.debug.core;bundle-version="[3.2.0,4.0.0)", org.eclipse.cdt.core;bundle-version="[5.0.0,6.0.0)", diff --git a/debug/org.eclipse.cdt.debug.mi.ui/META-INF/MANIFEST.MF b/debug/org.eclipse.cdt.debug.mi.ui/META-INF/MANIFEST.MF index b9ac509d18f..1524ac70708 100644 --- a/debug/org.eclipse.cdt.debug.mi.ui/META-INF/MANIFEST.MF +++ b/debug/org.eclipse.cdt.debug.mi.ui/META-INF/MANIFEST.MF @@ -16,7 +16,7 @@ Require-Bundle: org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", org.eclipse.ui;bundle-version="[3.2.0,4.0.0)", org.eclipse.cdt.debug.mi.core;bundle-version="[5.0.0,6.0.0)", org.eclipse.cdt.debug.ui;bundle-version="[5.0.0,6.0.0)", - org.eclipse.cdt.debug.core;bundle-version="[5.0.0,6.0.0)", + org.eclipse.cdt.debug.core;bundle-version="[6.0.0,7.0.0)", org.eclipse.cdt.core;bundle-version="[5.0.0,6.0.0)", org.eclipse.cdt.ui;bundle-version="[5.0.0,6.0.0)", org.eclipse.debug.core;bundle-version="[3.2.0,4.0.0)", diff --git a/debug/org.eclipse.cdt.debug.ui/META-INF/MANIFEST.MF b/debug/org.eclipse.cdt.debug.ui/META-INF/MANIFEST.MF index 74787f6f380..b23ae34ab8a 100644 --- a/debug/org.eclipse.cdt.debug.ui/META-INF/MANIFEST.MF +++ b/debug/org.eclipse.cdt.debug.ui/META-INF/MANIFEST.MF @@ -33,7 +33,7 @@ Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)", org.eclipse.ui;bundle-version="[3.2.0,4.0.0)", org.eclipse.debug.ui;bundle-version="[3.3.100,4.0.0)", org.eclipse.debug.core;bundle-version="[3.4.0,4.0.0)", - org.eclipse.cdt.debug.core;bundle-version="[5.0.0,6.0.0)", + org.eclipse.cdt.debug.core;bundle-version="[6.0.0,7.0.0)", org.eclipse.cdt.ui;bundle-version="[5.0.0,6.0.0)", org.eclipse.cdt.core;bundle-version="[5.0.0,6.0.0)", org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)", diff --git a/launch/org.eclipse.cdt.launch/META-INF/MANIFEST.MF b/launch/org.eclipse.cdt.launch/META-INF/MANIFEST.MF index 8a017bbc57c..9e6c26d08a1 100644 --- a/launch/org.eclipse.cdt.launch/META-INF/MANIFEST.MF +++ b/launch/org.eclipse.cdt.launch/META-INF/MANIFEST.MF @@ -18,7 +18,7 @@ Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)", org.eclipse.ui;bundle-version="[3.2.0,4.0.0)", org.eclipse.cdt.core;bundle-version="[5.0.0,6.0.0)", org.eclipse.cdt.ui;bundle-version="[5.0.0,6.0.0)", - org.eclipse.cdt.debug.core;bundle-version="[5.0.0,6.0.0)", + org.eclipse.cdt.debug.core;bundle-version="[6.0.0,7.0.0)", org.eclipse.cdt.debug.ui;bundle-version="[5.0.0,6.0.0)", org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)", org.eclipse.core.variables;bundle-version="[3.1.100,4.0.0)"