mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 05:15:43 +02:00
Display the limited number of instruction in the disassembly view.
This commit is contained in:
parent
1e1d01405f
commit
5eee2360ef
2 changed files with 6 additions and 1 deletions
|
@ -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
|
2002-10-10 Mikhail Khodjaiants
|
||||||
* CDebugTarget.java: Implementing the disassembly mode.
|
* CDebugTarget.java: Implementing the disassembly mode.
|
||||||
* CThread.java: Implementing the disassembly mode.
|
* CThread.java: Implementing the disassembly mode.
|
||||||
|
|
|
@ -23,6 +23,7 @@ import org.eclipse.debug.core.model.IStackFrame;
|
||||||
public class DisassemblyManager
|
public class DisassemblyManager
|
||||||
{
|
{
|
||||||
// move to preferences
|
// move to preferences
|
||||||
|
final static private int DISASSEMBLY_MAX_LINE_COUNT = 100;
|
||||||
final static private int DISASSEMBLY_BLOCK_SIZE = 100;
|
final static private int DISASSEMBLY_BLOCK_SIZE = 100;
|
||||||
|
|
||||||
private CDebugTarget fDebugTarget;
|
private CDebugTarget fDebugTarget;
|
||||||
|
@ -106,7 +107,7 @@ public class DisassemblyManager
|
||||||
ICDIInstruction[] instructions = new ICDIInstruction[0];
|
ICDIInstruction[] instructions = new ICDIInstruction[0];
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
instructions = sm.getInstructions( fileName, lineNumber );
|
instructions = sm.getInstructions( fileName, lineNumber, DISASSEMBLY_MAX_LINE_COUNT );
|
||||||
}
|
}
|
||||||
catch( CDIException e )
|
catch( CDIException e )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue