1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Check if the new stack frame is of the same debug target as the old one.

This commit is contained in:
Mikhail Khodjaiants 2004-05-02 23:58:21 +00:00
parent 442e48039e
commit 35d26b9e76
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-05-02 Mikhail Khodjaiants
Check if the new stack frame is of the same debug target as the old one.
* DisassemblyEditorInput.java
2004-04-30 Mikhail Khodjaiants 2004-04-30 Mikhail Khodjaiants
New implementation of the "Resume At Line" global action. New implementation of the "Resume At Line" global action.
* plugin.xml * plugin.xml

View file

@ -59,7 +59,10 @@ public class DisassemblyEditorInput implements IEditorInput {
return this.fDisassembly; return this.fDisassembly;
} }
public boolean containsAddress( long address ) { public boolean containsFrame( ICStackFrame frame ) {
if ( !getDisassembly().getDebugTarget().equals( frame.getDebugTarget() ) )
return false;
long address = frame.getAddress();
return (address >= fStartAddress && address <= fEndAddress); return (address >= fStartAddress && address <= fEndAddress);
} }
@ -243,7 +246,7 @@ public class DisassemblyEditorInput implements IEditorInput {
public boolean contains( ICStackFrame frame ) { public boolean contains( ICStackFrame frame ) {
if ( fStorage != null ) { if ( fStorage != null ) {
return fStorage.containsAddress( frame.getAddress() ); return fStorage.containsFrame( frame );
} }
return false; return false;
} }