GDB (xrefs)

Macros | Functions
/tmp/gdb-8.1/gdb/m68k-bsd-nat.c File Reference
`#include "defs.h"`
`#include "gdbcore.h"`
`#include "inferior.h"`
`#include "regcache.h"`
`#include <sys/types.h>`
`#include <sys/ptrace.h>`
`#include <machine/reg.h>`
`#include "m68k-tdep.h"`
`#include "inf-ptrace.h"`
`#include <machine/pcb.h>`
`#include "bsd-kvm.h"`

Go to the source code of this file.

## Macros
#define | PCB_REGS_FP 10
#define | PCB_REGS_SP 11

## Functions
static int | m68kbsd_gregset_supplies_p (int regnum)
static int | m68kbsd_fpregset_supplies_p (int regnum)
static void | m68kbsd_supply_gregset (struct regcache *regcache, const void *gregs)
static void | m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
static void | m68kbsd_collect_gregset (const struct regcache *regcache, void *gregs, int regnum)
static void | m68kbsd_collect_fpregset (struct regcache *regcache, void *fpregs, int regnum)
static void | m68kbsd_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
static void | m68kbsd_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
static int | m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
void | _initialize_m68kbsd_nat (void)

## Macro Definition Documentation

## ◆ PCB_REGS_FP

#define PCB_REGS_FP 10

Definition at line 182 of file m68k-bsd-nat.c.

Referenced by m68kbsd_supply_pcb().

## ◆ PCB_REGS_SP

#define PCB_REGS_SP 11

Definition at line 185 of file m68k-bsd-nat.c.

Referenced by m68kbsd_supply_pcb().

## Function Documentation

## ◆ _initialize_m68kbsd_nat()

void _initialize_m68kbsd_nat | ( | void |  | ) |

Definition at line 220 of file m68k-bsd-nat.c.

References add_target(), bsd_kvm_add_target(), inf_ptrace_target(), m68kbsd_fetch_inferior_registers(), m68kbsd_store_inferior_registers(), m68kbsd_supply_pcb(), target_ops::to_fetch_registers, and target_ops::to_store_registers.

## ◆ m68kbsd_collect_fpregset()

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

Definition at line 91 of file m68k-bsd-nat.c.

References regcache::arch(), M68K_FP0_REGNUM, M68K_FPI_REGNUM, m68kbsd_fpreg_offset(), regcache_raw_collect(), and regnum.

Referenced by m68kbsd_store_inferior_registers().

## ◆ m68kbsd_collect_gregset()

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

Definition at line 74 of file m68k-bsd-nat.c.

References M68K_D0_REGNUM, M68K_PC_REGNUM, regcache_raw_collect(), and regnum.

Referenced by m68kbsd_store_inferior_registers().

## ◆ m68kbsd_fetch_inferior_registers()

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

Definition at line 111 of file m68k-bsd-nat.c.

References _, m68kbsd_fpregset_supplies_p(), m68kbsd_gregset_supplies_p(), m68kbsd_supply_fpregset(), m68kbsd_supply_gregset(), perror_with_name(), pid, ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), and regnum.

Referenced by _initialize_m68kbsd_nat().

## ◆ m68kbsd_fpregset_supplies_p()

static int m68kbsd_fpregset_supplies_p | ( | int | regnum | ) |
| static

Definition at line 39 of file m68k-bsd-nat.c.

References M68K_FP0_REGNUM, M68K_FPI_REGNUM, and regnum.

Referenced by m68kbsd_fetch_inferior_registers(), and m68kbsd_store_inferior_registers().

## ◆ m68kbsd_gregset_supplies_p()

static int m68kbsd_gregset_supplies_p | ( | int | regnum | ) |
| static

Definition at line 33 of file m68k-bsd-nat.c.

References M68K_D0_REGNUM, M68K_PC_REGNUM, and regnum.

Referenced by m68kbsd_fetch_inferior_registers(), and m68kbsd_store_inferior_registers().

## ◆ m68kbsd_store_inferior_registers()

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

Definition at line 141 of file m68k-bsd-nat.c.

References _, m68kbsd_collect_fpregset(), m68kbsd_collect_gregset(), m68kbsd_fpregset_supplies_p(), m68kbsd_gregset_supplies_p(), perror_with_name(), pid, ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), and regnum.

Referenced by _initialize_m68kbsd_nat().

## ◆ m68kbsd_supply_fpregset()

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

Definition at line 59 of file m68k-bsd-nat.c.

References regcache::arch(), M68K_FP0_REGNUM, M68K_FPI_REGNUM, m68kbsd_fpreg_offset(), regcache_raw_supply(), and regnum.

Referenced by m68kbsd_fetch_inferior_registers().

## ◆ m68kbsd_supply_gregset()

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

Definition at line 47 of file m68k-bsd-nat.c.

References M68K_D0_REGNUM, M68K_PC_REGNUM, regcache_raw_supply(), regnum, and gdbarch_tdep::regs.

Referenced by m68kbsd_fetch_inferior_registers().

## ◆ m68kbsd_supply_pcb()

static int m68kbsd_supply_pcb | ( | struct regcache * | regcache,
|  | struct pcb * | pcb
| ) |  |
| static

Definition at line 189 of file m68k-bsd-nat.c.

References M68K_A2_REGNUM, M68K_D2_REGNUM, M68K_D7_REGNUM, M68K_PC_REGNUM, M68K_PS_REGNUM, M68K_SP_REGNUM, PCB_REGS_FP, PCB_REGS_SP, read_memory(), regcache_raw_supply(), and regnum.

Referenced by _initialize_m68kbsd_nat().