[Lldb-commits] [PATCH] Fix lldb OS X build

Zachary Turner zturner at google.com
Wed Aug 6 14:10:13 PDT 2014


I don't know much about the ARM / cpu subtype change, but the socket change
is good, thanks for fixing that.  Please submit the socket fix separately
from the other one though.


On Wed, Aug 6, 2014 at 2:06 PM, Keno Fischer <kfischer at college.harvard.edu>
wrote:

> Hi zturner,
>
> Two changes:
>  - The first is a new constant introduced in XCode 6, so we do the same
> thing as for CPU_SUBTYPE_X86_64_H
>  - The second is small fix to the commit adding Host/Socket to make it
> build on OS X
>
> http://reviews.llvm.org/D4815
>
> Files:
>   source/Host/common/Host.cpp
>   source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
>
> Index: source/Host/common/Host.cpp
> ===================================================================
> --- source/Host/common/Host.cpp
> +++ source/Host/common/Host.cpp
> @@ -40,6 +40,9 @@
>  #ifndef CPU_SUBTYPE_X86_64_H
>  #define CPU_SUBTYPE_X86_64_H ((cpu_subtype_t)8)
>  #endif
> +#ifndef CPU_TYPE_ARM64
> +#define CPU_TYPE_ARM64 (CPU_TYPE_ARM|CPU_ARCH_ABI64)
> +#endif
>  #endif
>
>  #if defined (__linux__) || defined (__FreeBSD__) || defined
> (__FreeBSD_kernel__) || defined (__APPLE__) || defined(__NetBSD__)
> Index: source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
> ===================================================================
> --- source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
> +++ 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 @@
>
>      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)
>          {
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140806/9d91787c/attachment.html>


More information about the lldb-commits mailing list