aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-netbsd-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-11-15 15:22:34 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-15 21:39:16 -0500
commitaa70a99eb03444f41f50e100c9b1e00e9a32cde9 (patch)
treeec0747ecf73c9e88e8ee3e5de86f129bf88dab64 /gdb/arm-netbsd-nat.c
parent39cdfdb2614ae5654f5aa77792085b37cb342929 (diff)
downloadbinutils-aa70a99eb03444f41f50e100c9b1e00e9a32cde9.zip
binutils-aa70a99eb03444f41f50e100c9b1e00e9a32cde9.tar.gz
binutils-aa70a99eb03444f41f50e100c9b1e00e9a32cde9.tar.bz2
gdb: adjust gdbarch_tdep calls in nat files
Commit 345bd07cce33 ("gdb: fix gdbarch_tdep ODR violation") forgot to update the gdbarch_tdep calls in the native files other than x86-64 Linux. This patch updates them all (to the best of my knowledge). These are the files I was able to build-test: aarch64-linux-nat.c amd64-bsd-nat.c arm-linux-nat.c ppc-linux-nat.c windows-nat.c xtensa-linux-nat.c And these are the ones I could not build-test: aix-thread.c arm-netbsd-nat.c ppc-fbsd-nat.c ppc-netbsd-nat.c ia64-tdep.c (the part that needs libunwind) ppc-obsd-nat.c rs6000-nat.c If there are still some build problems related to gdbarch_tdep in them, they should be pretty obvious to fix. Change-Id: Iaa3d791a850e4432973757598e634e3da6061428
Diffstat (limited to 'gdb/arm-netbsd-nat.c')
-rw-r--r--gdb/arm-netbsd-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/arm-netbsd-nat.c b/gdb/arm-netbsd-nat.c
index e2b84f2..0d18846 100644
--- a/gdb/arm-netbsd-nat.c
+++ b/gdb/arm-netbsd-nat.c
@@ -50,7 +50,7 @@ static arm_netbsd_nat_target the_arm_netbsd_nat_target;
static void
arm_supply_vfpregset (struct regcache *regcache, struct fpreg *fpregset)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (regcache->arch ());
+ arm_gdbarch_tdep *tdep = (arm_gdbarch_tdep *) gdbarch_tdep (regcache->arch ());
if (tdep->vfp_register_count == 0)
return;
@@ -97,7 +97,7 @@ fetch_fp_register (struct regcache *regcache, int regno)
return;
}
- struct gdbarch_tdep *tdep = gdbarch_tdep (regcache->arch ());
+ arm_gdbarch_tdep *tdep = (arm_gdbarch_tdep *) gdbarch_tdep (regcache->arch ());
if (regno == ARM_FPSCR_REGNUM && tdep->vfp_register_count != 0)
regcache->raw_supply (ARM_FPSCR_REGNUM, (char *) &vfp.vfp_fpscr);
else if (regno >= ARM_D0_REGNUM
@@ -279,7 +279,7 @@ store_fp_register (const struct regcache *regcache, int regno)
return;
}
- struct gdbarch_tdep *tdep = gdbarch_tdep (regcache->arch ());
+ arm_gdbarch_tdep *tdep = (arm_gdbarch_tdep *) gdbarch_tdep (regcache->arch ());
if (regno == ARM_FPSCR_REGNUM && tdep->vfp_register_count != 0)
regcache->raw_collect (ARM_FPSCR_REGNUM, (char *) &vfp.vfp_fpscr);
else if (regno >= ARM_D0_REGNUM
@@ -301,7 +301,7 @@ store_fp_register (const struct regcache *regcache, int regno)
static void
store_fp_regs (const struct regcache *regcache)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (regcache->arch ());
+ arm_gdbarch_tdep *tdep = (arm_gdbarch_tdep *) gdbarch_tdep (regcache->arch ());
int lwp = regcache->ptid ().lwp ();
if (tdep->vfp_register_count == 0)
return;