2000-03-29 J.T. Conklin <jtc@redback.com>
authorJ.T. Conklin <jtc@acorntoolworks.com>
Wed, 29 Mar 2000 04:03:56 +0000 (04:03 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Wed, 29 Mar 2000 04:03:56 +0000 (04:03 +0000)
        * i386nbsd-nat.c (fetch_core_registers): Make static.

        * m68knbsd-nat.c (fetch_core_registers): Make static.
        (m68knbsd_core_fns, _initialize_m68knbsd_nat): Added.

gdb/ChangeLog
gdb/i386nbsd-nat.c
gdb/m68knbsd-nat.c

index 5b083e13813aac48e4f189ef03728c74f7f9e4df..27d0c054c728c1befc023379be89b0af16d2085b 100644 (file)
@@ -1,3 +1,10 @@
+2000-03-29  J.T. Conklin  <jtc@redback.com> 
+       * i386nbsd-nat.c (fetch_core_registers): Make static. 
+       * m68knbsd-nat.c (fetch_core_registers): Make static. 
+       (m68knbsd_core_fns, _initialize_m68knbsd_nat): Added. 
 Wed Mar 29 13:40:40 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * TODO: Update GDB 5 status.
index 5c5a1f3b3044291a07946378cf9c1d22d68e60a4..c1d2cd7c733b365f18e440b2f0307c06768ea21c 100644 (file)
@@ -164,7 +164,7 @@ struct md_core
   struct env387 freg;
 };
 
-void
+static void
 fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
      char *core_reg_sect;
      unsigned core_reg_size;
index 326a89b612d5e01f0517b48e64a0be3f3309f289..b76dc79c5e22b2c3a9f2cf8875d11a4d15778735 100644 (file)
@@ -70,7 +70,7 @@ struct md_core
   struct fpreg freg;
 };
 
-void
+static void
 fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
      char *core_reg_sect;
      unsigned core_reg_size;
@@ -86,3 +86,21 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
   memcpy (&registers[REGISTER_BYTE (FP0_REGNUM)],
          &core_reg->freg, sizeof (struct fpreg));
 }
+
+/* Register that we are able to handle m68knbsd core file formats.
+   FIXME: is this really bfd_target_unknown_flavour? */
+   
+static struct core_fns m68knbsd_core_fns =
+{  
+  bfd_target_unknown_flavour,           /* core_flavour */
+  default_check_format,                 /* check_format */
+  default_core_sniffer,                 /* core_sniffer */
+  fetch_core_registers,                 /* core_read_registers */
+  NULL                                  /* next */
+}; 
+   
+void
+_initialize_m68knbsd_nat ()
+{
+  add_core_fns (&m68knbsd_core_fns);
+}