summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-07-15 16:31:38 +0000
committerGreg Clayton <gclayton@apple.com>2011-07-15 16:31:38 +0000
commit57508026c276d9ffca1d84dfb74ea60c9b18b76a (patch)
tree1b7c2f0628ceac3e836ce9f3f0a33fc123c5d37f /lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
parente9d62935d3c42cb73c39fc4d0dc46bc35dc213ec (diff)
downloadbcm5719-llvm-57508026c276d9ffca1d84dfb74ea60c9b18b76a.tar.gz
bcm5719-llvm-57508026c276d9ffca1d84dfb74ea60c9b18b76a.zip
Added the ability to connect using "tcp://<host>:<port>" which is the
same as the old "connect://<host>:<port>". Also added the ability to connect using "udp://<host>:<port>" which will open a connected datagram socket. I need to find a way to specify a non connected datagram socket as well. We might need to start setting some settings in the URL itself, maybe something like: udp://<host>:<port>?connected=yes udp://<host>:<port>?connected=no I am open to suggestions for URL settings. Also did more work on the KDP darwin kernel plug-in. llvm-svn: 135277
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp')
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
index 9ae965ec84f..d7ec4b7ab34 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
@@ -16,6 +16,7 @@
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/State.h"
#include "lldb/Host/Host.h"
+#include "lldb/Target/Target.h"
// Project includes
#include "ProcessKDP.h"
@@ -414,7 +415,7 @@ ProcessKDP::DoDetach()
m_thread_list.DiscardThreadPlans();
- size_t response_size = m_comm.SendPacket ("D", 1);
+ size_t response_size = m_comm.Disconnect ();
if (log)
{
if (response_size)
OpenPOWER on IntegriCloud