aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2024-08-27 14:47:58 -0700
committerAdrian Prantl <aprantl@apple.com>2024-08-27 14:48:16 -0700
commit67eb72725d1e1c7e214c8f1feded99b152b76470 (patch)
tree2e838b637934cbdc1caf3d85a7c31f3fc9f3c81c /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent5f2389d49fef36ed2e97dcc6b54036542c160a36 (diff)
downloadllvm-67eb72725d1e1c7e214c8f1feded99b152b76470.zip
llvm-67eb72725d1e1c7e214c8f1feded99b152b76470.tar.gz
llvm-67eb72725d1e1c7e214c8f1feded99b152b76470.tar.bz2
[lldb] Update NativeProcessLinux to new Status API
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 92fd2fc..cb95da9 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;