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

Yao Qi via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 17 12:00:51 PDT 2026


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

Fix the ambiguity  of "substitute" in comments


>From da0de864a2afbe0346517c0e21173d270d32aca0 Mon Sep 17 00:00:00 2001
From: Yao Qi <yao_qi at apple.com>
Date: Thu, 17 Sep 2026 19:51:05 +0100
Subject: [PATCH] Fix AddCacheData comments

Fix the ambiguity  of "substitute" in comments
---
 lldb/include/lldb/Target/Process.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h
index c4e6ee47a299ba..a6941d415c3468 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);
 



More information about the lldb-commits mailing list