diff options
author | Marcus Shawcroft <mshawcroft@sourceware.org> | 2013-02-05 13:54:38 +0000 |
---|---|---|
committer | Marcus Shawcroft <mshawcroft@sourceware.org> | 2013-02-05 13:54:38 +0000 |
commit | 14ac654fb82690ec8bf8b9dd621c174ff8321460 (patch) | |
tree | 98dbc660913b7b7f8618b63fbd04b533a36cfaae /gdb | |
parent | 543bf33d07908d18a180dc5a511239dd65df8b56 (diff) | |
download | gdb-14ac654fb82690ec8bf8b9dd621c174ff8321460.zip gdb-14ac654fb82690ec8bf8b9dd621c174ff8321460.tar.gz gdb-14ac654fb82690ec8bf8b9dd621c174ff8321460.tar.bz2 |
* aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
Refactor if statement to avoid trailing || operator.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/aarch64-tdep.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 283f186..a889991 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com> + + * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix: + Refactor if statement to avoid trailing || operator. + 2013-02-05 Andreas Tobler <andreast@fgznet.ch> * NEWS: Add PowerPC FreeBSD as a new native configuration. 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; |