[Lldb-commits] [lldb] r219374 - Added a bit of logging around GDBRemoteCommunicationClient::SendGDBStoppointTypePacket.

Todd Fiala todd.fiala at gmail.com
Wed Oct 8 17:55:04 PDT 2014


Author: tfiala
Date: Wed Oct  8 19:55:04 2014
New Revision: 219374

URL: http://llvm.org/viewvc/llvm-project?rev=219374&view=rev
Log:
Added a bit of logging around GDBRemoteCommunicationClient::SendGDBStoppointTypePacket.

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp?rev=219374&r1=219373&r2=219374&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp Wed Oct  8 19:55:04 2014
@@ -2971,6 +2971,11 @@ GDBRemoteCommunicationClient::GetThreadS
 uint8_t
 GDBRemoteCommunicationClient::SendGDBStoppointTypePacket (GDBStoppointType type, bool insert,  addr_t addr, uint32_t length)
 {
+    Log *log (GetLogIfAnyCategoriesSet (LIBLLDB_LOG_BREAKPOINTS));
+    if (log)
+        log->Printf ("GDBRemoteCommunicationClient::%s() %s at addr = 0x%" PRIx64,
+                     __FUNCTION__, insert ? "add" : "remove", addr);
+
     // Check if the stub is known not to support this breakpoint type
     if (!SupportsGDBStoppointPacket(type))
         return UINT8_MAX;





More information about the lldb-commits mailing list