diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-01-05 14:44:20 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-01-05 14:45:05 +0000 |
commit | 1c33cd7f00c7b2d195cdb004559332c397663bae (patch) | |
tree | 18be2a89c6f5f76f5c4161bcfe4cd9c3dc31b856 /gdb/mips-fbsd-tdep.c | |
parent | 0ae60c3ef45d41b34d40ed5c7b4fdfea289530de (diff) | |
download | fsf-binutils-gdb-1c33cd7f00c7b2d195cdb004559332c397663bae.zip fsf-binutils-gdb-1c33cd7f00c7b2d195cdb004559332c397663bae.tar.gz fsf-binutils-gdb-1c33cd7f00c7b2d195cdb004559332c397663bae.tar.bz2 |
Fix ARI warning
This patch splits the expression before the && operator instead of
after it.
gdb:
2017-01-05 Yao Qi <yao.qi@linaro.org>
* mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
new line.
(mips64_fbsd_sigframe_init): Likewise.
Diffstat (limited to 'gdb/mips-fbsd-tdep.c')
-rw-r--r-- | gdb/mips-fbsd-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mips-fbsd-tdep.c b/gdb/mips-fbsd-tdep.c index ba8c07e..00fae0e 100644 --- a/gdb/mips-fbsd-tdep.c +++ b/gdb/mips-fbsd-tdep.c @@ -332,8 +332,8 @@ mips_fbsd_sigframe_init (const struct tramp_frame *self, regnum + gdbarch_num_regs (gdbarch), ucontext_addr + O32_UCONTEXT_HI); - if (target_read_memory (ucontext_addr + O32_UCONTEXT_FPUSED, buf, 4) == 0 && - extract_unsigned_integer (buf, 4, byte_order) != 0) + if (target_read_memory (ucontext_addr + O32_UCONTEXT_FPUSED, buf, 4) == 0 + && extract_unsigned_integer (buf, 4, byte_order) != 0) { for (regnum = 0, addr = ucontext_addr + O32_UCONTEXT_FPREGS; regnum < 32; regnum++, addr += O32_UCONTEXT_REG_SIZE) @@ -424,8 +424,8 @@ mips64_fbsd_sigframe_init (const struct tramp_frame *self, regnum + gdbarch_num_regs (gdbarch), ucontext_addr + N64_UCONTEXT_HI); - if (target_read_memory (ucontext_addr + N64_UCONTEXT_FPUSED, buf, 4) == 0 && - extract_unsigned_integer (buf, 4, byte_order) != 0) + if (target_read_memory (ucontext_addr + N64_UCONTEXT_FPUSED, buf, 4) == 0 + && extract_unsigned_integer (buf, 4, byte_order) != 0) { for (regnum = 0, addr = ucontext_addr + N64_UCONTEXT_FPREGS; regnum < 32; regnum++, addr += N64_UCONTEXT_REG_SIZE) |