[Lldb-commits] [PATCH] D132514: [lldb] Remove obsolete Android-specific definitions

Pirama Arumuga Nainar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 24 14:47:35 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGee9d52a28196: [lldb] Remove obsolete Android-specific definitions (authored by pirama).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132514/new/

https://reviews.llvm.org/D132514

Files:
  lldb/source/Plugins/Process/Linux/Procfs.h


Index: lldb/source/Plugins/Process/Linux/Procfs.h
===================================================================
--- lldb/source/Plugins/Process/Linux/Procfs.h
+++ lldb/source/Plugins/Process/Linux/Procfs.h
@@ -6,32 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-// source/Plugins/Process/Linux/Procfs.h defines the symbols we need from
-// sys/procfs.h on Android/Linux for all supported architectures.
-
 #include "lldb/lldb-types.h"
 #include "llvm/Support/Error.h"
-#include <sys/ptrace.h>
 #include <vector>
 
-#ifdef __ANDROID__
-#if defined(__arm64__) || defined(__aarch64__)
-typedef unsigned long elf_greg_t;
-typedef elf_greg_t
-    elf_gregset_t[(sizeof(struct user_pt_regs) / sizeof(elf_greg_t))];
-typedef struct user_fpsimd_state elf_fpregset_t;
-#ifndef NT_FPREGSET
-#define NT_FPREGSET NT_PRFPREG
-#endif // NT_FPREGSET
-#elif defined(__mips__)
-#ifndef NT_FPREGSET
-#define NT_FPREGSET NT_PRFPREG
-#endif // NT_FPREGSET
-#endif
-#else // __ANDROID__
-#include <sys/procfs.h>
-#endif // __ANDROID__
-
 namespace lldb_private {
 namespace process_linux {
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132514.455385.patch
Type: text/x-patch
Size: 1128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220824/c5b02b79/attachment.bin>


More information about the lldb-commits mailing list