[all-commits] [llvm/llvm-project] 90c567: [lldb][NFCI] Rewrite error-handling code in Proces...
Alex via All-commits
all-commits at lists.llvm.org
Thu Aug 17 10:32:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 90c5675a3db2319dd449a1753c79568355dfaaed
https://github.com/llvm/llvm-project/commit/90c5675a3db2319dd449a1753c79568355dfaaed
Author: Alex Langford <alangford at apple.com>
Date: 2023-08-17 (Thu, 17 Aug 2023)
Changed paths:
M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Log Message:
-----------
[lldb][NFCI] Rewrite error-handling code in ProcessGDBRemote::MonitorDebugserverProcess
I'm rewriting this for 2 reasons:
1) Although a 1024 char buffer is probably enough space, the error
string may grow beyond that and we could lose some information. Using
StringStream (as we do in the rest of ProcessGDBRemote) seems like a
sensible solution.
2) I am planning on changing `UnixSignals::GetSignalAsCString`,
rewriting things with `llvm::formatv` will make that process easier.
Differential Revision: https://reviews.llvm.org/D158017
More information about the All-commits
mailing list