aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppcfbsd-tdep.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-05-13 11:05:57 +0000
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-05-21 17:49:15 +0200
commit09424cff8c26073312e0bdc342989a955c766e31 (patch)
treee219a564fa56a47ef17b5d75cc47373d9a8b64c4 /gdb/ppcfbsd-tdep.c
parent3ca7dae4ddfb3363458d866428e45fb5e9b6914b (diff)
downloadfsf-binutils-gdb-09424cff8c26073312e0bdc342989a955c766e31.zip
fsf-binutils-gdb-09424cff8c26073312e0bdc342989a955c766e31.tar.gz
fsf-binutils-gdb-09424cff8c26073312e0bdc342989a955c766e31.tar.bz2
Remove 'arch' field from regset structure.
Removes the 'arch' field from the regset structure, since it represents the only "dynamic" data in a regset. It was referenced in some regset supply- and collect routines, to get access to the gdbarch associated with the regset. Naturally, the affected routines always have access to the regcache to be supplied to or collected from. Thus the gdbarch associated with that regcache can be used instead.
Diffstat (limited to 'gdb/ppcfbsd-tdep.c')
-rw-r--r--gdb/ppcfbsd-tdep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/ppcfbsd-tdep.c b/gdb/ppcfbsd-tdep.c
index 77292f3..28f5b7b 100644
--- a/gdb/ppcfbsd-tdep.c
+++ b/gdb/ppcfbsd-tdep.c
@@ -100,8 +100,7 @@ static const struct ppc_reg_offsets ppc64_fbsd_reg_offsets =
static const struct regset ppc32_fbsd_gregset = {
&ppc32_fbsd_reg_offsets,
ppc_supply_gregset,
- ppc_collect_gregset,
- NULL
+ ppc_collect_gregset
};
/* 64-bit general-purpose register set. */
@@ -109,8 +108,7 @@ static const struct regset ppc32_fbsd_gregset = {
static const struct regset ppc64_fbsd_gregset = {
&ppc64_fbsd_reg_offsets,
ppc_supply_gregset,
- ppc_collect_gregset,
- NULL
+ ppc_collect_gregset
};
/* 32-/64-bit floating-point register set. */