Lines Matching refs:phdl
43 struct proc_handle *phdl = arg;
45 if (phdl->nobjs >= phdl->rdobjsz) {
46 phdl->rdobjsz *= 2;
47 phdl->rdobjs = reallocf(phdl->rdobjs, sizeof(*phdl->rdobjs) *
48 phdl->rdobjsz);
49 if (phdl->rdobjs == NULL)
52 if (strcmp(lop->rdl_path, phdl->execname) == 0 &&
54 phdl->rdexec = &phdl->rdobjs[phdl->nobjs];
55 memcpy(&phdl->rdobjs[phdl->nobjs++], lop, sizeof(*lop));
61 proc_rdagent(struct proc_handle *phdl)
63 if (phdl->rdap == NULL && phdl->status != PS_UNDEAD &&
64 phdl->status != PS_IDLE) {
65 if ((phdl->rdap = rd_new(phdl)) != NULL) {
66 phdl->rdobjs = malloc(sizeof(*phdl->rdobjs) * 64);
67 phdl->rdobjsz = 64;
68 if (phdl->rdobjs == NULL)
69 return (phdl->rdap);
70 rd_loadobj_iter(phdl->rdap, map_iter, phdl);
74 return (phdl->rdap);
78 proc_updatesyms(struct proc_handle *phdl)
81 memset(phdl->rdobjs, 0, sizeof(*phdl->rdobjs) * phdl->rdobjsz);
82 phdl->nobjs = 0;
83 rd_loadobj_iter(phdl->rdap, map_iter, phdl);