GDB (xrefs)

Macros | Functions | Variables
/tmp/gdb-8.1/gdb/alpha-nbsd-tdep.c File Reference
`#include "defs.h"`
`#include "frame.h"`
`#include "gdbcore.h"`
`#include "osabi.h"`
`#include "regcache.h"`
`#include "regset.h"`
`#include "value.h"`
`#include "alpha-tdep.h"`
`#include "alpha-bsd-tdep.h"`
`#include "nbsd-tdep.h"`
`#include "solib-svr4.h"`
`#include "target.h"`

Go to the source code of this file.

## Macros
#define | ALPHANBSD_SIZEOF_GREGS (32 * 8)
#define | ALPHANBSD_SIZEOF_FPREGS ((32 * 8) + 8)
#define | RETCODE_NWORDS 4
#define | RETCODE_SIZE (RETCODE_NWORDS * 4)

## Functions
static void | alphanbsd_supply_fpregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
static void | alphanbsd_aout_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
static void | alphanbsd_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
void | alphanbsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
static LONGEST | alphanbsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
static int | alphanbsd_pc_in_sigtramp (struct gdbarch *gdbarch, CORE_ADDR pc, const char *func_name)
static CORE_ADDR | alphanbsd_sigcontext_addr (struct frame_info *frame)
static void | alphanbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
void | _initialize_alphanbsd_tdep (void)

## Variables
static const struct regset | alphanbsd_gregset
static const struct regset | alphanbsd_fpregset
static const gdb_byte | sigtramp_retcode []

## Macro Definition Documentation

## ◆ ALPHANBSD_SIZEOF_FPREGS

#define ALPHANBSD_SIZEOF_FPREGS ((32 * 8) + 8)

Definition at line 42 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_aout_supply_gregset(), alphanbsd_iterate_over_regset_sections(), alphanbsd_supply_fpregset(), and alphanbsd_supply_gregset().

## ◆ ALPHANBSD_SIZEOF_GREGS

#define ALPHANBSD_SIZEOF_GREGS (32 * 8)

Definition at line 39 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_aout_supply_gregset(), alphanbsd_iterate_over_regset_sections(), and alphanbsd_supply_gregset().

## ◆ RETCODE_NWORDS

#define RETCODE_NWORDS 4

Definition at line 194 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_sigtramp_offset().

## ◆ RETCODE_SIZE

#define RETCODE_SIZE (RETCODE_NWORDS * 4)

Definition at line 195 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_sigtramp_offset().

## Function Documentation

## ◆ _initialize_alphanbsd_tdep()

void _initialize_alphanbsd_tdep | ( | void |  | ) |

Definition at line 280 of file alpha-nbsd-tdep.c.

References alphanbsd_init_abi(), GDB_OSABI_NETBSD, and gdbarch_register_osabi().

## ◆ alphanbsd_aout_supply_gregset()

static void alphanbsd_aout_supply_gregset | ( | const struct regset * | regset,
|  | struct regcache * | regcache,
|  | int | regnum,
|  | const void * | gregs,
|  | size_t | len
| ) |  |
| static

Definition at line 73 of file alpha-nbsd-tdep.c.

References ALPHA_PC_REGNUM, ALPHANBSD_SIZEOF_FPREGS, ALPHANBSD_SIZEOF_GREGS, alphanbsd_supply_fpregset(), gdb_assert, regcache_raw_supply(), regmap, and regnum.

Referenced by alphanbsd_supply_gregset().

## ◆ alphanbsd_init_abi()

static void alphanbsd_init_abi | ( | struct gdbarch_info | info,
|  | struct gdbarch * | gdbarch
| ) |  |
| static

Definition at line 248 of file alpha-nbsd-tdep.c.

References alpha_dwarf2_init_abi(), alpha_mdebug_init_abi(), alpha_software_single_step(), alphanbsd_iterate_over_regset_sections(), alphanbsd_pc_in_sigtramp(), alphanbsd_sigcontext_addr(), alphanbsd_sigtramp_offset(), gdbarch_tdep::dynamic_sigtramp_offset, gdbarch_tdep(), gdbarch_tdep::jb_elt_size, gdbarch_tdep::jb_pc, gdbarch_tdep::pc_in_sigtramp, set_gdbarch_iterate_over_regset_sections(), set_gdbarch_software_single_step(), set_solib_svr4_fetch_link_map_offsets(), gdbarch_tdep::sigcontext_addr, and svr4_lp64_fetch_link_map_offsets().

Referenced by _initialize_alphanbsd_tdep().

## ◆ alphanbsd_iterate_over_regset_sections()

void alphanbsd_iterate_over_regset_sections | ( | struct gdbarch * | gdbarch,
|  | iterate_over_regset_sections_cb * | cb,
|  | void * | cb_data,
|  | const struct regcache * | regcache
| ) |  |

Definition at line 159 of file alpha-nbsd-tdep.c.

References alphanbsd_fpregset, alphanbsd_gregset, ALPHANBSD_SIZEOF_FPREGS, and ALPHANBSD_SIZEOF_GREGS.

Referenced by alphanbsd_init_abi(), and alphaobsd_init_abi().

## ◆ alphanbsd_pc_in_sigtramp()

static int alphanbsd_pc_in_sigtramp | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | pc,
|  | const char * | func_name
| ) |  |
| static

Definition at line 228 of file alpha-nbsd-tdep.c.

References alphanbsd_sigtramp_offset(), and nbsd_pc_in_sigtramp().

Referenced by alphanbsd_init_abi().

## ◆ alphanbsd_sigcontext_addr()

static CORE_ADDR alphanbsd_sigcontext_addr | ( | struct frame_info * | frame | ) |
| static

Definition at line 236 of file alpha-nbsd-tdep.c.

References get_frame_base(), and get_next_frame().

Referenced by alphanbsd_init_abi().

## ◆ alphanbsd_sigtramp_offset()

static LONGEST alphanbsd_sigtramp_offset | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | pc
| ) |  |
| static

Definition at line 198 of file alpha-nbsd-tdep.c.

References RETCODE_NWORDS, RETCODE_SIZE, sigtramp_retcode, and target_read_memory().

Referenced by alphanbsd_init_abi(), and alphanbsd_pc_in_sigtramp().

## ◆ alphanbsd_supply_fpregset()

static void alphanbsd_supply_fpregset | ( | const struct regset * | regset,
|  | struct regcache * | regcache,
|  | int | regnum,
|  | const void * | fpregs,
|  | size_t | len
| ) |  |
| static

Definition at line 49 of file alpha-nbsd-tdep.c.

References ALPHA_FP0_REGNUM, ALPHA_FPCR_REGNUM, ALPHANBSD_SIZEOF_FPREGS, gdb_assert, regcache_raw_supply(), and regnum.

Referenced by alphanbsd_aout_supply_gregset().

## ◆ alphanbsd_supply_gregset()

static void alphanbsd_supply_gregset | ( | const struct regset * | regset,
|  | struct regcache * | regcache,
|  | int | regnum,
|  | const void * | gregs,
|  | size_t | len
| ) |  |
| static

Definition at line 117 of file alpha-nbsd-tdep.c.

References ALPHA_PC_REGNUM, ALPHA_ZERO_REGNUM, alphanbsd_aout_supply_gregset(), ALPHANBSD_SIZEOF_FPREGS, ALPHANBSD_SIZEOF_GREGS, regcache_raw_supply(), and regnum.

## Variable Documentation

## ◆ alphanbsd_fpregset

const struct regset alphanbsd_fpregset
| static

Initial value:
=
{
NULL,
alphanbsd_supply_fpregset
}
alphanbsd_supply_fpregset
static void alphanbsd_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
Definition: alpha-nbsd-tdep.c:49

Definition at line 150 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_iterate_over_regset_sections().

## ◆ alphanbsd_gregset

const struct regset alphanbsd_gregset
| static

Initial value:
=
{
NULL,
alphanbsd_supply_gregset,
NULL,
REGSET_VARIABLE_SIZE
}
alphanbsd_supply_gregset
static void alphanbsd_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: alpha-nbsd-tdep.c:117
REGSET_VARIABLE_SIZE
#define REGSET_VARIABLE_SIZE
Definition: regset.h:52

Definition at line 142 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_iterate_over_regset_sections().

## ◆ sigtramp_retcode

const gdb_byte sigtramp_retcode[]
| static

Initial value:
=
{
0x00, 0x00, 0x1e, 0xa6,
0x10, 0x00, 0xde, 0x23,
0x27, 0x01, 0x1f, 0x20,
0x83, 0x00, 0x00, 0x00,
}

Definition at line 187 of file alpha-nbsd-tdep.c.

Referenced by alphanbsd_sigtramp_offset().