[llvm-branch-commits] [llvm] 7331531 - [llvm][Support] Enable dl_iterate_phdr support on OpenBSD and DragonFly (#125186)
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Feb 15 22:09:00 PST 2025
Author: Brad Smith
Date: 2025-02-15T22:08:36-08:00
New Revision: 73315311bd6a073ba45e938d8728d9b8f389453e
URL: https://github.com/llvm/llvm-project/commit/73315311bd6a073ba45e938d8728d9b8f389453e
DIFF: https://github.com/llvm/llvm-project/commit/73315311bd6a073ba45e938d8728d9b8f389453e.diff
LOG: [llvm][Support] Enable dl_iterate_phdr support on OpenBSD and DragonFly (#125186)
(cherry picked from commit 95e19e21c55db7ede8ff7795512bbfc4ca0ca782)
Added:
Modified:
llvm/lib/Support/Unix/Signals.inc
Removed:
################################################################################
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index 9a12663228a36..2e7b467a14bbe 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -468,7 +468,8 @@ void llvm::sys::AddSignalHandler(sys::SignalHandlerCallback FnPtr,
#if ENABLE_BACKTRACES && defined(HAVE_BACKTRACE) && \
(defined(__linux__) || defined(__FreeBSD__) || \
- defined(__FreeBSD_kernel__) || defined(__NetBSD__))
+ defined(__FreeBSD_kernel__) || defined(__NetBSD__) || \
+ defined(__OpenBSD__) || defined(__DragonFly__))
struct DlIteratePhdrData {
void **StackTrace;
int depth;
More information about the llvm-branch-commits
mailing list