From e254b82387bce9a92cb7e88e628ae7f127bf3bf9 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 27 Sep 2004 18:43:58 +0000 Subject: [PATCH] Use the new "getValue" method of "IAddress" for address comparison. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 4 ++++ .../eclipse/cdt/debug/internal/core/model/Disassembly.java | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index b4a400d3ce1..331a228766d 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -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 diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/Disassembly.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/Disassembly.java index 53c6e8a8ac1..3aa53053dff 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/Disassembly.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/Disassembly.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; } }