public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* New ARI warning Tue Sep  4 01:56:28 UTC 2018
@ 2018-09-04  1:56 GDB Administrator
  2018-09-04 10:59 ` Andrew Burgess
  0 siblings, 1 reply; 2+ messages in thread
From: GDB Administrator @ 2018-09-04  1:56 UTC (permalink / raw)
  To: gdb-patches

474a475
> gdb/riscv-tdep.c:2560: code: OP eol: Do not use &&, or || at the end of a line
gdb/riscv-tdep.c:2560:    = (get_frame_register_signed (this_frame, cache->frame_base_reg) +

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

* Re: New ARI warning Tue Sep  4 01:56:28 UTC 2018
  2018-09-04  1:56 New ARI warning Tue Sep 4 01:56:28 UTC 2018 GDB Administrator
@ 2018-09-04 10:59 ` Andrew Burgess
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Burgess @ 2018-09-04 10:59 UTC (permalink / raw)
  To: gdb-patches

* GDB Administrator <gdbadmin@sourceware.org> [2018-09-04 01:56:28 +0000]:

> 474a475
> > gdb/riscv-tdep.c:2560: code: OP eol: Do not use &&, or || at the end of a line
> gdb/riscv-tdep.c:2560:    = (get_frame_register_signed (this_frame, cache->frame_base_reg) +

Sorry for that.

Pushed the patch below to fix this issue.

Thanks,
Andrew

---

gdb/riscv: Fix an ARI warning

This patch fixes an ARI violation in riscv-tdep.c (line ends with
'+').

gdb/ChangeLog:

	* riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
	line with '+'.
---
 gdb/ChangeLog    | 5 +++++
 gdb/riscv-tdep.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index b2247b59f6f..254914c9c7e 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -2557,8 +2557,8 @@ riscv_frame_cache (struct frame_info *this_frame, void **this_cache)
 
   /* We can now calculate the frame base address.  */
   cache->frame_base
-    = (get_frame_register_signed (this_frame, cache->frame_base_reg) +
-       cache->frame_base_offset);
+    = (get_frame_register_signed (this_frame, cache->frame_base_reg)
+       + cache->frame_base_offset);
   if (riscv_debug_unwinder)
     fprintf_unfiltered (gdb_stdlog, "Frame base is %s ($%s + 0x%x)\n",
                         core_addr_to_string (cache->frame_base),
-- 
2.14.4

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

end of thread, other threads:[~2018-09-04 10:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04  1:56 New ARI warning Tue Sep 4 01:56:28 UTC 2018 GDB Administrator
2018-09-04 10:59 ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).