]> git.baikalelectronics.ru Git - kernel.git/commit
csky: bugfix gdb coredump error.
authorGuo Ren <ren_guo@c-sky.com>
Sun, 30 Dec 2018 17:06:53 +0000 (01:06 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 31 Dec 2018 02:59:19 +0000 (10:59 +0800)
commitf603670d0814b1abb3bd8e89ed1c6707fc9d3999
treee4f39a975ef26b825895a6237cffe22313752fd9
parent6c6a52a21ee08475f4cda83e42254c7b2a6c4434
csky: bugfix gdb coredump error.

In gdb/bfd elf32-csky.c, csky_elf_grok_prstatus() use fixed size of
elf_prstatus. It's 148 for abiv1 and 220 for abiv2, the size is enough
for coredump and no need full sizeof(struct pt_regs).

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Reported-by: Lu Baoquan <lu.baoquan@intellif.com>
Reported-by: Liu Mao <liu.mao@intellif.com>
arch/csky/include/asm/elf.h