[Lldb-commits] [lldb] [NFC][lldb][windows] simplify NativeProcessWindows::FindSoftwareBreakpoint (PR #200820)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 1 06:46:20 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Charles Zablit (charles-zablit)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/200820.diff
1 Files Affected:
- (modified) lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp (+1-4)
``````````diff
diff --git a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
index 26fc31fb27cf6..56bad1a37b5d0 100644
--- a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
@@ -320,10 +320,7 @@ size_t NativeProcessWindows::GetSoftwareBreakpointPCOffset() {
}
bool NativeProcessWindows::FindSoftwareBreakpoint(lldb::addr_t addr) {
- auto it = m_software_breakpoints.find(addr);
- if (it == m_software_breakpoints.end())
- return false;
- return true;
+ return m_software_breakpoints.find(addr) != m_software_breakpoints.end();
}
Status NativeProcessWindows::SetBreakpoint(lldb::addr_t addr, uint32_t size,
``````````
</details>
https://github.com/llvm/llvm-project/pull/200820
More information about the lldb-commits
mailing list