Riscv shared libraries should not export __global_pointer$.
[deliverable/binutils-gdb.git] / gdb / spu-multiarch.c
index e521c7e6ac2d9d710b21dc2c55a7ae9670c49eaa..392995900ef5bb5dd596c9bec10419cf9ecfdcb2 100644 (file)
@@ -144,7 +144,7 @@ static void
 spu_fetch_registers (struct target_ops *ops,
                     struct regcache *regcache, int regno)
 {
-  struct gdbarch *gdbarch = get_regcache_arch (regcache);
+  struct gdbarch *gdbarch = regcache->arch ();
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
   struct target_ops *ops_beneath = find_target_beneath (ops);
   int spufs_fd;
@@ -204,7 +204,7 @@ static void
 spu_store_registers (struct target_ops *ops,
                     struct regcache *regcache, int regno)
 {
-  struct gdbarch *gdbarch = get_regcache_arch (regcache);
+  struct gdbarch *gdbarch = regcache->arch ();
   struct target_ops *ops_beneath = find_target_beneath (ops);
   int spufs_fd;
   CORE_ADDR spufs_addr;
This page took 0.023403 seconds and 4 git commands to generate.