From ba6654b0e717fa58f04f2f64780bde61e38d9e8e Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 1 Dec 2020 05:09:36 -0300 Subject: [PATCH] location_descriptor: Fix compare operator for single stepping Compare `single_stepping` with the other's value instead of comparing it with the local value. --- src/frontend/A32/location_descriptor.h | 2 +- src/frontend/A64/location_descriptor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/A32/location_descriptor.h b/src/frontend/A32/location_descriptor.h index fae8e589..36c830a2 100644 --- a/src/frontend/A32/location_descriptor.h +++ b/src/frontend/A32/location_descriptor.h @@ -55,7 +55,7 @@ public: bool SingleStepping() const { return single_stepping; } bool operator == (const LocationDescriptor& o) const { - return std::tie(arm_pc, cpsr, fpscr, single_stepping) == std::tie(o.arm_pc, o.cpsr, o.fpscr, single_stepping); + return std::tie(arm_pc, cpsr, fpscr, single_stepping) == std::tie(o.arm_pc, o.cpsr, o.fpscr, o.single_stepping); } bool operator != (const LocationDescriptor& o) const { diff --git a/src/frontend/A64/location_descriptor.h b/src/frontend/A64/location_descriptor.h index 9a0a7513..4732a71c 100644 --- a/src/frontend/A64/location_descriptor.h +++ b/src/frontend/A64/location_descriptor.h @@ -45,7 +45,7 @@ public: bool SingleStepping() const { return single_stepping; } bool operator == (const LocationDescriptor& o) const { - return std::tie(pc, fpcr, single_stepping) == std::tie(o.pc, o.fpcr, single_stepping); + return std::tie(pc, fpcr, single_stepping) == std::tie(o.pc, o.fpcr, o.single_stepping); } bool operator != (const LocationDescriptor& o) const {