Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Implementing the disassembly mode.

Display the limited number of instruction in the disassembly view.

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.3
diff -u -r1.3 ChangeLog
--- ChangeLog 10 Oct 2002 16:51:28 -0000 1.3
+++ ChangeLog 10 Oct 2002 18:34:33 -0000
@@ -1,4 +1,8 @@
 2002-10-10 Mikhail Khodjaiants
+ * DisassemblyManager.java: Replaced 'getInstructions( String fileName, int lineNumber )'
+ by 'getInstructions( String fileName, int lineNumber, int maxLineCount )'.
+
+2002-10-10 Mikhail Khodjaiants
  * CDebugTarget.java:  Implementing the disassembly mode.
  * CThread.java:  Implementing the disassembly mode.
 
Index: src/org/eclipse/cdt/debug/internal/core/sourcelookup/DisassemblyManager.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/DisassemblyManager.java,v
retrieving revision 1.3
diff -u -r1.3 DisassemblyManager.java
--- src/org/eclipse/cdt/debug/internal/core/sourcelookup/DisassemblyManager.java 10 Oct 2002 15:29:50 -0000 1.3
+++ src/org/eclipse/cdt/debug/internal/core/sourcelookup/DisassemblyManager.java 10 Oct 2002 18:34:33 -0000
@@ -23,6 +23,7 @@
 public class DisassemblyManager
 {
  // move to preferences
+ final static private int DISASSEMBLY_MAX_LINE_COUNT = 100;
  final static private int DISASSEMBLY_BLOCK_SIZE = 100;
  
  private CDebugTarget fDebugTarget;
@@ -106,7 +107,7 @@
     ICDIInstruction[] instructions = new ICDIInstruction[0];
     try
     {
-     instructions = sm.getInstructions( fileName, lineNumber );
+     instructions = sm.getInstructions( fileName, lineNumber, DISASSEMBLY_MAX_LINE_COUNT );
     }
     catch( CDIException e )
     {


Back to the top