diff options
author | Keno Fischer <kfischer@college.harvard.edu> | 2014-08-06 21:18:13 +0000 |
---|---|---|
committer | Keno Fischer <kfischer@college.harvard.edu> | 2014-08-06 21:18:13 +0000 |
commit | 3d7162b1cc33f1126ab3c05ebfea19ffed82c699 (patch) | |
tree | 70b8dbcee91e347ec554d4fc3ad9357429a5da2c /lldb/source/Plugins/Process/MacOSX-Kernel | |
parent | b63e43c93144d05ddda6aea843d94978adf9e0a9 (diff) | |
download | bcm5719-llvm-3d7162b1cc33f1126ab3c05ebfea19ffed82c699.tar.gz bcm5719-llvm-3d7162b1cc33f1126ab3c05ebfea19ffed82c699.zip |
Fix ProcessKDP after Host/Socket addition
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D4815
llvm-svn: 214996
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel')
-rw-r--r-- | lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index cde3c5c6a67..8b1850dcccf 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -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 *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) { |