GDB (xrefs)

Functions | Variables
/tmp/gdb-8.1/gdb/arm-nbsd-nat.c File Reference
`#include "defs.h"`
`#include "gdbcore.h"`
`#include "inferior.h"`
`#include "regcache.h"`
`#include "target.h"`
`#include <sys/types.h>`
`#include <sys/ptrace.h>`
`#include <machine/reg.h>`
`#include <machine/frame.h>`
`#include "arm-tdep.h"`
`#include "inf-ptrace.h"`

Go to the source code of this file.

## Functions
static void | arm_supply_gregset (struct regcache *regcache, struct reg *gregset)
static void | arm_supply_fparegset (struct regcache *regcache, struct fpreg *fparegset)
static void | fetch_register (struct regcache *regcache, int regno)
static void | fetch_regs (struct regcache *regcache)
static void | fetch_fp_register (struct regcache *regcache, int regno)
static void | fetch_fp_regs (struct regcache *regcache)
static void | armnbsd_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno)
static void | store_register (const struct regcache *regcache, int regno)
static void | store_regs (const struct regcache *regcache)
static void | store_fp_register (const struct regcache *regcache, int regno)
static void | store_fp_regs (const struct regcache *regcache)
static void | armnbsd_store_registers (struct target_ops *ops, struct regcache *regcache, int regno)
static void | fetch_elfcore_registers (struct regcache *regcache, char *core_reg_sect, unsigned core_reg_size, int which, CORE_ADDR ignore)
void | _initialize_arm_netbsd_nat (void)

## Variables
int | arm_apcs_32
static struct core_fns | arm_netbsd_elfcore_fns

## Function Documentation

## ◆ _initialize_arm_netbsd_nat()

void _initialize_arm_netbsd_nat | ( | void |  | ) |

Definition at line 462 of file arm-nbsd-nat.c.

References add_target(), arm_netbsd_elfcore_fns, armnbsd_fetch_registers(), armnbsd_store_registers(), deprecated_add_core_fns(), inf_ptrace_target(), target_ops::to_fetch_registers, and target_ops::to_store_registers.

## ◆ arm_supply_fparegset()

static void arm_supply_fparegset | ( | struct regcache * | regcache,
|  | struct fpreg * | fparegset
| ) |  |
| static

Definition at line 62 of file arm-nbsd-nat.c.

References ARM_F0_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, and regcache_raw_supply().

Referenced by fetch_elfcore_registers(), and fetch_fp_regs().

## ◆ arm_supply_gregset()

static void arm_supply_gregset | ( | struct regcache * | regcache,
|  | struct reg * | gregset
| ) |  |
| static

Definition at line 36 of file arm-nbsd-nat.c.

References regcache::arch(), ARM_A1_REGNUM, arm_apcs_32, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_PS_REGNUM, ARM_SP_REGNUM, gdbarch_addr_bits_remove(), and regcache_raw_supply().

Referenced by fetch_elfcore_registers(), and fetch_regs().

## ◆ armnbsd_fetch_registers()

static void armnbsd_fetch_registers | ( | struct target_ops * | ops,
|  | struct regcache * | regcache,
|  | int | regno
| ) |  |
| static

Definition at line 194 of file arm-nbsd-nat.c.

References ARM_FPS_REGNUM, fetch_fp_register(), fetch_fp_regs(), fetch_register(), and fetch_regs().

Referenced by _initialize_arm_netbsd_nat().

## ◆ armnbsd_store_registers()

static void armnbsd_store_registers | ( | struct target_ops * | ops,
|  | struct regcache * | regcache,
|  | int | regno
| ) |  |
| static

Definition at line 395 of file arm-nbsd-nat.c.

References ARM_FPS_REGNUM, store_fp_register(), store_fp_regs(), store_register(), and store_regs().

Referenced by _initialize_arm_netbsd_nat().

## ◆ fetch_elfcore_registers()

static void fetch_elfcore_registers | ( | struct regcache * | regcache,
|  | char * | core_reg_sect,
|  | unsigned | core_reg_size,
|  | int | which,
|  | CORE_ADDR | ignore
| ) |  |
| static

Definition at line 413 of file arm-nbsd-nat.c.

References _, arm_supply_fparegset(), arm_supply_gregset(), and warning().

## ◆ fetch_fp_register()

static void fetch_fp_register | ( | struct regcache * | regcache,
|  | int | regno
| ) |  |
| static

Definition at line 146 of file arm-nbsd-nat.c.

References _, ARM_F0_REGNUM, ARM_FPS_REGNUM, ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), regcache_raw_supply(), and warning().

Referenced by armnbsd_fetch_registers().

## ◆ fetch_fp_regs()

static void fetch_fp_regs | ( | struct regcache * | regcache | ) |
| static

Definition at line 175 of file arm-nbsd-nat.c.

References _, arm_supply_fparegset(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), and warning().

Referenced by armnbsd_fetch_registers().

## ◆ fetch_register()

static void fetch_register | ( | struct regcache * | regcache,
|  | int | regno
| ) |  |
| static

Definition at line 75 of file arm-nbsd-nat.c.

References _, regcache::arch(), arm_apcs_32, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_PS_REGNUM, ARM_SP_REGNUM, gdbarch_addr_bits_remove(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), regcache_raw_supply(), and warning().

Referenced by armnbsd_fetch_registers().

## ◆ fetch_regs()

static void fetch_regs | ( | struct regcache * | regcache | ) |
| static

Definition at line 127 of file arm-nbsd-nat.c.

References _, arm_supply_gregset(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), and warning().

Referenced by armnbsd_fetch_registers().

## ◆ store_fp_register()

static void store_fp_register | ( | const struct regcache * | regcache,
|  | int | regno
| ) |  |
| static

Definition at line 338 of file arm-nbsd-nat.c.

References _, ARM_F0_REGNUM, ARM_FPS_REGNUM, ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), regcache_raw_collect(), and warning().

Referenced by armnbsd_store_registers().

## ◆ store_fp_regs()

static void store_fp_regs | ( | const struct regcache * | regcache | ) |
| static

Definition at line 373 of file arm-nbsd-nat.c.

References _, ARM_F0_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), regcache_raw_collect(), and warning().

Referenced by armnbsd_store_registers().

## ◆ store_register()

static void store_register | ( | const struct regcache * | regcache,
|  | int | regno
| ) |  |
| static

Definition at line 213 of file arm-nbsd-nat.c.

References _, regcache::arch(), arm_apcs_32, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_PS_REGNUM, ARM_SP_REGNUM, gdbarch_addr_bits_remove(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), regcache_raw_collect(), and warning().

Referenced by armnbsd_store_registers().

## ◆ store_regs()

static void store_regs | ( | const struct regcache * | regcache | ) |
| static

Definition at line 290 of file arm-nbsd-nat.c.

References _, regcache::arch(), ARM_A1_REGNUM, arm_apcs_32, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_PS_REGNUM, ARM_SP_REGNUM, gdbarch_addr_bits_remove(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, regcache_get_ptid(), regcache_raw_collect(), and warning().

Referenced by armnbsd_store_registers().

## Variable Documentation

## ◆ arm_apcs_32

int arm_apcs_32

Definition at line 281 of file arm-tdep.c.

Referenced by _initialize_arm_tdep(), arm_addr_bits_remove(), arm_supply_gregset(), arm_write_pc(), fetch_register(), store_register(), and store_regs().

## ◆ arm_netbsd_elfcore_fns

struct core_fns arm_netbsd_elfcore_fns
| static

Initial value:
=
{
bfd_target_elf_flavour,
default_check_format,
default_core_sniffer,
fetch_elfcore_registers,
NULL
}
default_check_format
int default_check_format(bfd *abfd)
Definition: corelow.c:162
fetch_elfcore_registers
static void fetch_elfcore_registers(struct regcache *regcache, char *core_reg_sect, unsigned core_reg_size, int which, CORE_ADDR ignore)
Definition: arm-nbsd-nat.c:413
default_core_sniffer
int default_core_sniffer(struct core_fns *our_fns, bfd *abfd)
Definition: corelow.c:113

Definition at line 452 of file arm-nbsd-nat.c.

Referenced by _initialize_arm_netbsd_nat().