From 9970f04b039f5b71319c17f15231b15d23bed38a Mon Sep 17 00:00:00 2001 From: Markus Deuling Date: Wed, 7 Nov 2007 06:53:41 +0000 Subject: 2007-11-07 Markus Deuling * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use get_regcache_arch to get at the current architecture by regcache. * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch to get at the current architecture by frame_info. * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get at the current architecture by regcache. * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at the current architecture by frame_info. (build_gdb_vtable_type): Replace current_gdbarch by gdbarch. * aix-thread.c (special_register_p): Add gdbarch as parameter. (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to caller of special_register_p. --- gdb/aix-thread.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/aix-thread.c') diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index a941ea7..794e7db 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -1060,11 +1060,11 @@ supply_fprs (struct regcache *regcache, double *vals) /* Predicate to test whether given register number is a "special" register. */ static int -special_register_p (int regno) +special_register_p (struct gdbarch *gdbarch, int regno) { - struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - return regno == gdbarch_pc_regnum (current_gdbarch) + return regno == gdbarch_pc_regnum (gdbarch) || regno == tdep->ppc_ps_regnum || regno == tdep->ppc_cr_regnum || regno == tdep->ppc_lr_regnum @@ -1237,7 +1237,7 @@ fetch_regs_kernel_thread (struct regcache *regcache, int regno, /* Special-purpose registers. */ - if (regno == -1 || special_register_p (regno)) + if (regno == -1 || special_register_p (gdbarch, regno)) { if (arch64) { @@ -1554,7 +1554,7 @@ store_regs_kernel_thread (const struct regcache *regcache, int regno, /* Special-purpose registers. */ - if (regno == -1 || special_register_p (regno)) + if (regno == -1 || special_register_p (gdbarch, regno)) { if (arch64) { -- cgit v1.1