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 212 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 135 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 205 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 175 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 147 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 190 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 161 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 115 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 123 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 93 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, ps_addr_to_core_addr(), target_read_memory(), target_write_memory(), and ps_prochandle::thread.
Referenced by ps_pdread(), and ps_pdwrite().