93fe749ef0bd45c06099e558381362578a2697ae
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gdb / 7.9 / 0002-gdbserver-xtensa-drop-xtensa_usrregs_info.patch
1 From deb44829ecc1dd38275af0fcf91acd319e227a89 Mon Sep 17 00:00:00 2001
2 From: Max Filippov <jcmvbkbc@gmail.com>
3 Date: Fri, 17 Apr 2015 03:07:41 +0300
4 Subject: [PATCH 1/2] gdbserver/xtensa: drop xtensa_usrregs_info
5
6 xtensa_usrregs_info refers to undefined variables xtensa_num_regs and
7 xtensa_regmap. Drop xtensa_usrregs_info and replace pointer to usrregs
8 in regs_info with NULL since all registers are read/set through regsets.
9
10 2015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
11 gdb/gdbserver/
12         * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
13         (regs_info): Replace usrregs pointer with NULL.
14
15 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
16 ---
17 Backported from: deb44829ecc1dd38275af0fcf91acd319e227a89
18 Changes to ChangeLog are dropped.
19
20  gdb/gdbserver/linux-xtensa-low.c | 8 +-------
21  2 files changed, 6 insertions(+), 7 deletions(-)
22
23 diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdb/gdbserver/linux-xtensa-low.c
24 index f7fafaf..e786da5 100644
25 --- a/gdb/gdbserver/linux-xtensa-low.c
26 +++ b/gdb/gdbserver/linux-xtensa-low.c
27 @@ -186,16 +186,10 @@ static struct regsets_info xtensa_regsets_info =
28      NULL, /* disabled_regsets */
29    };
30  
31 -static struct usrregs_info xtensa_usrregs_info =
32 -  {
33 -    xtensa_num_regs,
34 -    xtensa_regmap,
35 -  };
36 -
37  static struct regs_info regs_info =
38    {
39      NULL, /* regset_bitmap */
40 -    &xtensa_usrregs_info,
41 +    NULL, /* usrregs */
42      &xtensa_regsets_info
43    };
44  
45 -- 
46 1.8.1.4
47