[Lldb-commits] [lldb] [lldb] Add ReadCStrings API to Process (PR #172026)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 14 02:55:06 PST 2025


================
@@ -2135,6 +2135,63 @@ lldb::addr_t Process::FindInMemory(const uint8_t *buf, uint64_t size,
   return matches[0].GetBaseAddress().GetLoadAddress(&target);
 }
 
+llvm::SmallVector<std::optional<std::string>>
+Process::ReadCStringsFromMemory(llvm::ArrayRef<lldb::addr_t> addresses) {
+  // Make the same read width choice as ReadCStringFromMemory.
+  constexpr auto read_width = 256;
----------------
felipepiovezan wrote:

yup, good idea

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


More information about the lldb-commits mailing list