From: David S. Miller Date: Sun, 21 Apr 2002 05:34:06 +0000 (+0000) Subject: 2002-04-20 David S. Miller X-Git-Tag: binutils-2_13-branchpoint~1310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1925118356ff9089f8497573b6fd31eb944d141;p=thirdparty%2Fbinutils-gdb.git 2002-04-20 David S. Miller * sparc-nat.c (store-inferior_registers): Fix ambiguous else. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 50ca90d5905..c70041d2c74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-04-20 David S. Miller + + * sparc-nat.c (store-inferior_registers): Fix ambiguous else. + 2002-04-20 Andrew Cagney * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index 7069c3a9ce3..e892fe8fbda 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -155,21 +155,23 @@ store_inferior_registers (int regno) /* First decide which pieces of machine-state we need to modify. Default for regno == -1 case is all pieces. */ if (regno >= 0) - if (FP0_REGNUM <= regno && regno < FP0_REGNUM + 32) - { - wanna_store = FP_REGS; - } - else - { - if (regno == SP_REGNUM) - wanna_store = INT_REGS + STACK_REGS; - else if (regno < L0_REGNUM || regno > I7_REGNUM) - wanna_store = INT_REGS; - else if (regno == FPS_REGNUM) + { + if (FP0_REGNUM <= regno && regno < FP0_REGNUM + 32) + { wanna_store = FP_REGS; - else - wanna_store = STACK_REGS; - } + } + else + { + if (regno == SP_REGNUM) + wanna_store = INT_REGS + STACK_REGS; + else if (regno < L0_REGNUM || regno > I7_REGNUM) + wanna_store = INT_REGS; + else if (regno == FPS_REGNUM) + wanna_store = FP_REGS; + else + wanna_store = STACK_REGS; + } + } /* See if we're forcing the stores to happen now, or deferring. */ if (regno == -2)