[clang-tools-extra] [libunwind] [llvm] [clang] [libunwind] Replace process_vm_readv with SYS_rt_sigprocmask (PR #74791)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 18 17:27:44 PST 2023


================
@@ -2974,6 +2966,39 @@ bool UnwindCursor<A, R>::getFunctionName(char *buf, size_t bufLen,
                                          buf, bufLen, offset);
 }
 
+#if defined(_LIBUNWIND_CHECK_LINUX_SIGRETURN)
+template <typename A, typename R>
+bool UnwindCursor<A, R>::isReadableAddr(const pint_t addr) const {
+  // This code is heavily based on Abseil's 'address_is_readable.cc',
----------------
MaskRay wrote:

The code is significantly different so the license (Apache2) comment should not be needed.

https://github.com/llvm/llvm-project/pull/74791


More information about the cfe-commits mailing list