mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Applied patch implementing tracking of selected stack frame (bug 159696).
This commit is contained in:
parent
6e3bf13abd
commit
434c29ab17
2 changed files with 12 additions and 0 deletions
|
@ -7,10 +7,13 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Wind River Systems - initial API and implementation
|
||||
* Ericsson - Modified for additional features in DSF Reference implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dd.dsf.debug.service.command;
|
||||
|
||||
import org.eclipse.dd.dsf.datamodel.IDMContext;
|
||||
|
||||
|
||||
/**
|
||||
* Command interface for creating and manipulating GDB/MI commands
|
||||
|
@ -31,6 +34,12 @@ public interface ICommand<V extends ICommandResult> {
|
|||
* @return newly created command, or null if command cannot be coalesced
|
||||
*/
|
||||
public ICommand<? extends ICommandResult> coalesceWith( ICommand<? extends ICommandResult> command );
|
||||
|
||||
/**
|
||||
* Returns the context that this command is to be evaluated in. May be null
|
||||
* if the command does not need to be evaluated in a specific context.
|
||||
*/
|
||||
public IDMContext<?> getContext();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Wind River Systems - initial API and implementation
|
||||
* Ericsson - Modified for additional features in DSF Reference implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.dd.dsf.datamodel;
|
||||
|
||||
|
@ -31,6 +32,8 @@ public class DMContexts {
|
|||
@ThreadSafe
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <V extends IDMContext> V getAncestorOfType(IDMContext ctx, Class<V> ancestorType) {
|
||||
if(ctx == null)
|
||||
return null;
|
||||
if (ancestorType.isAssignableFrom(ctx.getClass())) {
|
||||
return (V)ctx;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue