GDB (xrefs)
Typedefs | Functions | Variables
/tmp/gdb-7.10/gdb/proc-service.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "inferior.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.

Typedefs

typedef struct ps_prochandlegdb_ps_prochandle_t
 
typedef void * gdb_ps_read_buf_t
 
typedef const void * gdb_ps_write_buf_t
 
typedef size_t gdb_ps_size_t
 

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 (gdb_ps_prochandle_t ph, const char *obj, const char *name, psaddr_t *sym_addr)
 
ps_err_e ps_pdread (gdb_ps_prochandle_t ph, psaddr_t addr, gdb_ps_read_buf_t buf, gdb_ps_size_t size)
 
ps_err_e ps_pdwrite (gdb_ps_prochandle_t ph, psaddr_t addr, gdb_ps_write_buf_t buf, gdb_ps_size_t size)
 
ps_err_e ps_lgetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset)
 
ps_err_e ps_lsetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, const prgregset_t gregset)
 
ps_err_e ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, gdb_prfpregset_t *fpregset)
 
ps_err_e ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, const gdb_prfpregset_t *fpregset)
 
pid_t ps_getpid (gdb_ps_prochandle_t ph)
 
void _initialize_proc_service (void)
 

Variables

initialize_file_ftype _initialize_proc_service
 

Typedef Documentation

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

typedef void* gdb_ps_read_buf_t

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

typedef size_t gdb_ps_size_t

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

typedef const void* gdb_ps_write_buf_t

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

Function Documentation

void _initialize_proc_service ( void  )

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

static psaddr_t core_addr_to_ps_addr ( CORE_ADDR  addr)
static

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

References exec_bfd.

Referenced by ps_pglobal_lookup().

static CORE_ADDR ps_addr_to_core_addr ( psaddr_t  addr)
static

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

References exec_bfd.

Referenced by ps_xfer_memory().

pid_t ps_getpid ( gdb_ps_prochandle_t  ph)

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

References ps_prochandle::ptid, and ptid_get_pid().

ps_err_e ps_lgetfpregs ( gdb_ps_prochandle_t  ph,
lwpid_t  lwpid,
gdb_prfpregset_t fpregset 
)
ps_err_e ps_lgetregs ( gdb_ps_prochandle_t  ph,
lwpid_t  lwpid,
prgregset_t  gregset 
)
ps_err_e ps_lsetfpregs ( gdb_ps_prochandle_t  ph,
lwpid_t  lwpid,
const gdb_prfpregset_t fpregset 
)
ps_err_e ps_lsetregs ( gdb_ps_prochandle_t  ph,
lwpid_t  lwpid,
const prgregset_t  gregset 
)
ps_err_e ps_pdread ( gdb_ps_prochandle_t  ph,
psaddr_t  addr,
gdb_ps_read_buf_t  buf,
gdb_ps_size_t  size 
)

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

References ps_xfer_memory().

ps_err_e ps_pdwrite ( gdb_ps_prochandle_t  ph,
psaddr_t  addr,
gdb_ps_write_buf_t  buf,
gdb_ps_size_t  size 
)

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

References ps_xfer_memory().

ps_err_e ps_pglobal_lookup ( gdb_ps_prochandle_t  ph,
const char *  obj,
const char *  name,
psaddr_t sym_addr 
)
static ps_err_e ps_xfer_memory ( const struct ps_prochandle ph,
psaddr_t  addr,
gdb_byte buf,
size_t  len,
int  write 
)
static

Variable Documentation

initialize_file_ftype _initialize_proc_service