31 #include <sys/procfs.h>
42 #ifdef PROC_SERVICE_IS_OLD
63 return (intptr_t) addr;
65 return (uintptr_t) addr;
struct gdbarch * target_gdbarch(void)
struct ps_prochandle * gdb_ps_prochandle_t
int target_write_memory(CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
ps_err_e ps_pglobal_lookup(gdb_ps_prochandle_t ph, const char *obj, const char *name, psaddr_t *sym_addr)
void fill_gregset(const struct regcache *regcache, gdb_gregset_t *gregsetp, int regno)
initialize_file_ftype _initialize_proc_service
EXTERN_C_POP typedef prfpregset_t gdb_prfpregset_t
#define BMSYMBOL_VALUE_ADDRESS(symbol)
ps_err_e ps_lsetregs(gdb_ps_prochandle_t ph, lwpid_t lwpid, const prgregset_t gregset)
ps_err_e ps_lgetregs(gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset)
const void * gdb_ps_write_buf_t
struct inferior * find_inferior_ptid(ptid_t ptid)
void target_fetch_registers(struct regcache *regcache, int regno)
void fill_fpregset(const struct regcache *regcache, gdb_fpregset_t *fpregsetp, int regno)
ptid_t ptid_build(int pid, long lwp, long tid)
void set_current_program_space(struct program_space *pspace)
ps_err_e ps_pdwrite(gdb_ps_prochandle_t ph, psaddr_t addr, gdb_ps_write_buf_t buf, gdb_ps_size_t size)
struct cleanup * save_inferior_ptid(void)
void initialize_file_ftype(void)
struct program_space * pspace
GDB_GREGSET_T gdb_gregset_t
pid_t ps_getpid(gdb_ps_prochandle_t ph)
GDB_FPREGSET_T gdb_fpregset_t
void supply_gregset(struct regcache *regcache, const gdb_gregset_t *gregsetp)
int ptid_get_pid(ptid_t ptid)
ps_err_e ps_lsetfpregs(gdb_ps_prochandle_t ph, lwpid_t lwpid, const gdb_prfpregset_t *fpregset)
ps_err_e ps_pdread(gdb_ps_prochandle_t ph, psaddr_t addr, gdb_ps_read_buf_t buf, gdb_ps_size_t size)
static psaddr_t core_addr_to_ps_addr(CORE_ADDR addr)
gdb_gregset_t prgregset_t
int target_read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
struct minimal_symbol * minsym
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_lgetfpregs(gdb_ps_prochandle_t ph, lwpid_t lwpid, gdb_prfpregset_t *fpregset)
static CORE_ADDR ps_addr_to_core_addr(psaddr_t addr)
void target_store_registers(struct regcache *regcache, int regno)
struct cleanup * save_current_program_space(void)
struct bound_minimal_symbol lookup_minimal_symbol(const char *name, const char *sfile, struct objfile *objf)
void do_cleanups(struct cleanup *old_chain)
struct regcache * get_thread_arch_regcache(ptid_t ptid, struct gdbarch *gdbarch)
void supply_fpregset(struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
const ULONGEST const LONGEST len