mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
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.
This commit is contained in:

committed by
Andreas Krebbel

parent
3ca7dae4dd
commit
09424cff8c
@ -498,36 +498,31 @@ static const struct ppc_reg_offsets ppc64_linux_reg_offsets =
|
||||
static const struct regset ppc32_linux_gregset = {
|
||||
&ppc32_linux_reg_offsets,
|
||||
ppc_linux_supply_gregset,
|
||||
ppc_linux_collect_gregset,
|
||||
NULL
|
||||
ppc_linux_collect_gregset
|
||||
};
|
||||
|
||||
static const struct regset ppc64_linux_gregset = {
|
||||
&ppc64_linux_reg_offsets,
|
||||
ppc_linux_supply_gregset,
|
||||
ppc_linux_collect_gregset,
|
||||
NULL
|
||||
ppc_linux_collect_gregset
|
||||
};
|
||||
|
||||
static const struct regset ppc32_linux_fpregset = {
|
||||
&ppc32_linux_reg_offsets,
|
||||
ppc_supply_fpregset,
|
||||
ppc_collect_fpregset,
|
||||
NULL
|
||||
ppc_collect_fpregset
|
||||
};
|
||||
|
||||
static const struct regset ppc32_linux_vrregset = {
|
||||
&ppc32_linux_reg_offsets,
|
||||
ppc_supply_vrregset,
|
||||
ppc_collect_vrregset,
|
||||
NULL
|
||||
ppc_collect_vrregset
|
||||
};
|
||||
|
||||
static const struct regset ppc32_linux_vsxregset = {
|
||||
&ppc32_linux_reg_offsets,
|
||||
ppc_supply_vsxregset,
|
||||
ppc_collect_vsxregset,
|
||||
NULL
|
||||
ppc_collect_vsxregset
|
||||
};
|
||||
|
||||
const struct regset *
|
||||
|
Reference in New Issue
Block a user