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

Fix for PR 42790: Memory view is not cleared when target is terminated

This commit is contained in:
Mikhail Khodjaiants 2003-09-10 15:26:23 +00:00
parent 5a1119fd18
commit 95edb19234
3 changed files with 19 additions and 2 deletions

View file

@ -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
Fix for PR 39680: Gash in error message for memory view.
* CDebugModel.java

View file

@ -46,8 +46,11 @@ public class CMemoryManager implements ICMemoryManager
{
for ( int i = 0; i < fBlocks.length; ++i )
{
fBlocks[i].dispose();
fBlocks[i] = null;
if ( fBlocks[i] != null )
{
fBlocks[i].dispose();
fBlocks[i] = null;
}
}
}
@ -99,6 +102,14 @@ public class CMemoryManager implements ICMemoryManager
public void dispose()
{
for ( int i = 0; i < fBlocks.length; ++i )
{
if ( fBlocks[i] != null )
{
fBlocks[i].dispose();
fBlocks[i] = null;
}
}
}
/* (non-Javadoc)

View file

@ -380,6 +380,7 @@ public class CFormattedMemoryBlock extends CDebugElement
fAddressExpression = null;
}
getCDISession().getEventManager().removeEventListener( this );
fireTerminateEvent();
}
/* (non-Javadoc)