Author: Adrian Prantl Date: 2024-08-27T14:48:16-07:00 New Revision: 67eb72725d1e1c7e214c8f1feded99b152b76470
URL: https://github.com/llvm/llvm-project/commit/67eb72725d1e1c7e214c8f1feded99b152b76470 DIFF: https://github.com/llvm/llvm-project/commit/67eb72725d1e1c7e214c8f1feded99b152b76470.diff LOG: [lldb] Update NativeProcessLinux to new Status API Added: Modified: lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index 92fd2fcfe20c03..cb95da9fc72363 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -203,12 +203,12 @@ static Status EnsureFDFlags(int fd, int flags) { int status = fcntl(fd, F_GETFL); if (status == -1) { - error.SetErrorToErrno(); + error = Status::FromErrno(); return error; } if (fcntl(fd, F_SETFL, status | flags) == -1) { - error.SetErrorToErrno(); + error = Status::FromErrno(); return error; } @@ -1078,7 +1078,7 @@ Status NativeProcessLinux::Halt() { Status error; if (kill(GetID(), SIGSTOP) != 0) - error.SetErrorToErrno(); + error = Status::FromErrno(); return error; } @@ -1114,7 +1114,7 @@ Status NativeProcessLinux::Signal(int signo) { Host::GetSignalAsCString(signo), GetID()); if (kill(GetID(), signo)) - error.SetErrorToErrno(); + error = Status::FromErrno(); return error; } @@ -1191,7 +1191,7 @@ Status NativeProcessLinux::Kill() { } if (kill(GetID(), SIGKILL) != 0) { - error.SetErrorToErrno(); + error = Status::FromErrno(); return error; } @@ -2006,7 +2006,7 @@ Status NativeProcessLinux::PtraceWrapper(int req, lldb::pid_t pid, void *addr, addr, data); if (ret == -1) - error.SetErrorToErrno(); + error = Status::FromErrno(); if (result) *result = ret; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits