mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52: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:
parent
0ccb63228a
commit
c1c8430638
2 changed files with 6 additions and 1 deletions
|
@ -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
|
2004-11-09 Mikhail Khodjaiants
|
||||||
Partial fix for bug 41725: I can't set a breakpoint in a function where I used attach source.
|
Partial fix for bug 41725: I can't set a breakpoint in a function where I used attach source.
|
||||||
* CDTDebugModelPresentation.java
|
* CDTDebugModelPresentation.java
|
||||||
|
|
|
@ -132,7 +132,8 @@ public class DisassemblyEditorInput implements IEditorInput {
|
||||||
int result = 0;
|
int result = 0;
|
||||||
for ( int i = 0; i < lines.length; ++i ) {
|
for ( int i = 0; i < lines.length; ++i ) {
|
||||||
IAsmInstruction[] instructions = lines[i].getInstructions();
|
IAsmInstruction[] instructions = lines[i].getInstructions();
|
||||||
++result;
|
if ( fBlock.isMixedMode() )
|
||||||
|
++result;
|
||||||
for ( int j = 0; j < instructions.length; ++j ) {
|
for ( int j = 0; j < instructions.length; ++j ) {
|
||||||
++result;
|
++result;
|
||||||
if ( address.equals( instructions[j].getAdress() ) ) {
|
if ( address.equals( instructions[j].getAdress() ) ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue