[Lldb-commits] [lldb] Fix AddCacheData comments (PR #224383)

via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 17 12:01:31 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Yao Qi (qiyao)

<details>
<summary>Changes</summary>

Fix the ambiguity  of "substitute" in comments


---
Full diff: https://github.com/llvm/llvm-project/pull/224383.diff


1 Files Affected:

- (modified) lldb/include/lldb/Target/Process.h (+1-1) 


``````````diff
diff --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h
index c4e6ee47a299b..a6941d415c346 100644
--- a/lldb/include/lldb/Target/Process.h
+++ b/lldb/include/lldb/Target/Process.h
@@ -3661,7 +3661,7 @@ void PruneThreadPlans();
   void RemoveBreakpointOpcodesFromBuffer(lldb::addr_t addr, size_t size,
                                          uint8_t *buf) const;
 
-  /// Cache memory and substitute the breakpoint opcode in it.
+  /// Cache memory, restoring the original bytes under any breakpoint.
   void AddCacheData(lldb::addr_t addr,
                     const lldb::WritableDataBufferSP &data_buffer_sp);
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/224383


More information about the lldb-commits mailing list