location_descriptor: Fix compare operator for single stepping

Compare `single_stepping` with the other's value instead of comparing it
with the local value.
This commit is contained in:
ReinUsesLisp 2020-12-01 05:09:36 -03:00 committed by merry
parent 96e9075804
commit ba6654b0e7
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {