GDB (xrefs)

Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/alpha-linux-tdep.c File Reference
`#include "defs.h"`
`#include "frame.h"`
`#include "osabi.h"`
`#include "solib-svr4.h"`
`#include "symtab.h"`
`#include "regset.h"`
`#include "regcache.h"`
`#include "linux-tdep.h"`
`#include "alpha-tdep.h"`

Go to the source code of this file.

## Enumerations
enum | { ALPHA_LINUX_SIGABRT = 6, ALPHA_LINUX_SIGEMT = 7, ALPHA_LINUX_SIGBUS = 10, ALPHA_LINUX_SIGSYS = 12, ALPHA_LINUX_SIGURG = 16, ALPHA_LINUX_SIGSTOP = 17, ALPHA_LINUX_SIGTSTP = 18, ALPHA_LINUX_SIGCONT = 19, ALPHA_LINUX_SIGCHLD = 20, ALPHA_LINUX_SIGIO = 23, ALPHA_LINUX_SIGINFO = 29, ALPHA_LINUX_SIGUSR1 = 30, ALPHA_LINUX_SIGUSR2 = 31, ALPHA_LINUX_SIGPOLL = ALPHA_LINUX_SIGIO, ALPHA_LINUX_SIGPWR = ALPHA_LINUX_SIGINFO, ALPHA_LINUX_SIGIOT = ALPHA_LINUX_SIGABRT }

## Functions
static long | alpha_linux_sigtramp_offset_1 (struct gdbarch *gdbarch, CORE_ADDR pc)
static LONGEST | alpha_linux_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
static int | alpha_linux_pc_in_sigtramp (struct gdbarch *gdbarch, CORE_ADDR pc, const char *func_name)
static CORE_ADDR | alpha_linux_sigcontext_addr (struct frame_info *this_frame)
static void | alpha_linux_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
static void | alpha_linux_collect_gregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
static void | alpha_linux_supply_fpregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
static void | alpha_linux_collect_fpregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *fpregs, size_t len)
static void | alpha_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
static enum gdb_signal | alpha_linux_gdb_signal_from_target (struct gdbarch *gdbarch, int signal)
static int | alpha_linux_gdb_signal_to_target (struct gdbarch *gdbarch, enum gdb_signal signal)
static void | alpha_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
void | _initialize_alpha_linux_tdep (void)

## Variables
static const struct regset | alpha_linux_gregset
static const struct regset | alpha_linux_fpregset

## Enumeration Type Documentation

## ◆ anonymous enum

anonymous enum

Enumerator
ALPHA_LINUX_SIGABRT |
ALPHA_LINUX_SIGEMT |
ALPHA_LINUX_SIGBUS |
ALPHA_LINUX_SIGSYS |
ALPHA_LINUX_SIGURG |
ALPHA_LINUX_SIGSTOP |
ALPHA_LINUX_SIGTSTP |
ALPHA_LINUX_SIGCONT |
ALPHA_LINUX_SIGCHLD |
ALPHA_LINUX_SIGIO |
ALPHA_LINUX_SIGINFO |
ALPHA_LINUX_SIGUSR1 |
ALPHA_LINUX_SIGUSR2 |
ALPHA_LINUX_SIGPOLL |
ALPHA_LINUX_SIGPWR |
ALPHA_LINUX_SIGIOT |

Definition at line 36 of file alpha-linux-tdep.c.

## Function Documentation

## ◆ _initialize_alpha_linux_tdep()

void _initialize_alpha_linux_tdep | ( | void |  | ) |

Definition at line 392 of file alpha-linux-tdep.c.

References alpha_linux_init_abi(), GDB_OSABI_LINUX, and gdbarch_register_osabi().

## ◆ alpha_linux_collect_fpregset()

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

Definition at line 211 of file alpha-linux-tdep.c.

References alpha_fill_fp_regs(), gdb_assert, and regnum.

## ◆ alpha_linux_collect_gregset()

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

Definition at line 179 of file alpha-linux-tdep.c.

References alpha_fill_int_regs(), gdb_assert, and regnum.

## ◆ alpha_linux_gdb_signal_from_target()

static enum gdb_signal alpha_linux_gdb_signal_from_target | ( | struct gdbarch * | gdbarch,
|  | int | signal
| ) |  |
| static

Definition at line 249 of file alpha-linux-tdep.c.

References ALPHA_LINUX_SIGBUS, ALPHA_LINUX_SIGCHLD, ALPHA_LINUX_SIGCONT, ALPHA_LINUX_SIGEMT, ALPHA_LINUX_SIGINFO, ALPHA_LINUX_SIGIO, ALPHA_LINUX_SIGSTOP, ALPHA_LINUX_SIGSYS, ALPHA_LINUX_SIGTSTP, ALPHA_LINUX_SIGURG, ALPHA_LINUX_SIGUSR1, ALPHA_LINUX_SIGUSR2, and linux_gdb_signal_from_target().

Referenced by alpha_linux_init_abi().

## ◆ alpha_linux_gdb_signal_to_target()

static int alpha_linux_gdb_signal_to_target | ( | struct gdbarch * | gdbarch,
|  | enum gdb_signal | signal
| ) |  |
| static

Definition at line 302 of file alpha-linux-tdep.c.

References ALPHA_LINUX_SIGBUS, ALPHA_LINUX_SIGCHLD, ALPHA_LINUX_SIGCONT, ALPHA_LINUX_SIGEMT, ALPHA_LINUX_SIGINFO, ALPHA_LINUX_SIGIO, ALPHA_LINUX_SIGPOLL, ALPHA_LINUX_SIGPWR, ALPHA_LINUX_SIGSTOP, ALPHA_LINUX_SIGSYS, ALPHA_LINUX_SIGTSTP, ALPHA_LINUX_SIGURG, ALPHA_LINUX_SIGUSR1, ALPHA_LINUX_SIGUSR2, and linux_gdb_signal_to_target().

Referenced by alpha_linux_init_abi().

## ◆ alpha_linux_init_abi()

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

Definition at line 354 of file alpha-linux-tdep.c.

References alpha_dwarf2_init_abi(), alpha_linux_gdb_signal_from_target(), alpha_linux_gdb_signal_to_target(), alpha_linux_iterate_over_regset_sections(), alpha_linux_pc_in_sigtramp(), alpha_linux_sigcontext_addr(), alpha_linux_sigtramp_offset(), alpha_mdebug_init_abi(), gdbarch_tdep::dynamic_sigtramp_offset, find_solib_trampoline_target(), gdbarch_tdep(), gdbarch_tdep::jb_elt_size, gdbarch_tdep::jb_pc, linux_init_abi(), gdbarch_tdep::pc_in_sigtramp, set_gdbarch_fetch_tls_load_module_address(), set_gdbarch_gdb_signal_from_target(), set_gdbarch_gdb_signal_to_target(), set_gdbarch_iterate_over_regset_sections(), set_gdbarch_skip_trampoline_code(), set_solib_svr4_fetch_link_map_offsets(), gdbarch_tdep::sigcontext_addr, svr4_fetch_objfile_link_map(), and svr4_lp64_fetch_link_map_offsets().

Referenced by _initialize_alpha_linux_tdep().

## ◆ alpha_linux_iterate_over_regset_sections()

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

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

References alpha_linux_fpregset, and alpha_linux_gregset.

Referenced by alpha_linux_init_abi().

## ◆ alpha_linux_pc_in_sigtramp()

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

Definition at line 121 of file alpha-linux-tdep.c.

References alpha_linux_sigtramp_offset().

Referenced by alpha_linux_init_abi().

## ◆ alpha_linux_sigcontext_addr()

static CORE_ADDR alpha_linux_sigcontext_addr | ( | struct frame_info * | this_frame | ) |
| static

Definition at line 128 of file alpha-linux-tdep.c.

References alpha_linux_sigtramp_offset(), alpha_read_insn(), ALPHA_SP_REGNUM, gdb_assert, get_frame_arch(), get_frame_pc(), and get_frame_register_unsigned().

Referenced by alpha_linux_init_abi().

## ◆ alpha_linux_sigtramp_offset()

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

Definition at line 95 of file alpha-linux-tdep.c.

References alpha_linux_sigtramp_offset_1().

Referenced by alpha_linux_init_abi(), alpha_linux_pc_in_sigtramp(), and alpha_linux_sigcontext_addr().

## ◆ alpha_linux_sigtramp_offset_1()

static long alpha_linux_sigtramp_offset_1 | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | pc
| ) |  |
| static

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

References alpha_read_insn().

Referenced by alpha_linux_sigtramp_offset().

## ◆ alpha_linux_supply_fpregset()

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

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

References alpha_supply_fp_regs(), gdb_assert, and regnum.

## ◆ alpha_linux_supply_gregset()

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

Definition at line 162 of file alpha-linux-tdep.c.

References alpha_supply_int_regs(), gdb_assert, and regnum.

## Variable Documentation

## ◆ alpha_linux_fpregset

const struct regset alpha_linux_fpregset
| static

Initial value:
=
{
NULL,
alpha_linux_supply_fpregset, alpha_linux_collect_fpregset
}
alpha_linux_collect_fpregset
static void alpha_linux_collect_fpregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *fpregs, size_t len)
Definition: alpha-linux-tdep.c:211
alpha_linux_supply_fpregset
static void alpha_linux_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
Definition: alpha-linux-tdep.c:195

Definition at line 227 of file alpha-linux-tdep.c.

Referenced by alpha_linux_iterate_over_regset_sections().

## ◆ alpha_linux_gregset

const struct regset alpha_linux_gregset
| static

Initial value:
=
{
NULL,
alpha_linux_supply_gregset, alpha_linux_collect_gregset
}
alpha_linux_collect_gregset
static void alpha_linux_collect_gregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
Definition: alpha-linux-tdep.c:179
alpha_linux_supply_gregset
static void alpha_linux_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: alpha-linux-tdep.c:162

Definition at line 221 of file alpha-linux-tdep.c.

Referenced by alpha_linux_iterate_over_regset_sections().