aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-linux-tdep.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-06-03 19:11:35 +0200
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-08-07 17:31:48 +0200
commit7fefa8d7d6359ec905dbc59bb4e616f386ea2e3d (patch)
treed17b2765075d49e2ec75a0a17313620a451d1a21 /gdb/s390-linux-tdep.c
parent96c4f946a8c8d53141189852c0ba28c45366830b (diff)
downloadgdb-7fefa8d7d6359ec905dbc59bb4e616f386ea2e3d.zip
gdb-7fefa8d7d6359ec905dbc59bb4e616f386ea2e3d.tar.gz
gdb-7fefa8d7d6359ec905dbc59bb4e616f386ea2e3d.tar.bz2
Rename 'descr' field in regset structure to 'regmap'.
The regset structure's 'descr' field is intended to represent some kind of "register map". Thus, before making more use of it, this change renames it to 'regmap' and adjusts the comment appropriately. (See: https://sourceware.org/ml/gdb-patches/2014-05/msg00664.html)
Diffstat (limited to 'gdb/s390-linux-tdep.c')
-rw-r--r--gdb/s390-linux-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c
index d10e47a..d1f4749 100644
--- a/gdb/s390-linux-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -609,7 +609,7 @@ s390_supply_regset (const struct regset *regset, struct regcache *regcache,
int regnum, const void *regs, size_t len)
{
const short *map;
- for (map = regset->descr; map[0] >= 0; map += 2)
+ for (map = regset->regmap; map[0] >= 0; map += 2)
if (regnum == -1 || regnum == map[1])
regcache_raw_supply (regcache, map[1],
regs ? (const char *)regs + map[0] : NULL);
@@ -642,7 +642,7 @@ s390_collect_regset (const struct regset *regset,
int regnum, void *regs, size_t len)
{
const short *map;
- for (map = regset->descr; map[0] >= 0; map += 2)
+ for (map = regset->regmap; map[0] >= 0; map += 2)
if (regnum == -1 || regnum == map[1])
regcache_raw_collect (regcache, map[1], (char *)regs + map[0]);
}