summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
index 7549802733f..500aa96d2d3 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
@@ -1092,7 +1092,7 @@ GetVacantWatchIndex (struct pt_watch_regs *regs, lldb::addr_t addr, uint32_t siz
}
}
}
- return 0;
+ return LLDB_INVALID_INDEX32;
}
bool
@@ -1221,7 +1221,7 @@ NativeRegisterContextLinux_mips64::SetHardwareWatchpoint (
int index = GetVacantWatchIndex (&regs, addr, size, watch_flags, NumSupportedHardwareWatchpoints());
// New watchpoint doesn't fit
- if (!index)
+ if (index == LLDB_INVALID_INDEX32)
return LLDB_INVALID_INDEX32;
OpenPOWER on IntegriCloud