mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26: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
|
||||
Fix for PR 39680: Gash in error message for memory view.
|
||||
* CDebugModel.java
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -380,6 +380,7 @@ public class CFormattedMemoryBlock extends CDebugElement
|
|||
fAddressExpression = null;
|
||||
}
|
||||
getCDISession().getEventManager().removeEventListener( this );
|
||||
fireTerminateEvent();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue