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.
lldb-commits mailing list