* disasm.c (gdb_disassemble_info): Initialize disassemble_info
[deliverable/binutils-gdb.git] / gdb / mips-linux-nat.c
index 3c2b159d7881d2e071e700f945a352fa292e4bb7..a0469f6f9f385bea4e16dc820c9a4de9da2f9ba2 100644 (file)
@@ -1,5 +1,6 @@
-/* Native-dependent code for Linux/MIPS.
-   Copyright 2001 Free Software Foundation, Inc.
+/* Native-dependent code for GNU/Linux on MIPS processors.
+
+   Copyright 2001, 2002 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,9 +29,9 @@
 int
 mips_linux_cannot_fetch_register (int regno)
 {
-  if (regno >= FP_REGNUM)
+  if (REGISTER_NAME (regno)[0] == 0)
     return 1;
-  else if (regno == PS_REGNUM)
+  if (regno == PS_REGNUM)
     return 1;
   else if (regno == ZERO_REGNUM)
     return 1;
@@ -41,9 +42,9 @@ mips_linux_cannot_fetch_register (int regno)
 int
 mips_linux_cannot_store_register (int regno)
 {
-  if (regno >= FP_REGNUM)
+  if (REGISTER_NAME (regno)[0] == 0)
     return 1;
-  else if (regno == PS_REGNUM)
+  if (regno == PS_REGNUM)
     return 1;
   else if (regno == ZERO_REGNUM)
     return 1;
This page took 0.039016 seconds and 4 git commands to generate.