mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Check if the new stack frame is of the same debug target as the old one.
This commit is contained in:
parent
442e48039e
commit
35d26b9e76
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
New implementation of the "Resume At Line" global action.
|
||||
* plugin.xml
|
||||
|
|
|
@ -59,7 +59,10 @@ public class DisassemblyEditorInput implements IEditorInput {
|
|||
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);
|
||||
}
|
||||
|
||||
|
@ -243,7 +246,7 @@ public class DisassemblyEditorInput implements IEditorInput {
|
|||
|
||||
public boolean contains( ICStackFrame frame ) {
|
||||
if ( fStorage != null ) {
|
||||
return fStorage.containsAddress( frame.getAddress() );
|
||||
return fStorage.containsFrame( frame );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue