GDB (xrefs)

Functions | Variables
/tmp/gdb-8.1/gdb/mips-sde-tdep.c File Reference
`#include "defs.h"`
`#include "osabi.h"`
`#include "elf-bfd.h"`
`#include "block.h"`
`#include "symtab.h"`
`#include "frame.h"`
`#include "frame-unwind.h"`
`#include "frame-base.h"`
`#include "trad-frame.h"`
`#include "mips-tdep.h"`

Go to the source code of this file.

## Functions
static struct trad_frame_cache * | mips_sde_frame_cache (struct frame_info *this_frame, void **this_cache)
static void | mips_sde_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static struct value * | mips_sde_frame_prev_register (struct frame_info *this_frame, void **this_cache, int prev_regnum)
static int | mips_sde_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
static CORE_ADDR | mips_sde_frame_base_address (struct frame_info *this_frame, void **this_cache)
static const struct frame_base * | mips_sde_frame_base_sniffer (struct frame_info *this_frame)
static void | mips_sde_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
static enum gdb_osabi | mips_sde_elf_osabi_sniffer (bfd *abfd)
static void | mips_sde_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
void | _initialize_mips_sde_tdep (void)

## Variables
static const struct frame_unwind | mips_sde_frame_unwind
static const struct frame_base | mips_sde_frame_base

## Function Documentation

## ◆ _initialize_mips_sde_tdep()

void _initialize_mips_sde_tdep | ( | void |  | ) |

Definition at line 260 of file mips-sde-tdep.c.

References GDB_OSABI_SDE, gdbarch_register_osabi(), gdbarch_register_osabi_sniffer(), mips_sde_elf_osabi_sniffer(), and mips_sde_init_abi().

## ◆ mips_sde_elf_osabi_sniff_abi_tag_sections()

static void mips_sde_elf_osabi_sniff_abi_tag_sections | ( | bfd * | abfd,
|  | asection * | sect,
|  | void * | obj
| ) |  |
| static

Definition at line 205 of file mips-sde-tdep.c.

References GDB_OSABI_SDE, name, and startswith().

Referenced by mips_sde_elf_osabi_sniffer().

## ◆ mips_sde_elf_osabi_sniffer()

static enum gdb_osabi mips_sde_elf_osabi_sniffer | ( | bfd * | abfd | ) |
| static

Definition at line 222 of file mips-sde-tdep.c.

References GDB_OSABI_UNKNOWN, generic_elf_osabi_sniff_abi_tag_sections(), and mips_sde_elf_osabi_sniff_abi_tag_sections().

Referenced by _initialize_mips_sde_tdep().

## ◆ mips_sde_frame_base_address()

static CORE_ADDR mips_sde_frame_base_address | ( | struct frame_info * | this_frame,
|  | void ** | this_cache
| ) |  |
| static

Definition at line 179 of file mips-sde-tdep.c.

References mips_sde_frame_cache(), trad_frame_cache::this_frame, and trad_frame_get_this_base().

## ◆ mips_sde_frame_base_sniffer()

static const struct frame_base* mips_sde_frame_base_sniffer | ( | struct frame_info * | this_frame | ) |
| static

Definition at line 196 of file mips-sde-tdep.c.

References mips_sde_frame_base, mips_sde_frame_sniffer(), and mips_sde_frame_unwind.

Referenced by mips_sde_init_abi().

## ◆ mips_sde_frame_cache()

static struct trad_frame_cache* mips_sde_frame_cache | ( | struct frame_info * | this_frame,
|  | void ** | this_cache
| ) |  |
| static

Definition at line 37 of file mips-sde-tdep.c.

References mips_regnum::badvaddr, mips_regnum::cause, find_pc_partial_function(), frame_id_build(), gdbarch_num_regs(), gdbarch_sp_regnum(), get_frame_arch(), get_frame_pc(), get_frame_register_signed(), mips_regnum::hi, mips_regnum::lo, MIPS_ABI_N32, MIPS_ABI_N64, MIPS_ABI_O32, mips_abi_regsize(), MIPS_NUMREGS, MIPS_PS_REGNUM, mips_regnum(), MIPS_ZERO_REGNUM, mips_regnum::pc, trad_frame_cache::this_frame, trad_frame_cache_zalloc(), trad_frame_set_id(), and trad_frame_set_reg_addr().

Referenced by mips_sde_frame_base_address(), mips_sde_frame_prev_register(), and mips_sde_frame_this_id().

## ◆ mips_sde_frame_prev_register()

static struct value* mips_sde_frame_prev_register | ( | struct frame_info * | this_frame,
|  | void ** | this_cache,
|  | int | prev_regnum
| ) |  |
| static

Definition at line 137 of file mips-sde-tdep.c.

References mips_sde_frame_cache(), trad_frame_cache::this_frame, and trad_frame_get_register().

## ◆ mips_sde_frame_sniffer()

static int mips_sde_frame_sniffer | ( | const struct frame_unwind * | self,
|  | struct frame_info * | this_frame,
|  | void ** | this_cache
| ) |  |
| static

Definition at line 150 of file mips-sde-tdep.c.

References find_pc_partial_function(), get_frame_pc(), name, and trad_frame_cache::this_frame.

Referenced by mips_sde_frame_base_sniffer().

## ◆ mips_sde_frame_this_id()

static void mips_sde_frame_this_id | ( | struct frame_info * | this_frame,
|  | void ** | this_cache,
|  | struct frame_id * | this_id
| ) |  |
| static

Definition at line 125 of file mips-sde-tdep.c.

References mips_sde_frame_cache(), trad_frame_cache::this_frame, trad_frame_cache::this_id, and trad_frame_get_id().

## ◆ mips_sde_init_abi()

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

Definition at line 253 of file mips-sde-tdep.c.

References frame_base_append_sniffer(), frame_unwind_append_unwinder(), mips_sde_frame_base_sniffer(), and mips_sde_frame_unwind.

Referenced by _initialize_mips_sde_tdep().

## Variable Documentation

## ◆ mips_sde_frame_base

const struct frame_base mips_sde_frame_base
| static

Initial value:
=
{
&mips_sde_frame_unwind,
mips_sde_frame_base_address,
mips_sde_frame_base_address,
mips_sde_frame_base_address
}
mips_sde_frame_base_address
static CORE_ADDR mips_sde_frame_base_address(struct frame_info *this_frame, void **this_cache)
Definition: mips-sde-tdep.c:179
mips_sde_frame_unwind
static const struct frame_unwind mips_sde_frame_unwind
Definition: mips-sde-tdep.c:165

Definition at line 187 of file mips-sde-tdep.c.

Referenced by mips_sde_frame_base_sniffer().

## ◆ mips_sde_frame_unwind

const struct frame_unwind mips_sde_frame_unwind
| static

Initial value:
=
{
SIGTRAMP_FRAME,
default_frame_unwind_stop_reason,
mips_sde_frame_this_id,
mips_sde_frame_prev_register,
NULL,
mips_sde_frame_sniffer
}
mips_sde_frame_prev_register
static struct value * mips_sde_frame_prev_register(struct frame_info *this_frame, void **this_cache, int prev_regnum)
Definition: mips-sde-tdep.c:137
SIGTRAMP_FRAME
Definition: frame.h:255
mips_sde_frame_this_id
static void mips_sde_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
Definition: mips-sde-tdep.c:125
default_frame_unwind_stop_reason
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:184
mips_sde_frame_sniffer
static int mips_sde_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
Definition: mips-sde-tdep.c:150

Definition at line 165 of file mips-sde-tdep.c.

Referenced by mips_sde_frame_base_sniffer(), and mips_sde_init_abi().