================
@@ -13,55 +13,6 @@
 
 #include <sys/ptrace.h>
 
-#ifndef __GLIBC__
-typedef int __ptrace_request;
-#endif
----------------
nickdesaulniers wrote:

Cherry picking this patch series back into android failed:

```
/mnt/disks/build-disk/src/googleplex-android/main-plus-llvm/out/llvm-project/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:1997:30:
 error: unknown type name '__ptrace_request'
 1997 |     ret = ptrace(static_cast<__ptrace_request>(req), 
static_cast<::pid_t>(pid),
      |                              ^
/mnt/disks/build-disk/src/googleplex-android/main-plus-llvm/out/llvm-project/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:2000:30:
 error: unknown type name '__ptrace_request'
 2000 |     ret = ptrace(static_cast<__ptrace_request>(req), 
static_cast<::pid_t>(pid),
      |                              ^
```

I should check if we can fix forward in Bionic, or if musl is also missing this 
type.  Perhaps it's also possible to avoid the cast.

https://github.com/llvm/llvm-project/pull/218038
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to