summaryrefslogtreecommitdiffstats
path: root/libcxxabi
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-04-23 04:20:57 +0000
committerDan Albert <danalbert@google.com>2014-04-23 04:20:57 +0000
commitc579b935c3f9cb40c0ea5cc6a1dc89fd3f0a2595 (patch)
tree351774efe8dc66530b0316f4b0fdb3a9c1e85b57 /libcxxabi
parent0b623baeb3677a87899214bc0f6767fa1c75e9d3 (diff)
downloadbcm5719-llvm-c579b935c3f9cb40c0ea5cc6a1dc89fd3f0a2595.tar.gz
bcm5719-llvm-c579b935c3f9cb40c0ea5cc6a1dc89fd3f0a2595.zip
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
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/src/Unwind/AddressSpace.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/Unwind/AddressSpace.hpp b/libcxxabi/src/Unwind/AddressSpace.hpp
index dd58f247156..ceab016d06b 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);
OpenPOWER on IntegriCloud