[Lldb-commits] [PATCH] D65289: [lldb] [Process/NetBSD] Report stopped process on SIGSTOP

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 25 09:14:15 PDT 2019


mgorny created this revision.
mgorny added reviewers: labath, krytarowski.
Herald added a project: LLDB.

Mark the process as stopped when SIGSTOP arrives.  This is necessary
for lldb-server to generate correct response to 'process interrupt',
and therefore to prevent the whole stack crashing when process
is stopped.

Thanks to Pavel Labath for the tip.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D65289

Files:
  lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp


Index: lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
===================================================================
--- lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
+++ lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
@@ -203,6 +203,7 @@
             SIGSTOP, &info.psi_siginfo);
       }
     }
+    SetState(StateType::eStateStopped, true);
   }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65289.211776.patch
Type: text/x-patch
Size: 395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190725/78206c98/attachment.bin>


More information about the lldb-commits mailing list