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:
parent
96e9075804
commit
ba6654b0e7
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ public:
|
||||||
bool SingleStepping() const { return single_stepping; }
|
bool SingleStepping() const { return single_stepping; }
|
||||||
|
|
||||||
bool operator == (const LocationDescriptor& o) const {
|
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 {
|
bool operator != (const LocationDescriptor& o) const {
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
bool SingleStepping() const { return single_stepping; }
|
bool SingleStepping() const { return single_stepping; }
|
||||||
|
|
||||||
bool operator == (const LocationDescriptor& o) const {
|
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 {
|
bool operator != (const LocationDescriptor& o) const {
|
||||||
|
|
Loading…
Reference in a new issue