[Lldb-commits] [lldb] r214996 - Fix ProcessKDP after Host/Socket addition
Keno Fischer
kfischer at college.harvard.edu
Wed Aug 6 14:18:13 PDT 2014
Author: kfischer
Date: Wed Aug 6 16:18:13 2014
New Revision: 214996
URL: http://llvm.org/viewvc/llvm-project?rev=214996&view=rev
Log:
Fix ProcessKDP after Host/Socket addition
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D4815
Modified:
lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
Modified: lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp?rev=214996&r1=214995&r2=214996&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp (original)
+++ lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp Wed Aug 6 16:18:13 2014
@@ -22,6 +22,7 @@
#include "lldb/Core/UUID.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/Symbols.h"
+#include "lldb/Host/Socket.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandObject.h"
#include "lldb/Interpreter/CommandObjectMultiword.h"
@@ -272,8 +273,8 @@ ProcessKDP::DoConnectRemote (Stream *str
if (conn_ap->IsConnected())
{
- const Socket& socket = static_cast<const Socket&>(conn_ap->GetReadObject());
- const uint16_t reply_port = socket.GetPort();
+ const Socket& socket = static_cast<const Socket&>(*conn_ap->GetReadObject());
+ const uint16_t reply_port = socket.GetPortNumber();
if (reply_port != 0)
{
More information about the lldb-commits
mailing list