Searched refs:phdl (Results 1 - 8 of 8) sorted by relevance

/freebsd-10.3-release/lib/libproc/
H A Dproc_rtld.c43 struct proc_handle *phdl = arg; local
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
61 proc_rdagent(struct proc_handle *phdl) argument
78 proc_updatesyms(struct proc_handle *phdl) argument
[all...]
H A Dproc_util.c44 proc_clearflags(struct proc_handle *phdl, int mask) argument
47 if (phdl == NULL)
50 phdl->flags &= ~mask;
59 proc_continue(struct proc_handle *phdl) argument
63 if (phdl == NULL)
66 if (phdl->status == PS_STOP && WSTOPSIG(phdl->wstat) != SIGTRAP)
67 pending = WSTOPSIG(phdl->wstat);
68 if (ptrace(PT_CONTINUE, phdl->pid, (caddr_t)(uintptr_t)1, pending) != 0)
71 phdl
77 proc_detach(struct proc_handle *phdl, int reason) argument
101 proc_getflags(struct proc_handle *phdl) argument
111 proc_setflags(struct proc_handle *phdl, int mask) argument
123 proc_state(struct proc_handle *phdl) argument
133 proc_getpid(struct proc_handle *phdl) argument
143 proc_wstatus(struct proc_handle *phdl) argument
164 proc_getwstat(struct proc_handle *phdl) argument
183 proc_read(struct proc_handle *phdl, void *buf, size_t size, size_t addr) argument
200 proc_getlwpstatus(struct proc_handle *phdl) argument
[all...]
H A Dproc_create.c46 proc_init(pid_t pid, int flags, int status, struct proc_handle *phdl) argument
51 memset(phdl, 0, sizeof(*phdl));
52 phdl->pid = pid;
53 phdl->flags = flags;
54 phdl->status = status;
60 len = sizeof(phdl->execname);
61 if (sysctl(mib, 4, phdl->execname, &len, NULL, 0) != 0) {
67 phdl->execname[0] = '\0';
75 struct proc_handle *phdl; local
126 struct proc_handle *phdl; local
186 proc_free(struct proc_handle *phdl) argument
[all...]
H A Dproc_bkpt.c59 proc_stop(struct proc_handle *phdl) argument
63 if (kill(proc_getpid(phdl), SIGSTOP) == -1) {
64 DPRINTF("kill %d", proc_getpid(phdl));
66 } else if (waitpid(proc_getpid(phdl), &status, WSTOPPED) == -1) {
67 DPRINTF("waitpid %d", proc_getpid(phdl));
78 proc_bkptset(struct proc_handle *phdl, uintptr_t address, argument
86 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD ||
87 phdl->status == PS_IDLE) {
95 if (phdl
142 proc_bkptdel(struct proc_handle *phdl, uintptr_t address, unsigned long saved) argument
200 proc_bkptexec(struct proc_handle *phdl, unsigned long saved) argument
[all...]
H A Dproc_regs.c43 proc_regget(struct proc_handle *phdl, proc_reg_t reg, unsigned long *regvalue) argument
47 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD ||
48 phdl->status == PS_IDLE) {
53 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0)
87 proc_regset(struct proc_handle *phdl, proc_reg_t reg, unsigned long regvalue) argument
91 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD ||
92 phdl->status == PS_IDLE) {
96 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_
[all...]
/freebsd-10.3-release/lib/libproc/test/t1-bkpt/
H A Dt1-bkpt.c48 struct proc_handle *phdl; local
52 proc_create("./t1-bkpt", targv, NULL, NULL, &phdl);
53 assert(proc_bkptset(phdl, (uintptr_t)t1_bkpt_t, &saved) == 0);
54 proc_continue(phdl);
55 assert(proc_wstatus(phdl) == PS_STOP);
56 proc_bkptexec(phdl, saved);
57 proc_continue(phdl);
58 proc_wstatus(phdl);
59 proc_free(phdl);
/freebsd-10.3-release/lib/libproc/test/t2-name2map/
H A Dt2-name2map.c41 struct proc_handle *phdl; local
43 proc_create("./t2-name2map", argv, NULL, NULL, &phdl);
44 map = proc_name2map(phdl, "ld-elf.so.1");
/freebsd-10.3-release/lib/libproc/test/t3-name2sym/
H A Dt3-name2sym.c42 struct proc_handle *phdl; local
45 proc_create("./t3-name2sym", argv, NULL, NULL, &phdl);
47 assert(proc_name2sym(phdl, "ld-elf.so.1", "r_debug_state", &sym) == 0);
49 assert(proc_name2sym(phdl, "t3-name2sym", "main", &sym) == 0);

Completed in 63 milliseconds