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
This commit is contained in:
Dan Albert 2014-04-23 04:20:57 +00:00
parent 0b623baeb3
commit c579b935c3
1 changed files with 1 additions and 1 deletions

View File

@ -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);