Home
last modified time | relevance | path

Searched refs:phdl (Results 1 – 7 of 7) sorted by relevance

/freebsd/lib/libproc/
H A Dproc_rtld.c51 phdl = arg; in map_iter()
52 if (phdl->nmappings >= phdl->maparrsz) { in map_iter()
54 tmp = reallocarray(phdl->mappings, phdl->maparrsz, in map_iter()
61 mapping = &phdl->mappings[phdl->nmappings]; in map_iter()
65 phdl->exec_map = phdl->nmappings; in map_iter()
114 if (phdl->rdap == NULL && phdl->status != PS_UNDEAD && in proc_rdagent()
116 if ((phdl->rdap = rd_new(phdl)) == NULL) in proc_rdagent()
120 phdl->mappings = calloc(phdl->maparrsz, in proc_rdagent()
124 if (rd_loadobj_iter(phdl->rdap, map_iter, phdl) != RD_OK) in proc_rdagent()
134 memset(phdl->mappings, 0, sizeof(*phdl->mappings) * phdl->maparrsz); in proc_updatesyms()
[all …]
H A Dproc_util.c49 if (phdl == NULL) in proc_clearflags()
65 if (phdl == NULL) in proc_continue()
68 if (phdl->status == PS_STOP && WSTOPSIG(phdl->wstat) != SIGTRAP) in proc_continue()
88 if (phdl == NULL) in proc_detach()
103 proc_free(phdl); in proc_detach()
111 if (phdl == NULL) in proc_getflags()
121 if (phdl == NULL) in proc_setflags()
133 if (phdl == NULL) in proc_state()
143 if (phdl == NULL) in proc_getmodel()
154 if (phdl == NULL) in proc_wstatus()
[all …]
H A Dproc_create.c79 if ((phdl = malloc(sizeof(*phdl))) == NULL) in proc_init()
82 memset(phdl, 0, sizeof(*phdl)); in proc_init()
94 error = procstat_getpathname(phdl->procstat, kp, phdl->execpath, in proc_init()
121 *pphdl = phdl; in proc_init()
170 proc_free(phdl); in proc_attach()
171 phdl = NULL; in proc_attach()
173 *pphdl = phdl; in proc_attach()
189 phdl = NULL; in proc_create()
231 phdl = NULL; in proc_create()
234 *pphdl = phdl; in proc_create()
[all …]
H A Dproc_bkpt.c103 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_bkptset()
104 phdl->status == PS_IDLE) { in proc_bkptset()
112 if (phdl->status != PS_STOP) { in proc_bkptset()
113 if (proc_stop(phdl) != 0) in proc_bkptset()
151 proc_continue(phdl); in proc_bkptset()
164 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_bkptdel()
165 phdl->status == PS_IDLE) { in proc_bkptdel()
174 if (proc_stop(phdl) != 0) in proc_bkptdel()
195 proc_continue(phdl); in proc_bkptdel()
246 proc_wstatus(phdl); in proc_bkptexec()
[all …]
H A Dproc_regs.c43 proc_regget(struct proc_handle *phdl, proc_reg_t reg, unsigned long *regvalue) in proc_regget() argument
47 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_regget()
48 phdl->status == PS_IDLE) { in proc_regget()
53 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0) in proc_regget()
95 proc_regset(struct proc_handle *phdl, proc_reg_t reg, unsigned long regvalue) in proc_regset() argument
99 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_regset()
100 phdl->status == PS_IDLE) { in proc_regset()
104 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0) in proc_regset()
141 if (ptrace(PT_SETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0) in proc_regset()
H A Dlibproc.h128 #define proc_getpid(phdl) (((struct proc_handle_public *)(phdl))->pid) argument
/freebsd/lib/libproc/tests/
H A Dproc_test.c51 struct proc_handle *phdl; in start_prog() local
72 return (phdl); in start_prog()
183 proc_detach(phdl, 0); in ATF_TC_BODY()
212 proc_detach(phdl, 0); in ATF_TC_BODY()
251 proc_detach(phdl, 0); in ATF_TC_BODY()
291 proc_detach(phdl, 0); in ATF_TC_BODY()
328 proc_detach(phdl, 0); in ATF_TC_BODY()
369 proc_detach(phdl, 0); in ATF_TC_BODY()
401 proc_detach(phdl, 0); in ATF_TC_BODY()
431 proc_detach(phdl, 0); in ATF_TC_BODY()
[all …]