1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-26 17:17:39 +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:
mostang.com!davidm 2003-03-27 00:44:39 +00:00
parent 1c9ce0d96c
commit 4409fc61d8

View file

@ -122,7 +122,7 @@ elfW (lookup_symbol) (unw_word_t ip, struct elf_image *ei,
default:
break;
}
shdr = (Elf64_Shdr *) (((char *) shdr) + ehdr->e_shentsize);
shdr = (ElfW (Shdr) *) (((char *) shdr) + ehdr->e_shentsize);
}
if (min_dist >= ei->size)
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;
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)
if (phdr[i].p_type == PT_LOAD && phdr[i].p_offset == mapoff)