Lines Matching refs:pid_arg

124 read_cached_memory (struct __libdwfl_pid_arg *pid_arg,
133 struct __libdwfl_remote_mem_cache *mem_cache = pid_arg->mem_cache;
143 pid_arg->mem_cache = mem_cache;
164 ssize_t res = process_vm_readv (pid_arg->tid_attached,
183 clear_cached_memory (struct __libdwfl_pid_arg *pid_arg)
185 struct __libdwfl_remote_mem_cache *mem_cache = pid_arg->mem_cache;
195 struct __libdwfl_pid_arg *pid_arg = arg;
196 pid_t tid = pid_arg->tid_attached;
201 if (read_cached_memory (pid_arg, addr, result))
252 struct __libdwfl_pid_arg *pid_arg = dwfl_arg;
256 rewinddir (pid_arg->dir);
260 dirent = readdir (pid_arg->dir);
326 struct __libdwfl_pid_arg *pid_arg = thread_arg;
327 assert (pid_arg->tid_attached == 0);
329 if (! pid_arg->assume_ptrace_stopped
330 && ! __libdwfl_ptrace_attach (tid, &pid_arg->tid_was_stopped))
332 pid_arg->tid_attached = tid;
342 struct __libdwfl_pid_arg *pid_arg = dwfl_arg;
343 elf_end (pid_arg->elf);
344 free (pid_arg->mem_cache);
345 close (pid_arg->elf_fd);
346 closedir (pid_arg->dir);
347 free (pid_arg);
366 struct __libdwfl_pid_arg *pid_arg = thread_arg;
368 assert (pid_arg->tid_attached == tid);
369 pid_arg->tid_attached = 0;
370 clear_cached_memory (pid_arg);
371 if (! pid_arg->assume_ptrace_stopped)
372 __libdwfl_ptrace_detach (tid, pid_arg->tid_was_stopped);
464 struct __libdwfl_pid_arg *pid_arg = malloc (sizeof *pid_arg);
465 if (pid_arg == NULL)
473 pid_arg->dir = dir;
474 pid_arg->elf = elf;
475 pid_arg->elf_fd = elf_fd;
476 pid_arg->mem_cache = NULL;
477 pid_arg->tid_attached = 0;
478 pid_arg->assume_ptrace_stopped = assume_ptrace_stopped;
480 pid_arg))
485 free (pid_arg);