commit | 6c6981e85c8b71353857cfc81c7c1443319b0dec | [log] [tgz] |
---|---|---|
author | David Spickett <david.spickett@linaro.org> | Mon Jul 25 10:55:45 2022 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jul 25 05:40:39 2022 -0700 |
tree | 7c96d37a376e186eac471ccdb3c8c01218005a5e | |
parent | 490e9457bb49225dd8f70989615d4ce308b36cc1 [diff] |
[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 GitOrigin-RevId: ae8a6602fb7260cc4b6d07689c8ac80f0fb4d86a
diff --git a/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp index 10ffe49..07a3751 100644 --- a/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp +++ b/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/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp b/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp index cee7278..6022a6a 100644 --- a/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp +++ b/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>