[libcxxabi] r206939 - Fixes type of dyldInfo for glibc/bionic systems

Dan Albert danalbert at google.com
Tue Apr 22 21:20:58 PDT 2014


Author: danalbert
Date: Tue Apr 22 23:20:57 2014
New Revision: 206939

URL: http://llvm.org/viewvc/llvm-project?rev=206939&view=rev
Log:
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.

Modified:
    libcxxabi/trunk/src/Unwind/AddressSpace.hpp

Modified: libcxxabi/trunk/src/Unwind/AddressSpace.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/AddressSpace.hpp?rev=206939&r1=206938&r2=206939&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/AddressSpace.hpp (original)
+++ libcxxabi/trunk/src/Unwind/AddressSpace.hpp Tue Apr 22 23:20:57 2014
@@ -324,7 +324,7 @@ inline bool LocalAddressSpace::findOther
 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);





More information about the cfe-commits mailing list