Lines Matching defs:phnum
106 uint_t phnum;
108 if (read_ehdr32(P, &ehdr, &phnum, ehdr_start) != 0)
111 addrs = malloc(sizeof (uintptr_t) * phnum * 2);
113 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) {
134 uint_t phnum;
136 if (read_ehdr64(P, &ehdr, &phnum, ehdr_start) != 0)
139 addrs = malloc(sizeof (uintptr_t) * phnum * 2);
141 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) {
1017 read_ehdr32(struct ps_prochandle *P, Elf32_Ehdr *ehdr, uint_t *phnum,
1036 if ((*phnum = ehdr->e_phnum) == PN_XNUM) {
1045 *phnum = shdr0.sh_info;
1053 uint_t phnum, Elf32_Phdr *phdr, uintptr_t addr)
1057 for (i = 0; i < phnum; i++) {
1071 read_ehdr64(struct ps_prochandle *P, Elf64_Ehdr *ehdr, uint_t *phnum,
1090 if ((*phnum = ehdr->e_phnum) == PN_XNUM) {
1099 *phnum = shdr0.sh_info;
1107 uint_t phnum, Elf64_Phdr *phdr, uintptr_t addr)
1111 for (i = 0; i < phnum; i++) {
1226 uint_t phnum, i;
1228 if (read_ehdr32(P, &ehdr, &phnum, addr) != 0 ||
1229 read_dynamic_phdr32(P, &ehdr, phnum, &phdr, addr) != 0)
1261 uint_t phnum, i;
1263 if (read_ehdr64(P, &ehdr, &phnum, addr) != 0 ||
1264 read_dynamic_phdr64(P, &ehdr, phnum, &phdr, addr) != 0)
1307 uint_t phnum;
1322 if ((read_ehdr32(P, &ehdr, &phnum, addr) != 0) ||
1323 read_dynamic_phdr32(P, &ehdr, phnum, &phdr, addr) != 0)
1326 elf = fake_elf32(P, fptr, addr, &ehdr, phnum, &phdr);
1332 if (read_ehdr64(P, &ehdr, &phnum, addr) != 0 ||
1333 read_dynamic_phdr64(P, &ehdr, phnum, &phdr, addr) != 0)
1336 elf = fake_elf64(P, fptr, addr, &ehdr, phnum, &phdr);