Skip to content

Commit

Permalink
Fix ProcessKDP after Host/Socket addition
Browse files Browse the repository at this point in the history
Reviewers: zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D4815

llvm-svn: 214996
  • Loading branch information
Keno committed Aug 6, 2014
1 parent b63e43c commit 3d7162b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -272,8 +273,8 @@ ProcessKDP::DoConnectRemote (Stream *strm, const char *remote_url)

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)
{
Expand Down

0 comments on commit 3d7162b

Please sign in to comment.