Changeset View
Changeset View
Standalone View
Standalone View
devel/gdb/files/kgdb/mipsfbsd-kern.c
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | mipsfbsd_supply_pcb(struct regcache *regcache, CORE_ADDR pcb_addr) | ||||
regcache->raw_supply (MIPS_EMBED_PC_REGNUM, | regcache->raw_supply (MIPS_EMBED_PC_REGNUM, | ||||
buf + (regsize * FBSD_PCB_REG_PC)); | buf + (regsize * FBSD_PCB_REG_PC)); | ||||
} | } | ||||
static struct trad_frame_cache * | static struct trad_frame_cache * | ||||
mipsfbsd_trapframe_cache (struct frame_info *this_frame, void **this_cache) | mipsfbsd_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); | ||||
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); | |||||
size_t regsize = mips_isa_regsize (gdbarch); | size_t regsize = mips_isa_regsize (gdbarch); | ||||
struct trad_frame_cache *cache; | struct trad_frame_cache *cache; | ||||
CORE_ADDR addr, func, pc, sp; | CORE_ADDR addr, func, sp; | ||||
int regnum; | int regnum; | ||||
if (*this_cache != NULL) | if (*this_cache != NULL) | ||||
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; | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |