|
GDB (xrefs)
|
#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_prochandle * | gdb_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 struct ps_prochandle* gdb_ps_prochandle_t |
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.
| void _initialize_proc_service | ( | void | ) |
Definition at line 246 of file proc-service.c.
Definition at line 71 of file proc-service.c.
References exec_bfd.
Referenced by ps_pglobal_lookup().
| 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 | ||
| ) |
Definition at line 197 of file proc-service.c.
References do_cleanups(), fill_fpregset(), get_thread_arch_regcache(), inferior_ptid, PS_OK, ps_prochandle::ptid, ptid_build(), ptid_get_pid(), save_inferior_ptid(), target_fetch_registers(), and target_gdbarch().
| ps_err_e ps_lgetregs | ( | gdb_ps_prochandle_t | ph, |
| lwpid_t | lwpid, | ||
| prgregset_t | gregset | ||
| ) |
Definition at line 159 of file proc-service.c.
References do_cleanups(), fill_gregset(), get_thread_arch_regcache(), inferior_ptid, PS_OK, ps_prochandle::ptid, ptid_build(), ptid_get_pid(), save_inferior_ptid(), target_fetch_registers(), and target_gdbarch().
| ps_err_e ps_lsetfpregs | ( | gdb_ps_prochandle_t | ph, |
| lwpid_t | lwpid, | ||
| const gdb_prfpregset_t * | fpregset | ||
| ) |
Definition at line 217 of file proc-service.c.
References do_cleanups(), get_thread_arch_regcache(), inferior_ptid, PS_OK, ps_prochandle::ptid, ptid_build(), ptid_get_pid(), save_inferior_ptid(), supply_fpregset(), target_gdbarch(), and target_store_registers().
| ps_err_e ps_lsetregs | ( | gdb_ps_prochandle_t | ph, |
| lwpid_t | lwpid, | ||
| const prgregset_t | gregset | ||
| ) |
Definition at line 178 of file proc-service.c.
References do_cleanups(), get_thread_arch_regcache(), inferior_ptid, PS_OK, ps_prochandle::ptid, ptid_build(), ptid_get_pid(), save_inferior_ptid(), supply_gregset(), target_gdbarch(), and target_store_registers().
| 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 | ||
| ) |
Definition at line 112 of file proc-service.c.
References BMSYMBOL_VALUE_ADDRESS, core_addr_to_ps_addr(), do_cleanups(), find_inferior_ptid(), lookup_minimal_symbol(), bound_minimal_symbol::minsym, PS_NOSYM, PS_OK, inferior::pspace, ps_prochandle::ptid, save_current_program_space(), and set_current_program_space().
|
static |
Definition at line 87 of file proc-service.c.
References do_cleanups(), inferior_ptid, ps_addr_to_core_addr(), PS_ERR, PS_OK, ps_prochandle::ptid, save_inferior_ptid(), target_read_memory(), and target_write_memory().
Referenced by ps_pdread(), and ps_pdwrite().
| initialize_file_ftype _initialize_proc_service |
1.8.10