[Lldb-commits] [PATCH] D97017: [lldb-server] Exit the DataAvailableCallback loop when `done` or `interrupt` are set

Muhammad Omair Javaid via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 19 00:21:07 PST 2021


omjavaid added inline comments.


================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:950
   // We are ready to exit the debug monitor.
   m_exit_now = true;
   m_mainloop.RequestTermination();
----------------
May be we can set m_exit_now instead of setting done, or interrupt. if we have to exit on empty response.


================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:1064
+
+    if (done || interrupt) {
+      m_mainloop.RequestTermination();
----------------
GDBRemoteCommunicationServer::GetPacketAndSendResponse sets done on eServerPacketType_invalid (empty packet) wouldnt termination be too strict for that case. 



Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D97017



More information about the lldb-commits mailing list