Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Support of the "Memory Unit Size" action

Support of the "Memory Unit Size" action.

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.28
diff -u -r1.28 ChangeLog
--- ChangeLog 24 Oct 2002 23:01:36 -0000 1.28
+++ ChangeLog 25 Oct 2002 03:51:28 -0000
@@ -1,4 +1,9 @@
 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.
  * IFormattedMemoryRetrieval.java
Index: src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java,v
retrieving revision 1.5
diff -u -r1.5 IFormattedMemoryBlock.java
--- src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java 24 Oct 2002 23:01:36 -0000 1.5
+++ src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java 25 Oct 2002 03:51:28 -0000
@@ -59,6 +59,13 @@
  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.
   *
   * @return the number of rows in the output table
Index: src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java,v
retrieving revision 1.4
diff -u -r1.4 CFormattedMemoryBlock.java
--- src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java 21 Oct 2002 03:35:35 -0000 1.4
+++ src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java 25 Oct 2002 03:51:29 -0000
@@ -465,4 +465,13 @@
  {
   getCDIMemoryBlock().setFrozen( frozen );
  }
+
+ /**
+  * @see org.eclipse.cdt.debug.core.IFormattedMemoryBlock#setWordSize(int)
+  */
+ public void setWordSize( int size )
+ {
+  resetRows();
+  fWordSize = size;
+ }
 }


Back to the top