1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Support of the "Memory Unit Size" action.

This commit is contained in:
Mikhail Khodjaiants 2002-10-25 03:52:16 +00:00
parent 08451dae9e
commit dff4a9566b
3 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2002-10-24 Mikhail Khodjaiants
Support of the "Memory Unit Size" action.
* IFormattedMemoryBlock.java: added the 'setWordsize' method.
* CFormattedMemoryBlock.java: implementation of the 'setWordSize' method.
2002-10-24 Mikhail Khodjaiants
Moved the memory format constants from IFormattedMemoryRetrieval.java
to IFormattedMemoryBlock.java.

View file

@ -58,6 +58,13 @@ public interface IFormattedMemoryBlock extends IMemoryBlock
*/
int getWordSize();
/**
* Sets the size of memory unit.
*
* @param size the size of memory unit
*/
void setWordSize( int size );
/**
* Returns the number of rows in the output table.
*

View file

@ -465,4 +465,13 @@ public class CFormattedMemoryBlock extends CDebugElement
{
getCDIMemoryBlock().setFrozen( frozen );
}
/**
* @see org.eclipse.cdt.debug.core.IFormattedMemoryBlock#setWordSize(int)
*/
public void setWordSize( int size )
{
resetRows();
fWordSize = size;
}
}