-/* 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.
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;
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;