mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-30 02:27:38 +01:00
Patch by Matthieu Delahaye:
(lookup_symbol): Fix typo: Elf64_Shdr -> ElfW (Shdr). (get_proc_name): Ditto. (Logical change 1.67)
This commit is contained in:
parent
1c9ce0d96c
commit
4409fc61d8
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ elfW (lookup_symbol) (unw_word_t ip, struct elf_image *ei,
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
shdr = (Elf64_Shdr *) (((char *) shdr) + ehdr->e_shentsize);
|
shdr = (ElfW (Shdr) *) (((char *) shdr) + ehdr->e_shentsize);
|
||||||
}
|
}
|
||||||
if (min_dist >= ei->size)
|
if (min_dist >= ei->size)
|
||||||
return -UNW_ENOINFO; /* not found */
|
return -UNW_ENOINFO; /* not found */
|
||||||
|
@ -152,7 +152,7 @@ elfW (get_proc_name) (pid_t pid, unw_word_t ip, char *buf, size_t buf_len,
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ehdr = ei.image;
|
ehdr = ei.image;
|
||||||
phdr = (Elf64_Phdr *) ((char *) ei.image + ehdr->e_phoff);
|
phdr = (ElfW (Phdr) *) ((char *) ei.image + ehdr->e_phoff);
|
||||||
|
|
||||||
for (i = 0; i < ehdr->e_phnum; ++i)
|
for (i = 0; i < ehdr->e_phnum; ++i)
|
||||||
if (phdr[i].p_type == PT_LOAD && phdr[i].p_offset == mapoff)
|
if (phdr[i].p_type == PT_LOAD && phdr[i].p_offset == mapoff)
|
||||||
|
|
Loading…
Reference in a new issue