1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-27 10:55:33 +02:00

Implementation of the 'dispose' method for 'CFormattedMemoryBlock'.

This commit is contained in:
Mikhail Khodjaiants 2002-10-18 21:54:37 +00:00
parent efefa375bb
commit 60e7f0dd37
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-10-17 Mikhail Khodjaiants
Implementing the memory view support:
* CFormattedMemoryBlock.java: implementation of the 'dispose' method added.
2002-10-17 Mikhail Khodjaiants 2002-10-17 Mikhail Khodjaiants
Implementing the memory view support: Implementing the memory view support:
* CDebugModel.java * CDebugModel.java

View file

@ -8,6 +8,7 @@ package org.eclipse.cdt.debug.internal.core.model;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
import org.eclipse.cdt.debug.core.IFormattedMemoryBlock; import org.eclipse.cdt.debug.core.IFormattedMemoryBlock;
import org.eclipse.cdt.debug.core.IFormattedMemoryBlockRow; import org.eclipse.cdt.debug.core.IFormattedMemoryBlockRow;
import org.eclipse.cdt.debug.core.cdi.CDIException; import org.eclipse.cdt.debug.core.cdi.CDIException;
@ -313,6 +314,18 @@ public class CFormattedMemoryBlock extends CDebugElement implements IFormattedMe
*/ */
public void dispose() public void dispose()
{ {
if ( fCDIMemoryBlock != null )
{
try
{
((CDebugTarget)getDebugTarget()).getCDISession().getMemoryManager().removeBlock( fCDIMemoryBlock );
}
catch( CDIException e )
{
CDebugCorePlugin.log( e );
}
fCDIMemoryBlock = null;
}
} }
/* (non-Javadoc) /* (non-Javadoc)