Intel 386 Mach host port
[deliverable/binutils-gdb.git] / gdb / mips-xdep.c
index 7748f1c0e167e76b139438b0b644d857e32200a8..51984e73566ddbf9f3167169b3eed48570bbc925 100644 (file)
@@ -5,22 +5,26 @@
 
 This file is part of GDB.
 
-GDB is free software; you can redistribute it and/or modify
+This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
 
-GDB is distributed in the hope that it will be useful,
+This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with GDB; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <stdio.h>
+#ifdef sgi
+#include <sys/inst.h>
+#else
 #include <mips/inst.h>
+#endif
 #include "defs.h"
 #include "param.h"
 #include "frame.h"
@@ -44,6 +48,31 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/file.h>
 #include <sys/stat.h>
 
+/* For now we stub this out; sgi format is super-hairy (and completely
+   different in the new release) */
+
+#ifdef sgi
+void
+fetch_core_registers ()
+{
+  return;
+}
+
+void
+fetch_inferior_registers ()
+{
+  return;
+}
+
+store_inferior_registers (regno)
+     int regno;
+{
+  return;
+}
+
+
+#else
+
 /* Get all registers from the inferior */
 
 void
@@ -72,9 +101,10 @@ fetch_inferior_registers ()
    If REGNO is -1, do this for all registers.
    Otherwise, REGNO specifies which register (so we can save time).  */
 
+void
 store_inferior_registers (regno)
      int regno;
-{
+ {
   register unsigned int regaddr;
   char buf[80];
 
@@ -96,7 +126,8 @@ store_inferior_registers (regno)
     {
       for (regno = 1; regno < NUM_REGS; regno++)
        {
-         if (regno == 32 || regno == 35 || regno == 36 || regno == 71)
+         if (regno == 32 || regno == 35 || regno == 36
+             || regno == 71 || regno == FP_REGNUM)
            continue;
          regaddr = register_addr (regno, 1);
          errno = 0;
@@ -110,6 +141,9 @@ store_inferior_registers (regno)
     }
 }
 
+#endif /* sgi */
+
+#if 0
 void
 fetch_core_registers ()
 {
@@ -130,3 +164,4 @@ fetch_core_registers ()
     supply_register (regno, buf);
   }
 }
+#endif /* 0 */
This page took 0.025675 seconds and 4 git commands to generate.