1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Unable to terminate post mortem debugging session.

Extended the 'CDebugTarget' class to overload the 'terminate' and 'canTerminate' methods.
This commit is contained in:
Mikhail Khodjaiants 2003-08-20 17:02:35 +00:00
parent 5033de1c2e
commit cee6254f9e
3 changed files with 68 additions and 9 deletions

View file

@ -1,3 +1,9 @@
2003-08-20 Mikhail Khodjaiants
Unable to terminate post mortem debugging session.
Extended the 'CDebugTarget' class to overload the 'terminate' and 'canTerminate' methods.
* CDebugModel.java
* CCoreFileDebugTarget.java: new
2003-08-19 Mikhail Khodjaiants
Create ICDIVariableObject for each array partition to compute a detail panel's value.
* CArrayPartition.java

View file

@ -36,6 +36,7 @@ import org.eclipse.cdt.debug.internal.core.breakpoints.CAddressBreakpoint;
import org.eclipse.cdt.debug.internal.core.breakpoints.CFunctionBreakpoint;
import org.eclipse.cdt.debug.internal.core.breakpoints.CLineBreakpoint;
import org.eclipse.cdt.debug.internal.core.breakpoints.CWatchpoint;
import org.eclipse.cdt.debug.internal.core.model.CCoreFileDebugTarget;
import org.eclipse.cdt.debug.internal.core.model.CDebugTarget;
import org.eclipse.cdt.debug.internal.core.model.CExpression;
import org.eclipse.cdt.debug.internal.core.model.CFormattedMemoryBlock;
@ -222,15 +223,11 @@ public class CDebugModel
{
public void run( IProgressMonitor m )
{
target[0] = new CDebugTarget( launch,
ICDebugTargetType.TARGET_TYPE_LOCAL_CORE_DUMP,
cdiTarget,
name,
null,
debuggerProcess,
file,
true,
false );
target[0] = new CCoreFileDebugTarget( launch,
cdiTarget,
name,
debuggerProcess,
file );
}
};
try

View file

@ -0,0 +1,56 @@
/*
*(c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.internal.core.model;
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
import org.eclipse.cdt.debug.core.model.ICDebugTargetType;
import org.eclipse.core.resources.IFile;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
/**
* Enter type comment.
*
* @since Aug 20, 2003
*/
public class CCoreFileDebugTarget extends CDebugTarget
{
public CCoreFileDebugTarget( ILaunch launch,
ICDITarget cdiTarget,
String name,
IProcess debuggerProcess,
IFile file )
{
super( launch,
ICDebugTargetType.TARGET_TYPE_LOCAL_CORE_DUMP,
cdiTarget,
name,
null,
debuggerProcess,
file,
true,
false );
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ITerminate#canTerminate()
*/
public boolean canTerminate()
{
return !isTerminated();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ITerminate#terminate()
*/
public void terminate() throws DebugException
{
setTerminating( true );
terminated();
}
}