Add the "sent break" message to the "gdb-remote packets" channel
authorJim Ingham <jingham@apple.com>
Tue, 10 May 2022 20:27:47 +0000 (13:27 -0700)
committerJim Ingham <jingham@apple.com>
Tue, 10 May 2022 20:28:50 +0000 (13:28 -0700)
It was originally only in "gdb-remote process" but it is convenient to
also have it come as part of gdb-remote packets.

lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp

index 8364ffe..e3a3cfc 100644 (file)
@@ -347,7 +347,7 @@ GDBRemoteClientBase::Lock::Lock(GDBRemoteClientBase &comm,
 }
 
 void GDBRemoteClientBase::Lock::SyncWithContinueThread() {
-  Log *log = GetLog(GDBRLog::Process);
+  Log *log = GetLog(GDBRLog::Process|GDBRLog::Packets);
   std::unique_lock<std::mutex> lock(m_comm.m_mutex);
   if (m_comm.m_is_running && m_interrupt_timeout == std::chrono::seconds(0))
     return; // We were asked to avoid interrupting the sender. Lock is not