Removed superflous code.
[deliverable/binutils-gdb.git] / gdb / sun3-nat.c
index baff3da93cbe417f4cd6f4fc1c489e3155734d3c..30f4a44e139a526fafd72adebe878fb283b547ee 100644 (file)
@@ -25,6 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define KERNEL         /* To get floating point reg definitions */
 #include <machine/reg.h>
 
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
 void
 fetch_inferior_registers (regno)
      int regno;
@@ -98,12 +100,12 @@ store_inferior_registers (regno)
 /* All of this stuff is only relevant if both host and target are sun3.  */
 /* Machine-dependent code for pulling registers out of a Sun-3 core file. */
 
-void
+static void
 fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
      char *core_reg_sect;
      unsigned core_reg_size;
      int which;
-     unsigned int reg_addr;    /* Unused in this version */
+     CORE_ADDR reg_addr;       /* Unused in this version */
 {
   extern char registers[];
   struct regs *regs = (struct regs *) core_reg_sect;
@@ -136,3 +138,20 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
       fprintf_unfiltered (gdb_stderr, "Couldn't read float regs from core file\n");
   }
 }
+
+\f
+/* Register that we are able to handle sun3 core file formats.
+   FIXME: is this really bfd_target_unknown_flavour? */
+
+static struct core_fns sun3_core_fns =
+{
+  bfd_target_unknown_flavour,
+  fetch_core_registers,
+  NULL
+};
+
+void
+_initialize_core_sun3 ()
+{
+  add_core_fns (&sun3_core_fns);
+}
This page took 0.023963 seconds and 4 git commands to generate.