[Lldb-commits] [PATCH] D136719: change debugserver to return an empty platform name for unknown platforms, instead of crashing

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 26 11:30:07 PDT 2022


jasonmolenda updated this revision to Diff 470885.
jasonmolenda added a comment.

Update MachProcess::GetPlatformString to return a std::optional platform string, if the platform enumeration is recognized.  Update callers to handle the absence of a value appropriately.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136719

Files:
  lldb/tools/debugserver/source/DNB.cpp
  lldb/tools/debugserver/source/DNB.h
  lldb/tools/debugserver/source/MacOSX/MachProcess.h
  lldb/tools/debugserver/source/MacOSX/MachProcess.mm
  lldb/tools/debugserver/source/RNBRemote.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136719.470885.patch
Type: text/x-patch
Size: 6964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221026/bafcfcfd/attachment-0001.bin>


More information about the lldb-commits mailing list