[lldb] Skip overlapping hardware and external breakpoints when writing memory
authorTatyana Krasnukha <tatyana@synopsys.com>
Wed, 22 Jul 2020 11:45:10 +0000 (14:45 +0300)
committerTatyana Krasnukha <tatyana@synopsys.com>
Wed, 29 Jul 2020 18:27:23 +0000 (21:27 +0300)
commitf7ec3e3be70d10a630ac22c64073a845b168c829
treea7edf532055abe5809488639535a4e8b0b8e3450
parent59fac51ff24e198ff4896be03dea0096fa3ac188
[lldb] Skip overlapping hardware and external breakpoints when writing memory

This fixes the assertion `assert(intersects);` in the Process::WriteMemory function.

Differential Revision: https://reviews.llvm.org/D84254
lldb/source/Breakpoint/BreakpointSite.cpp
lldb/source/Target/Process.cpp
lldb/test/API/functionalities/breakpoint/hardware_breakpoints/write_memory_with_hw_breakpoint/Makefile [new file with mode: 0644]
lldb/test/API/functionalities/breakpoint/hardware_breakpoints/write_memory_with_hw_breakpoint/TestWriteMemoryWithHWBreakpoint.py [new file with mode: 0644]
lldb/test/API/functionalities/breakpoint/hardware_breakpoints/write_memory_with_hw_breakpoint/main.cpp [new file with mode: 0644]