From c579b935c3f9cb40c0ea5cc6a1dc89fd3f0a2595 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 23 Apr 2014 04:20:57 +0000 Subject: [PATCH] Fixes type of dyldInfo for glibc/bionic systems Darwin and the BSDs define a tagged struct dl_info typedef'd as Dl_info. glibc and bionic typedef an anonymous struct as Dl_info. llvm-svn: 206939 --- libcxxabi/src/Unwind/AddressSpace.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxxabi/src/Unwind/AddressSpace.hpp b/libcxxabi/src/Unwind/AddressSpace.hpp index dd58f2471566..ceab016d06bd 100644 --- a/libcxxabi/src/Unwind/AddressSpace.hpp +++ b/libcxxabi/src/Unwind/AddressSpace.hpp @@ -324,7 +324,7 @@ inline bool LocalAddressSpace::findOtherFDE(pint_t targetAddr, pint_t &fde) { inline bool LocalAddressSpace::findFunctionName(pint_t addr, char *buf, size_t bufLen, unw_word_t *offset) { - dl_info dyldInfo; + Dl_info dyldInfo; if (dladdr((void *)addr, &dyldInfo)) { if (dyldInfo.dli_sname != NULL) { strlcpy(buf, dyldInfo.dli_sname, bufLen);