Fix the remote-sim.c build
[binutils-gdb.git] / gdb / alpha-netbsd-tdep.c
index c78e49601f2bd970d558feb80adb70ccc18fa3f9..6b604cfa9c6d3477fc1114d0603f67c10863ef5c 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for NetBSD/alpha.
 
-   Copyright (C) 2002-2020 Free Software Foundation, Inc.
+   Copyright (C) 2002-2022 Free Software Foundation, Inc.
 
    Contributed by Wasabi Systems, Inc.
 
@@ -248,9 +248,9 @@ alphanbsd_sigcontext_addr (struct frame_info *frame)
 
 static void
 alphanbsd_init_abi (struct gdbarch_info info,
-                    struct gdbarch *gdbarch)
+                   struct gdbarch *gdbarch)
 {
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+  alpha_gdbarch_tdep *tdep = (alpha_gdbarch_tdep *) gdbarch_tdep (gdbarch);
 
   /* Hook into the DWARF CFI frame unwinder.  */
   alpha_dwarf2_init_abi (info, gdbarch);
@@ -288,5 +288,5 @@ _initialize_alphanbsd_tdep ()
      traditional a.out-style core dump format before NetBSD 1.6, but
      we don't support those.  */
   gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_NETBSD,
-                          alphanbsd_init_abi);
+                         alphanbsd_init_abi);
 }