[binutils-gdb] gdb: fix ARI warning in sparc-tdep.c

Jose E.Marchesi jemarch@sourceware.org
Tue Feb 7 21:26:00 GMT 2017


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1291063deab60b735429411b29eea9d7fd68d50e

commit 1291063deab60b735429411b29eea9d7fd68d50e
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date:   Tue Feb 7 13:21:54 2017 -0800

    gdb: fix ARI warning in sparc-tdep.c
    
    gdb/ChangeLog:
    
    2017-02-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
    
    	* sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
    	at the end of the line.

Diff:
---
 gdb/ChangeLog    | 5 +++++
 gdb/sparc-tdep.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5751ee7..71ea08d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+	* sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
+	at the end of the line.  Avoids an ARI warning.
+
 2017-02-06  Luis Machado  <lgustavo@codesourcery.com>
 
 	* NEWS: Mention support for record/replay of Intel 64 rdrand and
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index afbcf2e..b605da7 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1825,8 +1825,8 @@ sparc32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
                                            "org.gnu.gdb.sparc.cp0",
                                            tdep->cp0_register_names,
                                            tdep->cp0_registers_num,
-                                           SPARC_F0_REGNUM + 
-                                           tdep->fpu_registers_num);
+                                           SPARC_F0_REGNUM
+                                           + tdep->fpu_registers_num);
       if (!valid_p)
         {
           tdesc_data_cleanup (tdesc_data);



More information about the Gdb-cvs mailing list