[Lldb-commits] [lldb] r373509 - [RegisterContextDarwin_arm64] Include the headers for getsysctlbyname.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 2 12:20:21 PDT 2019


Author: davide
Date: Wed Oct  2 12:20:21 2019
New Revision: 373509

URL: http://llvm.org/viewvc/llvm-project?rev=373509&view=rev
Log:
[RegisterContextDarwin_arm64] Include the headers for getsysctlbyname.

This code is only used under __arm64__, use the correct guard.

<rdar://problem/55916729>

Modified:
    lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp?rev=373509&r1=373508&r2=373509&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp Wed Oct  2 12:20:21 2019
@@ -25,6 +25,11 @@
 
 #include <memory>
 
+#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__))
+#include <sys/types.h>
+#include <sys/sysctl.h>
+#endif
+
 // Support building against older versions of LLVM, this macro was added
 // recently.
 #ifndef LLVM_EXTENSION




More information about the lldb-commits mailing list