diff options
author | Alex Smith <alex@alex-smith.me.uk> | 2014-07-23 17:40:09 +0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-07-31 01:27:46 +0400 |
commit | c23b3d1a53119849dc3c23c417124deb067aa33d (patch) | |
tree | adec9f6c5adf5556df55619c7217b270ebf68eae /arch/mips/include/asm/ptrace.h | |
parent | bcec7c8da6b092b1ff3327fd83c2193adb12f684 (diff) | |
download | linux-c23b3d1a53119849dc3c23c417124deb067aa33d.tar.xz |
MIPS: ptrace: Change GP regset to use correct core dump register layout
Commit 6a9c001b7ec3 ("MIPS: Switch ELF core dumper to use regsets.")
switched the core dumper to use regsets, however the GP regset code
simply makes a direct copy of the kernel's pt_regs, which does not
match the original core dump register layout as defined in asm/reg.h.
Furthermore, the definition of pt_regs can vary with certain Kconfig
variables, therefore the GP regset can never be relied upon to return
registers in the same layout.
Therefore, this patch changes the GP regset to match the original core
dump layout. The layout differs for 32- and 64-bit processes, so
separate implementations of the get/set functions are added for the
32- and 64-bit regsets.
Signed-off-by: Alex Smith <alex@alex-smith.me.uk>
Cc: <stable@vger.kernel.org> # v3.13+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7452/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/ptrace.h')
0 files changed, 0 insertions, 0 deletions