mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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.
This commit is contained in:
parent
0ae60c3ef4
commit
1c33cd7f00
@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2017-01-04 John Baldwin <jhb@FreeBSD.org>
|
2017-01-04 John Baldwin <jhb@FreeBSD.org>
|
||||||
|
|
||||||
* mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
|
* mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
|
||||||
|
@ -332,8 +332,8 @@ mips_fbsd_sigframe_init (const struct tramp_frame *self,
|
|||||||
regnum + gdbarch_num_regs (gdbarch),
|
regnum + gdbarch_num_regs (gdbarch),
|
||||||
ucontext_addr + O32_UCONTEXT_HI);
|
ucontext_addr + O32_UCONTEXT_HI);
|
||||||
|
|
||||||
if (target_read_memory (ucontext_addr + O32_UCONTEXT_FPUSED, buf, 4) == 0 &&
|
if (target_read_memory (ucontext_addr + O32_UCONTEXT_FPUSED, buf, 4) == 0
|
||||||
extract_unsigned_integer (buf, 4, byte_order) != 0)
|
&& extract_unsigned_integer (buf, 4, byte_order) != 0)
|
||||||
{
|
{
|
||||||
for (regnum = 0, addr = ucontext_addr + O32_UCONTEXT_FPREGS;
|
for (regnum = 0, addr = ucontext_addr + O32_UCONTEXT_FPREGS;
|
||||||
regnum < 32; regnum++, addr += O32_UCONTEXT_REG_SIZE)
|
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),
|
regnum + gdbarch_num_regs (gdbarch),
|
||||||
ucontext_addr + N64_UCONTEXT_HI);
|
ucontext_addr + N64_UCONTEXT_HI);
|
||||||
|
|
||||||
if (target_read_memory (ucontext_addr + N64_UCONTEXT_FPUSED, buf, 4) == 0 &&
|
if (target_read_memory (ucontext_addr + N64_UCONTEXT_FPUSED, buf, 4) == 0
|
||||||
extract_unsigned_integer (buf, 4, byte_order) != 0)
|
&& extract_unsigned_integer (buf, 4, byte_order) != 0)
|
||||||
{
|
{
|
||||||
for (regnum = 0, addr = ucontext_addr + N64_UCONTEXT_FPREGS;
|
for (regnum = 0, addr = ucontext_addr + N64_UCONTEXT_FPREGS;
|
||||||
regnum < 32; regnum++, addr += N64_UCONTEXT_REG_SIZE)
|
regnum < 32; regnum++, addr += N64_UCONTEXT_REG_SIZE)
|
||||||
|
Loading…
Reference in New Issue
Block a user