GDB (xrefs)

Functions
/tmp/gdb-8.1/gdb/hppa-obsd-nat.c File Reference
`#include "defs.h"`
`#include "inferior.h"`
`#include "regcache.h"`
`#include "target.h"`
`#include <sys/types.h>`
`#include <sys/ptrace.h>`
`#include <machine/reg.h>`
`#include "hppa-tdep.h"`
`#include "inf-ptrace.h"`
`#include "obsd-nat.h"`

Go to the source code of this file.

## Functions
static int | hppaobsd_gregset_supplies_p (int regnum)
static int | hppaobsd_fpregset_supplies_p (int regnum)
static void | hppaobsd_supply_gregset (struct regcache *regcache, const void *gregs)
static void | hppaobsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
static void | hppaobsd_collect_gregset (const struct regcache *regcache, void *gregs, int regnum)
static void | hppaobsd_collect_fpregset (struct regcache *regcache, void *fpregs, int regnum)
static void | hppaobsd_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
static void | hppaobsd_store_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
void | _initialize_hppaobsd_nat (void)

## Function Documentation

## ◆ _initialize_hppaobsd_nat()

void _initialize_hppaobsd_nat | ( | void |  | ) |

Definition at line 250 of file hppa-obsd-nat.c.

References hppaobsd_fetch_registers(), hppaobsd_store_registers(), inf_ptrace_target(), obsd_add_target(), target_ops::to_fetch_registers, and target_ops::to_store_registers.

## ◆ hppaobsd_collect_fpregset()

static void hppaobsd_collect_fpregset | ( | struct regcache * | regcache,
|  | void * | fpregs,
|  | int | regnum
| ) |  |
| static

Definition at line 168 of file hppa-obsd-nat.c.

References HPPA_FP0_REGNUM, HPPA_FP31R_REGNUM, regcache_raw_collect(), and regnum.

Referenced by hppaobsd_store_registers().

## ◆ hppaobsd_collect_gregset()

static void hppaobsd_collect_gregset | ( | const struct regcache * | regcache,
|  | void * | gregs,
|  | int | regnum
| ) |  |
| static

Definition at line 106 of file hppa-obsd-nat.c.

References HPPA_CR26_REGNUM, HPPA_CR27_REGNUM, HPPA_IPSW_REGNUM, HPPA_PCOQ_HEAD_REGNUM, HPPA_PCOQ_TAIL_REGNUM, HPPA_PCSQ_HEAD_REGNUM, HPPA_PCSQ_TAIL_REGNUM, HPPA_R1_REGNUM, HPPA_R31_REGNUM, HPPA_SAR_REGNUM, HPPA_SR0_REGNUM, HPPA_SR1_REGNUM, HPPA_SR2_REGNUM, HPPA_SR3_REGNUM, HPPA_SR4_REGNUM, HPPA_SR5_REGNUM, HPPA_SR6_REGNUM, HPPA_SR7_REGNUM, regcache_raw_collect(), and regnum.

Referenced by hppaobsd_store_registers().

## ◆ hppaobsd_fetch_registers()

static void hppaobsd_fetch_registers | ( | struct target_ops * | ops,
|  | struct regcache * | regcache,
|  | int | regnum
| ) |  |
| static

Definition at line 189 of file hppa-obsd-nat.c.

References _, hppaobsd_fpregset_supplies_p(), hppaobsd_gregset_supplies_p(), hppaobsd_supply_fpregset(), hppaobsd_supply_gregset(), perror_with_name(), pid, ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), and regnum.

Referenced by _initialize_hppaobsd_nat().

## ◆ hppaobsd_fpregset_supplies_p()

static int hppaobsd_fpregset_supplies_p | ( | int | regnum | ) |
| static

Definition at line 41 of file hppa-obsd-nat.c.

References HPPA_FP0_REGNUM, HPPA_FP31R_REGNUM, and regnum.

Referenced by hppaobsd_fetch_registers(), and hppaobsd_store_registers().

## ◆ hppaobsd_gregset_supplies_p()

static int hppaobsd_gregset_supplies_p | ( | int | regnum | ) |
| static

Definition at line 35 of file hppa-obsd-nat.c.

References HPPA_CR27_REGNUM, HPPA_R0_REGNUM, and regnum.

Referenced by hppaobsd_fetch_registers(), and hppaobsd_store_registers().

## ◆ hppaobsd_store_registers()

static void hppaobsd_store_registers | ( | struct target_ops * | ops,
|  | struct regcache * | regcache,
|  | int | regnum
| ) |  |
| static

Definition at line 219 of file hppa-obsd-nat.c.

References _, hppaobsd_collect_fpregset(), hppaobsd_collect_gregset(), hppaobsd_fpregset_supplies_p(), hppaobsd_gregset_supplies_p(), perror_with_name(), pid, ptrace(), PTRACE_TYPE_ARG3, and regnum.

Referenced by _initialize_hppaobsd_nat().

## ◆ hppaobsd_supply_fpregset()

static void hppaobsd_supply_fpregset | ( | struct regcache * | regcache,
|  | const void * | fpregs
| ) |  |
| static

Definition at line 89 of file hppa-obsd-nat.c.

References HPPA_FP0_REGNUM, HPPA_FP31R_REGNUM, regcache_raw_supply(), and regnum.

Referenced by hppaobsd_fetch_registers().

## ◆ hppaobsd_supply_gregset()

static void hppaobsd_supply_gregset | ( | struct regcache * | regcache,
|  | const void * | gregs
| ) |  |
| static

Definition at line 49 of file hppa-obsd-nat.c.

References HPPA_CR26_REGNUM, HPPA_CR27_REGNUM, HPPA_IPSW_REGNUM, HPPA_PCOQ_HEAD_REGNUM, HPPA_PCOQ_TAIL_REGNUM, HPPA_PCSQ_HEAD_REGNUM, HPPA_PCSQ_TAIL_REGNUM, HPPA_R0_REGNUM, HPPA_R1_REGNUM, HPPA_R31_REGNUM, HPPA_SAR_REGNUM, HPPA_SR0_REGNUM, HPPA_SR1_REGNUM, HPPA_SR2_REGNUM, HPPA_SR3_REGNUM, HPPA_SR4_REGNUM, HPPA_SR5_REGNUM, HPPA_SR6_REGNUM, HPPA_SR7_REGNUM, regcache_raw_supply(), and regnum.

Referenced by hppaobsd_fetch_registers().