aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-10-07 17:35:13 +0200
committerPavel Labath <pavel@labath.sk>2020-10-14 14:55:03 +0200
commit6bb123b819c61c61197ec2ba54ceb6d16e9121cf (patch)
tree844e989ce021922829ed7d8073de6f76cd44a41b /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentcde06f783ce9811ed5e6d4c9a4e803b76842eccc (diff)
downloadllvm-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.cpp2
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)