1 From a2d5a9d76f2366ed93095fc5a63eafa06b22f808 Mon Sep 17 00:00:00 2001
2 From: Max Filippov <jcmvbkbc@gmail.com>
3 Date: Fri, 17 Apr 2015 02:52:50 +0300
4 Subject: [PATCH 2/2] gdbserver/xtensa: fix typo in XCHAL_HAVE_LOOPS
6 This fixes lbeg/lend/lcount registers handling through gdbserver.
8 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10 * linux-xtensa-low.c (xtensa_fill_gregset)
11 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
14 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
16 Backported from: a2d5a9d76f2366ed93095fc5a63eafa06b22f808
17 Changes to ChangeLog are dropped.
19 gdb/gdbserver/linux-xtensa-low.c | 4 ++--
20 2 files changed, 8 insertions(+), 2 deletions(-)
22 diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdb/gdbserver/linux-xtensa-low.c
23 index e786da5..4daccee 100644
24 --- a/gdb/gdbserver/linux-xtensa-low.c
25 +++ b/gdb/gdbserver/linux-xtensa-low.c
26 @@ -59,7 +59,7 @@ xtensa_fill_gregset (struct regcache *regcache, void *buf)
28 /* Loop registers, if hardware has it. */
32 collect_register_by_name (regcache, "lbeg", (char*)&rset[R_LBEG]);
33 collect_register_by_name (regcache, "lend", (char*)&rset[R_LEND]);
34 collect_register_by_name (regcache, "lcount", (char*)&rset[R_LCOUNT]);
35 @@ -94,7 +94,7 @@ xtensa_store_gregset (struct regcache *regcache, const void *buf)
37 /* Loop registers, if hardware has it. */
41 supply_register_by_name (regcache, "lbeg", (char*)&rset[R_LBEG]);
42 supply_register_by_name (regcache, "lend", (char*)&rset[R_LEND]);
43 supply_register_by_name (regcache, "lcount", (char*)&rset[R_LCOUNT]);