[Lldb-commits] [lldb] ae8a660 - [lldb][ARM/AArch64] Use sys/uio.h instead of socket.h in native register context
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 25 05:36:26 PDT 2022
Author: David Spickett
Date: 2022-07-25T12:35:57Z
New Revision: ae8a6602fb7260cc4b6d07689c8ac80f0fb4d86a
URL: https://github.com/llvm/llvm-project/commit/ae8a6602fb7260cc4b6d07689c8ac80f0fb4d86a
DIFF: https://github.com/llvm/llvm-project/commit/ae8a6602fb7260cc4b6d07689c8ac80f0fb4d86a.diff
LOG: [lldb][ARM/AArch64] Use sys/uio.h instead of socket.h in native register context
We only want iovec and uio.h is just that without a lot
of other stuff. Saves me wondering why this code might
want to open sockets.
https://pubs.opengroup.org/onlinepubs/007904975/basedefs/sys/uio.h.html
Added:
Modified:
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
index 10ffe49f6b4e8..07a37514e7ede 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
@@ -20,7 +20,7 @@
#include "lldb/Utility/Status.h"
#include <elf.h>
-#include <sys/socket.h>
+#include <sys/uio.h>
#define REG_CONTEXT_SIZE (GetGPRSize() + sizeof(m_fpr))
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
index cee727877a13d..6022a6a373605 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
@@ -27,7 +27,7 @@
// System includes - They have to be included after framework includes because
// they define some macros which collide with variable names in other modules
-#include <sys/socket.h>
+#include <sys/uio.h>
// NT_PRSTATUS and NT_FPREGSET definition
#include <elf.h>
More information about the lldb-commits
mailing list