Changeset View
Changeset View
Standalone View
Standalone View
devel/gdb/files/kgdb/ppcfbsd-kern.c
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | _Static_assert(offsetof(struct trapframe, srr0) | ||||
== OFF_SRR0 * sizeof(register_t), "srr0 offset"); | == OFF_SRR0 * sizeof(register_t), "srr0 offset"); | ||||
#endif | #endif | ||||
static struct trad_frame_cache * | static struct trad_frame_cache * | ||||
ppcfbsd_trapframe_cache (struct frame_info *this_frame, void **this_cache) | ppcfbsd_trapframe_cache (struct frame_info *this_frame, void **this_cache) | ||||
{ | { | ||||
struct gdbarch *gdbarch = get_frame_arch (this_frame); | struct gdbarch *gdbarch = get_frame_arch (this_frame); | ||||
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); | struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); | ||||
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); | |||||
struct trad_frame_cache *cache; | struct trad_frame_cache *cache; | ||||
CORE_ADDR base; | CORE_ADDR base; | ||||
int i, regnum; | int i; | ||||
if (*this_cache) | if (*this_cache) | ||||
return (struct trad_frame_cache *)*this_cache; | return (struct trad_frame_cache *)*this_cache; | ||||
cache = trad_frame_cache_zalloc (this_frame); | cache = trad_frame_cache_zalloc (this_frame); | ||||
*this_cache = cache; | *this_cache = cache; | ||||
base = get_frame_register_unsigned (this_frame, gdbarch_sp_regnum (gdbarch)); | base = get_frame_register_unsigned (this_frame, gdbarch_sp_regnum (gdbarch)); | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |