GDB (xrefs)

Functions
/tmp/gdb-8.1/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.

## 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)
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, gdb_prfpregset_t *fpregset)
ps_err_e | ps_lsetfpregs (struct ps_prochandle *ph, lwpid_t lwpid, const gdb_prfpregset_t *fpregset)
pid_t | ps_getpid (struct ps_prochandle *ph)
void | _initialize_proc_service (void)

## Function Documentation

## ◆ _initialize_proc_service()

void _initialize_proc_service | ( | void |  | ) |

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

## ◆ core_addr_to_ps_addr()

static psaddr_t core_addr_to_ps_addr | ( | CORE_ADDR | addr | ) |
| static

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

References exec_bfd.

Referenced by ps_pglobal_lookup().

## ◆ ps_addr_to_core_addr()

static CORE_ADDR ps_addr_to_core_addr | ( | psaddr_t | addr | ) |
| static

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

References exec_bfd.

Referenced by ps_xfer_memory().

## ◆ ps_getpid()

pid_t ps_getpid | ( | struct ps_prochandle * | ph | ) |

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

References ps_prochandle::ptid, and ptid_get_pid().

## ◆ ps_lgetfpregs()

ps_err_e ps_lgetfpregs | ( | struct ps_prochandle * | ph,
|  | lwpid_t | lwpid,
|  | gdb_prfpregset_t * | fpregset
| ) |  |

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

References fill_fpregset(), get_thread_arch_regcache(), PS_OK, ps_prochandle::ptid, regcache::ptid(), ptid_build(), ptid_get_pid(), target_fetch_registers(), and target_gdbarch().

## ◆ ps_lgetregs()

ps_err_e ps_lgetregs | ( | struct ps_prochandle * | ph,
|  | lwpid_t | lwpid,
|  | prgregset_t | gregset
| ) |  |

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

References fill_gregset(), get_thread_arch_regcache(), PS_OK, ps_prochandle::ptid, regcache::ptid(), ptid_build(), ptid_get_pid(), target_fetch_registers(), and target_gdbarch().

## ◆ ps_lsetfpregs()

ps_err_e ps_lsetfpregs | ( | struct ps_prochandle * | ph,
|  | lwpid_t | lwpid,
|  | const gdb_prfpregset_t * | fpregset
| ) |  |

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

References get_thread_arch_regcache(), PS_OK, ps_prochandle::ptid, regcache::ptid(), ptid_build(), ptid_get_pid(), supply_fpregset(), target_gdbarch(), 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 148 of file proc-service.c.

References get_thread_arch_regcache(), PS_OK, ps_prochandle::ptid, regcache::ptid(), ptid_build(), ptid_get_pid(), supply_gregset(), target_gdbarch(), 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 114 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 122 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
| ) |  |

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

References BMSYMBOL_VALUE_ADDRESS, core_addr_to_ps_addr(), find_inferior_ptid(), lookup_minimal_symbol(), bound_minimal_symbol::minsym, name, PS_NOSYM, PS_OK, ps_prochandle::ptid, and set_current_program_space().

## ◆ 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

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

References inferior_ptid, make_scoped_restore(), ps_addr_to_core_addr(), PS_ERR, PS_OK, ps_prochandle::ptid, target_read_memory(), and target_write_memory().

Referenced by ps_pdread(), and ps_pdwrite().