mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
Use the new "getValue" method of "IAddress" for address comparison.
This commit is contained in:
parent
fb2699f85e
commit
e254b82387
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-09-27 Mikhail Khodjaiants
|
||||||
|
Use the new "getValue" method of "IAddress" for address comparison.
|
||||||
|
* Disassembly.java
|
||||||
|
|
||||||
2004-09-27 Mikhail Khodjaiants
|
2004-09-27 Mikhail Khodjaiants
|
||||||
Target filtering fixes for watchpoints.
|
Target filtering fixes for watchpoints.
|
||||||
* CBreakpointManager.java
|
* CBreakpointManager.java
|
||||||
|
|
|
@ -98,9 +98,7 @@ public class Disassembly extends CDebugElement implements IDisassembly {
|
||||||
for( int i = 0; i < mi.length; ++i ) {
|
for( int i = 0; i < mi.length; ++i ) {
|
||||||
ICDIInstruction[] instructions = mi[i].getInstructions();
|
ICDIInstruction[] instructions = mi[i].getInstructions();
|
||||||
for ( int j = 0; j < instructions.length; ++j ) {
|
for ( int j = 0; j < instructions.length; ++j ) {
|
||||||
// TODO: better comparison of IAddress and BigInteger
|
if ( address.getValue().equals( instructions[j].getAdress() ) )
|
||||||
BigInteger a = new BigInteger( address.toString() );
|
|
||||||
if ( a.equals( instructions[j].getAdress() ) )
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue