[Lldb-commits] [PATCH] D101933: If an interrupt fails, don't try to fetch any more packets from the server

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 5 14:43:43 PDT 2021


clayborg accepted this revision.
clayborg added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3698-3701
+    // If the process has exited, don't try to fetch more events from the
+    // server for it.  We wouldn't be in a correct state to handle them.
+    if (process->GetPrivateState() == eStateExited)
+      break;
----------------
You could put this up into the while condition?

```
while (!done && process->GetPrivateState() != eStateExited)
```



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101933/new/

https://reviews.llvm.org/D101933



More information about the lldb-commits mailing list