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

Fix for bug 77437: Disassembly blocks with no associated source code has PC pointer on wrong line.

This commit is contained in:
Mikhail Khodjaiants 2004-11-10 22:52:50 +00:00
parent 0ccb63228a
commit c1c8430638
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-11-10 Mikhail Khodjaiants
Fix for bug 77437: Disassembly blocks with no associated source code has PC pointer on wrong line.
* DisassemblyEditorInput.java
2004-11-09 Mikhail Khodjaiants
Partial fix for bug 41725: I can't set a breakpoint in a function where I used attach source.
* CDTDebugModelPresentation.java

View file

@ -132,7 +132,8 @@ public class DisassemblyEditorInput implements IEditorInput {
int result = 0;
for ( int i = 0; i < lines.length; ++i ) {
IAsmInstruction[] instructions = lines[i].getInstructions();
++result;
if ( fBlock.isMixedMode() )
++result;
for ( int j = 0; j < instructions.length; ++j ) {
++result;
if ( address.equals( instructions[j].getAdress() ) ) {