[Lldb-commits] [PATCH] D131081: [lldb] Prevent race condition when fetching /proc/cpuinfo

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 8 05:34:00 PDT 2022


labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lldb/source/Plugins/Process/Linux/Procfs.cpp:27-29
+  return ArrayRef<uint8_t>(
+      reinterpret_cast<const uint8_t *>(buffer.getBufferStart()),
+      reinterpret_cast<const uint8_t *>(buffer.getBufferEnd()));
----------------
`return arrayRefFromStringRef(buffer.getBuffer());`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131081/new/

https://reviews.llvm.org/D131081



More information about the lldb-commits mailing list