The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gdb / 7.9 / 0003-gdbserver-xtensa-fix-typo-in-XCHAL_HAVE_LOOPS.patch
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
5
6 This fixes lbeg/lend/lcount registers handling through gdbserver.
7
8 2015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
9 gdb/gdbserver/
10         * linux-xtensa-low.c (xtensa_fill_gregset)
11         (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
12         XCHAL_HAVE_LOOP.
13
14 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
15 ---
16 Backported from: a2d5a9d76f2366ed93095fc5a63eafa06b22f808
17 Changes to ChangeLog are dropped.
18
19  gdb/gdbserver/linux-xtensa-low.c | 4 ++--
20  2 files changed, 8 insertions(+), 2 deletions(-)
21
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)
27  
28    /* Loop registers, if hardware has it.  */
29  
30 -#if XCHAL_HAVE_LOOP
31 +#if XCHAL_HAVE_LOOPS
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)
36  
37    /* Loop registers, if hardware has it.  */
38  
39 -#if XCHAL_HAVE_LOOP
40 +#if XCHAL_HAVE_LOOPS
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]);
44 -- 
45 1.8.1.4
46