mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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
|
||||
Target filtering fixes for watchpoints.
|
||||
* CBreakpointManager.java
|
||||
|
|
|
@ -98,9 +98,7 @@ public class Disassembly extends CDebugElement implements IDisassembly {
|
|||
for( int i = 0; i < mi.length; ++i ) {
|
||||
ICDIInstruction[] instructions = mi[i].getInstructions();
|
||||
for ( int j = 0; j < instructions.length; ++j ) {
|
||||
// TODO: better comparison of IAddress and BigInteger
|
||||
BigInteger a = new BigInteger( address.toString() );
|
||||
if ( a.equals( instructions[j].getAdress() ) )
|
||||
if ( address.getValue().equals( instructions[j].getAdress() ) )
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue