diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-12-10 17:23:28 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-12-10 17:23:28 +0000 |
commit | b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1 (patch) | |
tree | 6845b2a664e82d83cb11cd4e30fd2b4c100f774e /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | 53f0d41dc4879cf79bea8acc4aa87064a085d05c (diff) | |
download | bcm5719-llvm-b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1.tar.gz bcm5719-llvm-b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1.zip |
Do not use PATH_MAX with SmallString
Summary: Instead use a more reasonable value to start and rely on the fact that SmallString will resize if necessary.
Reviewers: labath, asmith
Reviewed By: labath
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D55457
llvm-svn: 348775
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 0f32d6ead5b..1e0db84c5c2 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -1011,7 +1011,7 @@ Status GDBRemoteCommunication::StartDebugserverProcess( debugserver_args.AppendArgument(llvm::StringRef("--setsid")); } - llvm::SmallString<PATH_MAX> named_pipe_path; + llvm::SmallString<128> named_pipe_path; // socket_pipe is used by debug server to communicate back either // TCP port or domain socket name which it listens on. // The second purpose of the pipe to serve as a synchronization point - |