Author: Charles Zablit Date: 2026-06-01T15:25:47+01:00 New Revision: cedd8d914432253879a1b830c0550c0fb7f01776
URL: https://github.com/llvm/llvm-project/commit/cedd8d914432253879a1b830c0550c0fb7f01776 DIFF: https://github.com/llvm/llvm-project/commit/cedd8d914432253879a1b830c0550c0fb7f01776.diff LOG: [NFC][lldb][windows] simplify NativeProcessWindows::FindSoftwareBreakpoint (#200820) Added: Modified: lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp Removed: ################################################################################ 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, _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
