This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdbserver/xtensa: fix typo in XCHAL_HAVE_LOOPS


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

commit a2d5a9d76f2366ed93095fc5a63eafa06b22f808
Author: Max Filippov <jcmvbkbc@gmail.com>
Date:   Fri Apr 17 02:52:50 2015 +0300

    gdbserver/xtensa: fix typo in XCHAL_HAVE_LOOPS
    
    This fixes lbeg/lend/lcount registers handling through gdbserver.
    
    2015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
    gdb/gdbserver/
    	* linux-xtensa-low.c (xtensa_fill_gregset)
    	(xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
    	XCHAL_HAVE_LOOP.

Diff:
---
 gdb/gdbserver/ChangeLog          | 6 ++++++
 gdb/gdbserver/linux-xtensa-low.c | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 6934781..9483450 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,11 @@
 2015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
 
+	* linux-xtensa-low.c (xtensa_fill_gregset)
+	(xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
+	XCHAL_HAVE_LOOP.
+
+2015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
+
 	* linux-xtensa-low.c (xtensa_usrregs_info): Remove.
 	(regs_info): Replace usrregs pointer with NULL.
 
diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdb/gdbserver/linux-xtensa-low.c
index e786da5..4daccee 100644
--- a/gdb/gdbserver/linux-xtensa-low.c
+++ b/gdb/gdbserver/linux-xtensa-low.c
@@ -59,7 +59,7 @@ xtensa_fill_gregset (struct regcache *regcache, void *buf)
 
   /* Loop registers, if hardware has it.  */
 
-#if XCHAL_HAVE_LOOP
+#if XCHAL_HAVE_LOOPS
   collect_register_by_name (regcache, "lbeg", (char*)&rset[R_LBEG]);
   collect_register_by_name (regcache, "lend", (char*)&rset[R_LEND]);
   collect_register_by_name (regcache, "lcount", (char*)&rset[R_LCOUNT]);
@@ -94,7 +94,7 @@ xtensa_store_gregset (struct regcache *regcache, const void *buf)
 
   /* Loop registers, if hardware has it.  */
 
-#if XCHAL_HAVE_LOOP
+#if XCHAL_HAVE_LOOPS
   supply_register_by_name (regcache, "lbeg", (char*)&rset[R_LBEG]);
   supply_register_by_name (regcache, "lend", (char*)&rset[R_LEND]);
   supply_register_by_name (regcache, "lcount", (char*)&rset[R_LCOUNT]);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]