1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Applied patch from Tracy Miranda (bug 86533: Breakpoint is set on the wrong line in Disassembly view).

This commit is contained in:
Mikhail Khodjaiants 2005-02-24 21:17:11 +00:00
parent 6e38815a9a
commit 6dc9b768e8
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-02-24 Mikhail Khodjaiants
Applied patch from Tracy Miranda (bug 86533: Breakpoint is set on the wrong line in Disassembly view).
* DisassemblyEditorInput.java
2005-02-22 Mikhail Khodjaiants
Bug 84799: Implement Memory View and renderings with new rendering APIs.
* plugin.xml

View file

@ -169,7 +169,9 @@ public class DisassemblyEditorInput implements IEditorInput {
int current = 0;
for ( int i = 0; i < lines.length; ++i ) {
IAsmInstruction[] instructions = lines[i].getInstructions();
++current;
if ( fBlock.isMixedMode() ) {
++current;
}
if ( lineNumber == current && instructions.length > 0 )
return instructions[0].getAdress();
if ( lineNumber > current && lineNumber <= current + instructions.length )