GDB (xrefs)
|
#include "defs.h"
#include "gdbcore.h"
#include "inferior.h"
#include "regcache.h"
#include "gdb_assert.h"
#include <stddef.h>
#include <sys/types.h>
#include <sys/procfs.h>
#include <sys/ptrace.h>
#include <sys/signal.h>
#include <machine/frame.h>
#include <machine/pcb.h>
#include <machine/reg.h>
#include "fbsd-nat.h"
#include "gregset.h"
#include "ppc-tdep.h"
#include "ppcfbsd-tdep.h"
#include "inf-ptrace.h"
#include "bsd-kvm.h"
Go to the source code of this file.
Functions | |
void | supply_gregset (struct regcache *regcache, const gdb_gregset_t *gregsetp) |
void | fill_gregset (const struct regcache *regcache, gdb_gregset_t *gregsetp, int regno) |
void | supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp) |
void | fill_fpregset (const struct regcache *regcache, gdb_fpregset_t *fpregsetp, int regno) |
static int | getfpregs_supplies (struct gdbarch *gdbarch, int regno) |
static void | ppcfbsd_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno) |
static void | ppcfbsd_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno) |
static int | ppcfbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) |
void | _initialize_ppcfbsd_nat (void) |
void _initialize_ppcfbsd_nat | ( | void | ) |
Definition at line 209 of file ppcfbsd-nat.c.
References add_target(), bsd_kvm_add_target(), fbsd_find_memory_regions(), fbsd_make_corefile_notes(), fbsd_pid_to_exec_file(), inf_ptrace_target(), ppcfbsd_fetch_inferior_registers(), ppcfbsd_store_inferior_registers(), ppcfbsd_supply_pcb(), target_ops::to_fetch_registers, target_ops::to_find_memory_regions, target_ops::to_make_corefile_notes, target_ops::to_pid_to_exec_file, and target_ops::to_store_registers.
void fill_fpregset | ( | const struct regcache * | regcache, |
gdb_fpregset_t * | fpregsetp, | ||
int | regno | ||
) |
Definition at line 83 of file ppcfbsd-nat.c.
References ppc_collect_fpregset(), and ppc_fbsd_fpregset().
void fill_gregset | ( | const struct regcache * | regcache, |
gdb_gregset_t * | gregsetp, | ||
int | regno | ||
) |
Definition at line 57 of file ppcfbsd-nat.c.
References memset(), ppc_collect_gregset(), and ppc_fbsd_gregset().
static int getfpregs_supplies | ( | struct gdbarch * | gdbarch, |
int | regno | ||
) | [static] |
Definition at line 95 of file ppcfbsd-nat.c.
References gdb_assert, gdbarch_tdep(), ppc_floating_point_unit_p(), gdbarch_tdep::ppc_fp0_regnum, gdbarch_tdep::ppc_fpscr_regnum, and ppc_num_fprs.
Referenced by ppcfbsd_fetch_inferior_registers(), and ppcfbsd_store_inferior_registers().
static void ppcfbsd_fetch_inferior_registers | ( | struct target_ops * | ops, |
struct regcache * | regcache, | ||
int | regno | ||
) | [static] |
Definition at line 121 of file ppcfbsd-nat.c.
References _, get_regcache_arch(), getfpregs_supplies(), inferior_ptid, perror_with_name(), ppc_fbsd_fpregset(), ppc_supply_fpregset(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, gdbarch_tdep::regs, and supply_gregset().
Referenced by _initialize_ppcfbsd_nat().
static void ppcfbsd_store_inferior_registers | ( | struct target_ops * | ops, |
struct regcache * | regcache, | ||
int | regno | ||
) | [static] |
Definition at line 149 of file ppcfbsd-nat.c.
References _, fill_fpregset(), fill_gregset(), get_regcache_arch(), getfpregs_supplies(), inferior_ptid, perror_with_name(), ptid_get_pid(), ptrace(), and PTRACE_TYPE_ARG3.
Referenced by _initialize_ppcfbsd_nat().
static int ppcfbsd_supply_pcb | ( | struct regcache * | regcache, |
struct pcb * | pcb | ||
) | [static] |
Definition at line 185 of file ppcfbsd-nat.c.
References gdbarch_sp_regnum(), gdbarch_tdep(), get_regcache_arch(), gdbarch_tdep::ppc_cr_regnum, gdbarch_tdep::ppc_gp0_regnum, gdbarch_tdep::ppc_lr_regnum, regcache_raw_supply(), and regnum.
Referenced by _initialize_ppcfbsd_nat().
void supply_fpregset | ( | struct regcache * | regcache, |
const gdb_fpregset_t * | fpregsetp | ||
) |
Definition at line 71 of file ppcfbsd-nat.c.
References ppc_fbsd_fpregset(), and ppc_supply_fpregset().
void supply_gregset | ( | struct regcache * | regcache, |
const gdb_gregset_t * | gregsetp | ||
) |
Definition at line 46 of file ppcfbsd-nat.c.
References ppc_fbsd_gregset(), and ppc_supply_gregset().