Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix layout in aarch64-tdep.c
@ 2013-02-05 12:58 Marcus Shawcroft
  2013-02-05 13:04 ` Pierre Muller
  2013-02-05 13:06 ` Pedro Alves
  0 siblings, 2 replies; 3+ messages in thread
From: Marcus Shawcroft @ 2013-02-05 12:58 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

This patch fixes the gripe:

0a1,2
 > gdb/aarch64-tdep.c:776: code: OP eol: Do not use &&, or || at the end 
of a line
gdb/aarch64-tdep.c:776:                                  pv_add_constant 
(regs[rn], imm)) ||


OK?

/Marcus

ChangeLog:
 

        * aarch64-tdep.c (aarch64_analyze_prologue): Refactor if statement
        with trailing || operator.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-aarch64-tdep-layout.diff --]
[-- Type: text/x-patch; name=0001-aarch64-tdep-layout.diff, Size: 607 bytes --]

diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index ac4ed17..ebc78d6 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -773,8 +773,10 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch,
 	     (perhaps because rn is not known) then we should abandon
 	     further prologue analysis.  */
 	  if (pv_area_store_would_trash (stack,
-					 pv_add_constant (regs[rn], imm)) ||
-	      pv_area_store_would_trash (stack,
+					 pv_add_constant (regs[rn], imm)))
+	    break;
+
+	  if (pv_area_store_would_trash (stack,
 					 pv_add_constant (regs[rn], imm + 8)))
 	    break;
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-05 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05 12:58 [PATCH] Fix layout in aarch64-tdep.c Marcus Shawcroft
2013-02-05 13:04 ` Pierre Muller
2013-02-05 13:06 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox