diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 686e4bedee9..2dfde70e5c1 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3531,9 +3531,7 @@ procfs_fetch_registers (regno) #if defined (FP0_REGNUM) /* need floating point? */ if ((regno >= 0 && regno < FP0_REGNUM) || regno == PC_REGNUM || -#ifdef NPC_REGNUM - regno == NPC_REGNUM || -#endif + (NPC_REGNUM >= 0 && regno == NPC_REGNUM) || regno == FP_REGNUM || regno == SP_REGNUM) return; /* not a floating point register */ @@ -3607,9 +3605,7 @@ procfs_store_registers (regno) #if defined (FP0_REGNUM) /* need floating point? */ if ((regno >= 0 && regno < FP0_REGNUM) || regno == PC_REGNUM || -#ifdef NPC_REGNUM - regno == NPC_REGNUM || -#endif + (NPC_REGNUM >= 0 && regno == NPC_REGNUM) || regno == FP_REGNUM || regno == SP_REGNUM) return; /* not a floating point register */ |