gdbserver/xtensa: fix typo in XCHAL_HAVE_LOOPS
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 16 Apr 2015 23:52:50 +0000 (02:52 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 Apr 2015 14:19:48 +0000 (17:19 +0300)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-xtensa-low.c

index 6934781369b695acf974217a4f1755142802ebd8..94834504eb17dc25e83565add9b70bd62ab772cf 100644 (file)
@@ -1,3 +1,9 @@
+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.
index e786da5314a076b318dff495f68b3bb4d5122940..4dacceebc718e5a5af576ca80753e8ef83f880ba 100644 (file)
@@ -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]);
This page took 0.038794 seconds and 4 git commands to generate.