mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Fix for PR 42790: Memory view is not cleared when target is terminated
This commit is contained in:
parent
5a1119fd18
commit
95edb19234
3 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-09-10 Mikhail Khodjaiants
|
||||||
|
Fix for PR 42790: Memory view is not cleared when target is terminated.
|
||||||
|
* CFormattedMemoryBlock.java: fire 'terminate' event when block is disposing.
|
||||||
|
* CMemoryManager.java: implementation of 'dispose'.
|
||||||
|
|
||||||
2003-09-09 Mikhail Khodjaiants
|
2003-09-09 Mikhail Khodjaiants
|
||||||
Fix for PR 39680: Gash in error message for memory view.
|
Fix for PR 39680: Gash in error message for memory view.
|
||||||
* CDebugModel.java
|
* CDebugModel.java
|
||||||
|
|
|
@ -45,11 +45,14 @@ public class CMemoryManager implements ICMemoryManager
|
||||||
public synchronized void removeAllBlocks() throws DebugException
|
public synchronized void removeAllBlocks() throws DebugException
|
||||||
{
|
{
|
||||||
for ( int i = 0; i < fBlocks.length; ++i )
|
for ( int i = 0; i < fBlocks.length; ++i )
|
||||||
|
{
|
||||||
|
if ( fBlocks[i] != null )
|
||||||
{
|
{
|
||||||
fBlocks[i].dispose();
|
fBlocks[i].dispose();
|
||||||
fBlocks[i] = null;
|
fBlocks[i] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.debug.core.ICMemoryManager#getBlock(int)
|
* @see org.eclipse.cdt.debug.core.ICMemoryManager#getBlock(int)
|
||||||
|
@ -99,6 +102,14 @@ public class CMemoryManager implements ICMemoryManager
|
||||||
|
|
||||||
public void dispose()
|
public void dispose()
|
||||||
{
|
{
|
||||||
|
for ( int i = 0; i < fBlocks.length; ++i )
|
||||||
|
{
|
||||||
|
if ( fBlocks[i] != null )
|
||||||
|
{
|
||||||
|
fBlocks[i].dispose();
|
||||||
|
fBlocks[i] = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
|
@ -380,6 +380,7 @@ public class CFormattedMemoryBlock extends CDebugElement
|
||||||
fAddressExpression = null;
|
fAddressExpression = null;
|
||||||
}
|
}
|
||||||
getCDISession().getEventManager().removeEventListener( this );
|
getCDISession().getEventManager().removeEventListener( this );
|
||||||
|
fireTerminateEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue