Don't write to inferior_ptid in procfs.c
[deliverable/binutils-gdb.git] / gdb / ppc-obsd-tdep.c
index 838783111a251a6ab599c9af75fe8e4556f445a5..5f70d35180c24198ab64d655a5a52bed90ddfdf1 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for OpenBSD/powerpc.
 
-   Copyright (C) 2004-2018 Free Software Foundation, Inc.
+   Copyright (C) 2004-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -88,7 +88,7 @@ ppcobsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
                                      void *cb_data,
                                      const struct regcache *regcache)
 {
-  cb (".reg", 412, &ppcobsd_gregset, NULL, cb_data);
+  cb (".reg", 412, 412, &ppcobsd_gregset, NULL, cb_data);
 }
 \f
 
@@ -261,8 +261,9 @@ ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_append_unwinder (gdbarch, &ppcobsd_sigtramp_frame_unwind);
 }
 
+void _initialize_ppcobsd_tdep ();
 void
-_initialize_ppcobsd_tdep (void)
+_initialize_ppcobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_OPENBSD,
                          ppcobsd_init_abi);
This page took 0.030246 seconds and 4 git commands to generate.