[Lldb-commits] [PATCH] D39967: Disable breakpoints before writing memory and re-enable after.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 23 13:20:21 PST 2018


clayborg added a comment.

In https://reviews.llvm.org/D39967#1017732, @ted wrote:

> Traditionally, remote gdbservers handle memory operations that overlap a software breakpoint. Writes get the new value saved off, and reads get the breakpoint opcode replaced by the saved value.


Indeed. Breakpoints are set using the "Z" and "z" packets to the GDB server so we don't even know which opcode gets used for the breakpoint instruction. My guess is when we use the "Z" and "z" packets, we don't have any saved breakpoint opcode in the breakpoint site info and this code won't do anything. Would be good to verify this.


https://reviews.llvm.org/D39967





More information about the lldb-commits mailing list