GDB (xrefs)

Functions | Variables
/tmp/gdb-8.1/gdb/sparc-sol2-tdep.c File Reference
`#include "defs.h"`
`#include "frame.h"`
`#include "frame-unwind.h"`
`#include "gdbcore.h"`
`#include "symtab.h"`
`#include "objfiles.h"`
`#include "osabi.h"`
`#include "regcache.h"`
`#include "regset.h"`
`#include "target.h"`
`#include "trad-frame.h"`
`#include "sol2-tdep.h"`
`#include "sparc-tdep.h"`
`#include "solib-svr4.h"`

Go to the source code of this file.

## Functions
static void | sparc32_sol2_supply_core_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
static void | sparc32_sol2_collect_core_gregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
static void | sparc32_sol2_supply_core_fpregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
static void | sparc32_sol2_collect_core_fpregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *fpregs, size_t len)
int | sparc_sol2_pc_in_sigtramp (CORE_ADDR pc, const char *name)
static struct sparc_frame_cache * | sparc32_sol2_sigtramp_frame_cache (struct frame_info *this_frame, void **this_cache)
static void | sparc32_sol2_sigtramp_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static struct value * | sparc32_sol2_sigtramp_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
static int | sparc32_sol2_sigtramp_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
const char * | sparc_sol2_static_transform_name (const char *name)
void | sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
void | _initialize_sparc_sol2_tdep (void)

## Variables
const struct sparc_gregmap | sparc32_sol2_gregmap
const struct sparc_fpregmap | sparc32_sol2_fpregmap
static const struct regset | sparc32_sol2_gregset
static const struct regset | sparc32_sol2_fpregset
static const struct frame_unwind | sparc32_sol2_sigtramp_frame_unwind

## Function Documentation

## ◆ _initialize_sparc_sol2_tdep()

void _initialize_sparc_sol2_tdep | ( | void |  | ) |

Definition at line 297 of file sparc-sol2-tdep.c.

References GDB_OSABI_SOLARIS, gdbarch_register_osabi(), and sparc32_sol2_init_abi().

## ◆ sparc32_sol2_collect_core_fpregset()

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

Definition at line 80 of file sparc-sol2-tdep.c.

References regnum, sparc32_collect_fpregset(), and sparc32_sol2_fpregmap.

## ◆ sparc32_sol2_collect_core_gregset()

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

Definition at line 64 of file sparc-sol2-tdep.c.

References regnum, sparc32_collect_gregset(), and sparc32_sol2_gregmap.

## ◆ sparc32_sol2_init_abi()

void sparc32_sol2_init_abi | ( | struct gdbarch_info | info,
|  | struct gdbarch * | gdbarch
| ) |  |

Definition at line 257 of file sparc-sol2-tdep.c.

References find_solib_trampoline_target(), gdbarch_tdep::fpregset, frame_unwind_append_unwinder(), gdbarch_tdep(), gdbarch_tdep::gregset, gdbarch_tdep::plt_entry_size, set_gdbarch_core_pid_to_str(), set_gdbarch_skip_solib_resolver(), set_gdbarch_skip_trampoline_code(), set_gdbarch_software_single_step(), set_gdbarch_sofun_address_maybe_missing(), set_gdbarch_static_transform_name(), set_solib_svr4_fetch_link_map_offsets(), gdbarch_tdep::sizeof_fpregset, gdbarch_tdep::sizeof_gregset, sol2_core_pid_to_str(), sol2_skip_solib_resolver(), sparc32_sol2_fpregset, sparc32_sol2_gregset, sparc32_sol2_sigtramp_frame_unwind, sparc_sol2_static_transform_name(), and svr4_ilp32_fetch_link_map_offsets().

Referenced by _initialize_sparc_sol2_tdep().

## ◆ sparc32_sol2_sigtramp_frame_cache()

static struct sparc_frame_cache* sparc32_sol2_sigtramp_frame_cache | ( | struct frame_info * | this_frame,
|  | void ** | this_cache
| ) |  |
| static

Definition at line 127 of file sparc-sol2-tdep.c.

References trad_frame_saved_reg::addr, sparc_frame_cache::copied_regs_mask, gdb_assert, get_frame_memory_unsigned(), get_frame_register_unsigned(), if(), regnum, sparc_frame_cache::saved_regs, SPARC32_NPC_REGNUM, SPARC32_PC_REGNUM, SPARC32_PSR_REGNUM, SPARC32_Y_REGNUM, sparc_frame_cache(), SPARC_G1_REGNUM, SPARC_I2_REGNUM, SPARC_I7_REGNUM, SPARC_L0_REGNUM, SPARC_O2_REGNUM, SPARC_O7_REGNUM, SPARC_SP_REGNUM, trad_frame_alloc_saved_regs(), and trad_frame_set_unknown().

Referenced by sparc32_sol2_sigtramp_frame_prev_register(), and sparc32_sol2_sigtramp_frame_this_id().

## ◆ sparc32_sol2_sigtramp_frame_prev_register()

static struct value* sparc32_sol2_sigtramp_frame_prev_register | ( | struct frame_info * | this_frame,
|  | void ** | this_cache,
|  | int | regnum
| ) |  |
| static

Definition at line 189 of file sparc-sol2-tdep.c.

References regnum, sparc_frame_cache::saved_regs, sparc32_sol2_sigtramp_frame_cache(), and trad_frame_get_prev_register().

## ◆ sparc32_sol2_sigtramp_frame_sniffer()

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

Definition at line 200 of file sparc-sol2-tdep.c.

References find_pc_partial_function(), get_frame_pc(), name, sparc_frame_cache::pc, and sparc_sol2_pc_in_sigtramp().

## ◆ sparc32_sol2_sigtramp_frame_this_id()

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

Definition at line 178 of file sparc-sol2-tdep.c.

References sparc_frame_cache::base, frame_id_build(), sparc_frame_cache::pc, and sparc32_sol2_sigtramp_frame_cache().

## ◆ sparc32_sol2_supply_core_fpregset()

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

Definition at line 72 of file sparc-sol2-tdep.c.

References regnum, sparc32_sol2_fpregmap, and sparc32_supply_fpregset().

## ◆ sparc32_sol2_supply_core_gregset()

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

Definition at line 56 of file sparc-sol2-tdep.c.

References regnum, sparc32_sol2_gregmap, and sparc32_supply_gregset().

## ◆ sparc_sol2_pc_in_sigtramp()

int sparc_sol2_pc_in_sigtramp | ( | CORE_ADDR | pc,
|  | const char * | name
| ) |  |

Definition at line 119 of file sparc-sol2-tdep.c.

References name.

Referenced by sparc32_sol2_sigtramp_frame_sniffer(), and sparc64_sol2_sigtramp_frame_sniffer().

## ◆ sparc_sol2_static_transform_name()

const char* sparc_sol2_static_transform_name | ( | const char * | name | ) |

Definition at line 227 of file sparc-sol2-tdep.c.

References name.

Referenced by sparc32_sol2_init_abi(), and sparc64_sol2_init_abi().

## Variable Documentation

## ◆ sparc32_sol2_fpregmap

const struct sparc_fpregmap sparc32_sol2_fpregmap

Initial value:
=
{
0 * 4,
33 * 4,
}

Definition at line 49 of file sparc-sol2-tdep.c.

Referenced by sparc32_sol2_collect_core_fpregset(), and sparc32_sol2_supply_core_fpregset().

## ◆ sparc32_sol2_fpregset

const struct regset sparc32_sol2_fpregset
| static

Initial value:
=
{
NULL,
sparc32_sol2_supply_core_fpregset,
sparc32_sol2_collect_core_fpregset
}
sparc32_sol2_collect_core_fpregset
static void sparc32_sol2_collect_core_fpregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *fpregs, size_t len)
Definition: sparc-sol2-tdep.c:80
sparc32_sol2_supply_core_fpregset
static void sparc32_sol2_supply_core_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
Definition: sparc-sol2-tdep.c:72

Definition at line 94 of file sparc-sol2-tdep.c.

Referenced by sparc32_sol2_init_abi().

## ◆ sparc32_sol2_gregmap

const struct sparc_gregmap sparc32_sol2_gregmap

Initial value:
=
{
32 * 4,
33 * 4,
34 * 4,
35 * 4,
36 * 4,
37 * 4,
1 * 4,
16 * 4,
}

Definition at line 37 of file sparc-sol2-tdep.c.

Referenced by sparc32_sol2_collect_core_gregset(), and sparc32_sol2_supply_core_gregset().

## ◆ sparc32_sol2_gregset

const struct regset sparc32_sol2_gregset
| static

Initial value:
=
{
NULL,
sparc32_sol2_supply_core_gregset,
sparc32_sol2_collect_core_gregset
}
sparc32_sol2_collect_core_gregset
static void sparc32_sol2_collect_core_gregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
Definition: sparc-sol2-tdep.c:64
sparc32_sol2_supply_core_gregset
static void sparc32_sol2_supply_core_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: sparc-sol2-tdep.c:56

Definition at line 87 of file sparc-sol2-tdep.c.

Referenced by sparc32_sol2_init_abi().

## ◆ sparc32_sol2_sigtramp_frame_unwind

const struct frame_unwind sparc32_sol2_sigtramp_frame_unwind
| static

Initial value:
=
{
SIGTRAMP_FRAME,
default_frame_unwind_stop_reason,
sparc32_sol2_sigtramp_frame_this_id,
sparc32_sol2_sigtramp_frame_prev_register,
NULL,
sparc32_sol2_sigtramp_frame_sniffer
}
sparc32_sol2_sigtramp_frame_sniffer
static int sparc32_sol2_sigtramp_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
Definition: sparc-sol2-tdep.c:200
SIGTRAMP_FRAME
Definition: frame.h:255
sparc32_sol2_sigtramp_frame_prev_register
static struct value * sparc32_sol2_sigtramp_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
Definition: sparc-sol2-tdep.c:189
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
sparc32_sol2_sigtramp_frame_this_id
static void sparc32_sol2_sigtramp_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
Definition: sparc-sol2-tdep.c:178

Definition at line 214 of file sparc-sol2-tdep.c.

Referenced by sparc32_sol2_init_abi().