From 6bb123b819c61c61197ec2ba54ceb6d16e9121cf Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 7 Oct 2020 17:35:13 +0200 Subject: [lldb] Modernize PseudoTerminal::OpenFirstAvailablePrimary replace char*+length combo with llvm::Error --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp') 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) -- cgit v1.1