tatyana-krasnukha added a comment.
Herald added a subscriber: llvm-commits.

What about having 2 versions:

1. WriteMemory(..., bool force = false), that fails if there are breakpoints in 
the area. Let user decide what to do.

If force == true just call DoWriteMemory without checking on breakpoints. It is 
needed while writing on stack, for example (and to all sections beside .text ?).
All usages should be followed with if (status.Success()).

2. WriteMemorySavingBreakpoints for that cases where it is really needed. It 
will not return bytes_written, only status.


Repository:
  rL LLVM

https://reviews.llvm.org/D39967



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to