diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-07-15 11:18:35 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2014-08-07 17:31:48 +0200 |
commit | 99b7da5d7acfeabdd186ee15e9b182db20feabac (patch) | |
tree | 22a1f4d5c7b3a3cf61107bd3c17f985998c0a7bc /gdb/s390-linux-tdep.h | |
parent | 0b3092721e5cfa1697f1dafe81efefdbb0236f21 (diff) | |
download | gdb-99b7da5d7acfeabdd186ee15e9b182db20feabac.zip gdb-99b7da5d7acfeabdd186ee15e9b182db20feabac.tar.gz gdb-99b7da5d7acfeabdd186ee15e9b182db20feabac.tar.bz2 |
S390: Migrate to regcache_supply/collect_regset.
Rather than supplying own supply/collect functions, use the generic
functions regcache_supply_regset and regcache_collect_regset instead.
The register maps are rewritten accordingly and become much shorter
(and better readable) than before.
Diffstat (limited to 'gdb/s390-linux-tdep.h')
-rw-r--r-- | gdb/s390-linux-tdep.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/s390-linux-tdep.h b/gdb/s390-linux-tdep.h index 52bed9d..1e12000 100644 --- a/gdb/s390-linux-tdep.h +++ b/gdb/s390-linux-tdep.h @@ -150,15 +150,14 @@ /* Core file register sets, defined in s390-tdep.c. */ #define s390_sizeof_gregset 0x90 -extern const short s390_regmap_gregset[]; #define s390x_sizeof_gregset 0xd8 -extern const short s390x_regmap_gregset[]; +extern const struct regset s390_gregset; #define s390_sizeof_fpregset 0x88 -extern const short s390_regmap_fpregset[]; -extern const short s390_regmap_last_break[]; -extern const short s390x_regmap_last_break[]; -extern const short s390_regmap_system_call[]; -extern const short s390_regmap_tdb[]; +extern const struct regset s390_fpregset; +extern const struct regset s390_last_break_regset; +extern const struct regset s390x_last_break_regset; +extern const struct regset s390_system_call_regset; +extern const struct regset s390_tdb_regset; #define s390_sizeof_tdbregset 0x100 /* GNU/Linux target descriptions. */ |