|
GDB (xrefs)
|
#include "defs.h"#include "gdbcore.h"#include "inferior.h"#include "gdbthread.h"#include "symtab.h"#include "target.h"#include "regcache.h"#include "objfiles.h"#include "gdb_proc_service.h"#include <sys/procfs.h>#include "gregset.h"Go to the source code of this file.
Functions | |
| static CORE_ADDR | ps_addr_to_core_addr (psaddr_t addr) |
| static psaddr_t | core_addr_to_ps_addr (CORE_ADDR addr) |
| static ps_err_e | ps_xfer_memory (const struct ps_prochandle *ph, psaddr_t addr, gdb_byte *buf, size_t len, int write) |
| ps_err_e | ps_pglobal_lookup (struct ps_prochandle *ph, const char *obj, const char *name, psaddr_t *sym_addr) |
| ps_err_e | ps_pdread (struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size) |
| ps_err_e | ps_pdwrite (struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size) |
| static struct regcache * | get_ps_regcache (struct ps_prochandle *ph, lwpid_t lwpid) |
| ps_err_e | ps_lgetregs (struct ps_prochandle *ph, lwpid_t lwpid, prgregset_t gregset) |
| ps_err_e | ps_lsetregs (struct ps_prochandle *ph, lwpid_t lwpid, const prgregset_t gregset) |
| ps_err_e | ps_lgetfpregs (struct ps_prochandle *ph, lwpid_t lwpid, prfpregset_t *fpregset) |
| ps_err_e | ps_lsetfpregs (struct ps_prochandle *ph, lwpid_t lwpid, const prfpregset_t *fpregset) |
| pid_t | ps_getpid (struct ps_prochandle *ph) |
| void | _initialize_proc_service () |
| void _initialize_proc_service | ( | ) |
Definition at line 219 of file proc-service.c.
Referenced by initialize_all_files().
|
static |
Definition at line 55 of file proc-service.c.
References current_program_space, and program_space::exec_bfd().
Referenced by ps_pglobal_lookup().
|
static |
Definition at line 142 of file proc-service.c.
References get_thread_arch_regcache(), thread_info::inf, inf::pid, and ps_prochandle::thread.
Referenced by ps_lgetfpregs(), ps_lgetregs(), ps_lsetfpregs(), and ps_lsetregs().
|
static |
Definition at line 43 of file proc-service.c.
References current_program_space, and program_space::exec_bfd().
Referenced by ps_xfer_memory().
| pid_t ps_getpid | ( | struct ps_prochandle * | ph | ) |
Definition at line 212 of file proc-service.c.
References thread_info::ptid, and ps_prochandle::thread.
| ps_err_e ps_lgetfpregs | ( | struct ps_prochandle * | ph, |
| lwpid_t | lwpid, | ||
| prfpregset_t * | fpregset | ||
| ) |
Definition at line 182 of file proc-service.c.
References fill_fpregset(), get_ps_regcache(), and target_fetch_registers().
| ps_err_e ps_lgetregs | ( | struct ps_prochandle * | ph, |
| lwpid_t | lwpid, | ||
| prgregset_t | gregset | ||
| ) |
Definition at line 154 of file proc-service.c.
References fill_gregset(), get_ps_regcache(), and target_fetch_registers().
| ps_err_e ps_lsetfpregs | ( | struct ps_prochandle * | ph, |
| lwpid_t | lwpid, | ||
| const prfpregset_t * | fpregset | ||
| ) |
Definition at line 197 of file proc-service.c.
References get_ps_regcache(), supply_fpregset(), and target_store_registers().
| ps_err_e ps_lsetregs | ( | struct ps_prochandle * | ph, |
| lwpid_t | lwpid, | ||
| const prgregset_t | gregset | ||
| ) |
Definition at line 168 of file proc-service.c.
References get_ps_regcache(), supply_gregset(), and target_store_registers().
| ps_err_e ps_pdread | ( | struct ps_prochandle * | ph, |
| psaddr_t | addr, | ||
| void * | buf, | ||
| size_t | size | ||
| ) |
Definition at line 122 of file proc-service.c.
References ps_xfer_memory(), and size.
| ps_err_e ps_pdwrite | ( | struct ps_prochandle * | ph, |
| psaddr_t | addr, | ||
| const void * | buf, | ||
| size_t | size | ||
| ) |
Definition at line 130 of file proc-service.c.
References ps_xfer_memory(), and size.
| ps_err_e ps_pglobal_lookup | ( | struct ps_prochandle * | ph, |
| const char * | obj, | ||
| const char * | name, | ||
| psaddr_t * | sym_addr | ||
| ) |
Definition at line 100 of file proc-service.c.
References core_addr_to_ps_addr(), thread_info::inf, lookup_minimal_symbol(), bound_minimal_symbol::minsym, name, set_current_program_space(), ps_prochandle::thread, and bound_minimal_symbol::value_address().
|
static |
Definition at line 72 of file proc-service.c.
References thread_info::inf, inferior_ptid, ps_addr_to_core_addr(), inferior::pspace, thread_info::ptid, set_current_inferior(), set_current_program_space(), target_read_memory(), target_write_memory(), and ps_prochandle::thread.
Referenced by ps_pdread(), and ps_pdwrite().