mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
Added initial implementation of Process IO support (bug# 160040).
Refactored service for sending/receiving MI commands to debugger.
This commit is contained in:
parent
c5b151520f
commit
792bdef0f8
3 changed files with 2 additions and 47 deletions
|
@ -81,6 +81,7 @@ public class StandardLaunchRootLayoutNode extends AbstractVMRootLayoutNode
|
|||
childNodeDeltas, rootDelta, event,
|
||||
new Done() {
|
||||
public void run() {
|
||||
if (isDisposed()) return;
|
||||
if (propagateError(getExecutor(), done, "Failed to create delta.")); //$NON-NLS-1$
|
||||
done.setData(viewRootDelta);
|
||||
getExecutor().execute(done);
|
||||
|
|
|
@ -52,6 +52,7 @@ public class RegisterLayoutNode extends AbstractDMVMLayoutNode<IRegisterDMData>
|
|||
public void run() {
|
||||
if (!getStatus().isOK()) {
|
||||
handleFailedUpdate(update);
|
||||
return;
|
||||
}
|
||||
fillUpdateWithVMCs(update, getData());
|
||||
update.done();
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006 Wind River 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:
|
||||
* Wind River Systems - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.dd.dsf.debug.service;
|
||||
|
||||
import org.eclipse.dd.dsf.service.IDsfService;
|
||||
|
||||
|
||||
/**
|
||||
* Service representing an external process that is part of the debugger back
|
||||
* end implementation. Having this service allows UI and other clients
|
||||
* access to the java.lang.Process object for monitoring. E.g. for displaying
|
||||
* in Debug view and channeling I/O to the console view.
|
||||
*/
|
||||
public interface IBackEndProcess extends IDsfService {
|
||||
/**
|
||||
* Optional property identifying the process among other services.
|
||||
* Since there could be multiple instances of this service running at the
|
||||
* same time, a service property is needed to allow clients to distinguish
|
||||
* between them.
|
||||
*/
|
||||
static final String PROCESS_ID = "org.eclipse.dsdp.DSF.debug.BackendProcess.PROCESS_ID"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Event indicating that the back end process has terminated.
|
||||
*/
|
||||
public interface IExitedEvent {}
|
||||
|
||||
/**
|
||||
* Returns the instance of the java process object representing the back
|
||||
* end process.
|
||||
* @return
|
||||
*/
|
||||
Process getProcess();
|
||||
|
||||
/**
|
||||
* Returns true if back-end process has exited.
|
||||
*/
|
||||
boolean isExited();
|
||||
}
|
Loading…
Add table
Reference in a new issue