2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-09-12 15:50:12 +00:00
repo/testing/chromium/patches/musl-ptrace.patch

23 lines
820 B
Diff
Raw Normal View History

2019-07-28 15:49:11 +00:00
diff --git chromium-75.0.3770.100/third_party/crashpad/crashpad/util/linux/ptracer.cc chromium-75.0.3770.100/third_party/crashpad/crashpad/util/linux/ptracer.cc
index c6c9229..6731148 100644
--- chromium-75.0.3770.100/third_party/crashpad/crashpad/util/linux/ptracer.cc
+++ chromium-75.0.3770.100/third_party/crashpad/crashpad/util/linux/ptracer.cc
@@ -66,6 +66,7 @@ bool GetThreadArea32(pid_t tid,
const ThreadContext& context,
LinuxVMAddress* address,
bool can_log) {
+#ifdef PTRACE_GET_THREAD_AREA
size_t index = (context.t32.xgs & 0xffff) >> 3;
user_desc desc;
if (ptrace(
@@ -77,6 +78,9 @@ bool GetThreadArea32(pid_t tid,
*address = desc.base_addr;
return true;
+#else
+ return false;
+#endif
}
bool GetThreadArea64(pid_t tid,