This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Kill sparc-nat.c compile warning
- From: "David S. Miller" <davem at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 19 Apr 2002 22:01:49 -0700 (PDT)
- Subject: [RFA] Kill sparc-nat.c compile warning
Pretty straightforward, fix an ambiguous else warning.
2002-04-19 David S. Miller <davem@redhat.com>
* sparc-nat.c (store-inferior_registers): Fix ambiguous else.
--- sparc-nat.c.~1~ Wed Mar 20 18:03:13 2002
+++ sparc-nat.c Fri Apr 19 22:05:47 2002
@@ -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)