GDB (xrefs)
Loading...
Searching...
No Matches
Functions
proc-service.c File Reference
#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 regcacheget_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 ()
 

Function Documentation

◆ _initialize_proc_service()

void _initialize_proc_service ( )

Definition at line 212 of file proc-service.c.

Referenced by initialize_all_files().

◆ core_addr_to_ps_addr()

static psaddr_t core_addr_to_ps_addr ( CORE_ADDR addr)
static

Definition at line 55 of file proc-service.c.

References current_program_space, and program_space::exec_bfd().

Referenced by ps_pglobal_lookup().

◆ get_ps_regcache()

static struct regcache * get_ps_regcache ( struct ps_prochandle * ph,
lwpid_t lwpid )
static

◆ ps_addr_to_core_addr()

static CORE_ADDR ps_addr_to_core_addr ( psaddr_t addr)
static

Definition at line 43 of file proc-service.c.

References current_program_space, and program_space::exec_bfd().

Referenced by ps_xfer_memory().

◆ ps_getpid()

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_lgetfpregs()

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_lgetregs()

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_lsetfpregs()

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_lsetregs()

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_pdread()

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_pdwrite()

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_pglobal_lookup()

ps_err_e ps_pglobal_lookup ( struct ps_prochandle * ph,
const char * obj,
const char * name,
psaddr_t * sym_addr )

◆ ps_xfer_memory()

static ps_err_e ps_xfer_memory ( const struct ps_prochandle * ph,
psaddr_t addr,
gdb_byte * buf,
size_t len,
int write )
static