diff options
author | Pavel Labath <pavel@labath.sk> | 2020-10-07 17:35:13 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2020-10-14 14:55:03 +0200 |
commit | 6bb123b819c61c61197ec2ba54ceb6d16e9121cf (patch) | |
tree | 844e989ce021922829ed7d8073de6f76cd44a41b /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | cde06f783ce9811ed5e6d4c9a4e803b76842eccc (diff) | |
download | llvm-6bb123b819c61c61197ec2ba54ceb6d16e9121cf.zip llvm-6bb123b819c61c61197ec2ba54ceb6d16e9121cf.tar.gz llvm-6bb123b819c61c61197ec2ba54ceb6d16e9121cf.tar.bz2 |
[lldb] Modernize PseudoTerminal::OpenFirstAvailablePrimary
replace char*+length combo with llvm::Error
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 9adf25f..40f6f6c2 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -817,7 +817,7 @@ Status ProcessGDBRemote::DoLaunch(lldb_private::Module *exe_module, // since 'O' packets can really slow down debugging if the inferior // does a lot of output. if ((!stdin_file_spec || !stdout_file_spec || !stderr_file_spec) && - pty.OpenFirstAvailablePrimary(O_RDWR | O_NOCTTY, nullptr, 0)) { + !errorToBool(pty.OpenFirstAvailablePrimary(O_RDWR | O_NOCTTY))) { FileSpec secondary_name(pty.GetSecondaryName()); if (!stdin_file_spec) |