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"
#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
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];
{
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;
}
}
+#endif /* sgi */
+
+#if 0
void
fetch_core_registers ()
{
supply_register (regno, buf);
}
}
+#endif /* 0 */