Lines Matching defs:addr
55 // r2,r3,r4,r5,r6,r7,r1,r2 but mask+addr before r0 so +2
166 static void xptrace(int req, pid_t pid, void *addr, void *data)
168 if (ptrace(req, pid, addr, data)) perror_exit("ptrace pid %d", pid);
176 static void ptrace_struct(long addr, void *dst, size_t bytes)
183 v = ptrace(PTRACE_PEEKDATA, TT.pid, addr + offset);
192 static void print_struct(long addr)
194 if (!addr) { // All NULLs look the same...
201 ptrace_struct(addr, &ir, sizeof(ir));
207 ptrace_struct(addr, &fx, sizeof(fx));
214 ptrace_struct(addr, &l, sizeof(l));
219 ptrace_struct(addr, &l, sizeof(l));
224 ptrace_struct(addr, &rl, sizeof(rl));
231 ptrace_struct(addr, &ss, sizeof(ss));
241 ptrace_struct(addr, &sb, sizeof(sb));
258 ptrace_struct(addr, &to, sizeof(to));
264 ptrace_struct(addr, &ts, sizeof(ts));
270 ptrace_struct(addr, &ws, sizeof(ws));
276 static void print_ptr(long addr)
278 if (!addr) fprintf(stderr, "NULL");
279 else fprintf(stderr, "0x%lx", addr);
282 static void print_string(long addr)
290 long v = ptrace(PTRACE_PEEKDATA, TT.pid, addr + offset);