Commit e961d370 authored by Al Viro's avatar Al Viro

[elf][non-regset] use elf_core_copy_task_regs() for dumper as well

elf_core_copy_regs() is equivalent to elf_core_copy_task_regs() of
current on all architectures.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bdbadfcc
...@@ -2072,7 +2072,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, ...@@ -2072,7 +2072,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
/* now collect the dump for the current */ /* now collect the dump for the current */
memset(info->prstatus, 0, sizeof(*info->prstatus)); memset(info->prstatus, 0, sizeof(*info->prstatus));
fill_prstatus(&info->prstatus->common, current, cprm->siginfo->si_signo); fill_prstatus(&info->prstatus->common, current, cprm->siginfo->si_signo);
elf_core_copy_regs(&info->prstatus->pr_reg, task_pt_regs(current)); elf_core_copy_task_regs(current, &info->prstatus->pr_reg);
/* Set up header */ /* Set up header */
fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment