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

Display the limited number of instruction in the disassembly view.

This commit is contained in:
Mikhail Khodjaiants 2002-10-10 18:36:07 +00:00
parent 1e1d01405f
commit 5eee2360ef
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
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.

View file

@ -23,6 +23,7 @@ import org.eclipse.debug.core.model.IStackFrame;
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 @@ public class DisassemblyManager
ICDIInstruction[] instructions = new ICDIInstruction[0];
try
{
instructions = sm.getInstructions( fileName, lineNumber );
instructions = sm.getInstructions( fileName, lineNumber, DISASSEMBLY_MAX_LINE_COUNT );
}
catch( CDIException e )
{