[Lldb-commits] [lldb] f2f78b2 - [lldb] Update NativeThreadLinux to new Status API

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 27 14:53:03 PDT 2024


Author: Adrian Prantl
Date: 2024-08-27T14:52:56-07:00
New Revision: f2f78b284bfb9a118b1cc61202456004922e6ac7

URL: https://github.com/llvm/llvm-project/commit/f2f78b284bfb9a118b1cc61202456004922e6ac7
DIFF: https://github.com/llvm/llvm-project/commit/f2f78b284bfb9a118b1cc61202456004922e6ac7.diff

LOG: [lldb] Update NativeThreadLinux to new Status API

Added: 
    

Modified: 
    lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
index d3b5616cf5626a..de047ee214c11e 100644
--- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
@@ -508,7 +508,7 @@ Status NativeThreadLinux::RequestStop() {
   Status err;
   errno = 0;
   if (::tgkill(pid, tid, SIGSTOP) != 0) {
-    err.SetErrorToErrno();
+    err = Status::FromErrno();
     LLDB_LOGF(log,
               "NativeThreadLinux::%s tgkill(%" PRIu64 ", %" PRIu64
               ", SIGSTOP) failed: %s",


        


More information about the lldb-commits mailing list