[Lldb-commits] [lldb] lldb: Linux: empty Ptrace.h pollyfill (PR #218038)
Nick Desaulniers via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 26 15:56:52 PDT 2026
================
@@ -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
More information about the lldb-commits
mailing list