ARM: 6798/1: aout-core: zero thread debug registers in a.out core dump
authorWill Deacon <will.deacon@arm.com>
Thu, 10 Mar 2011 13:03:01 +0000 (14:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 10 Mar 2011 15:16:29 +0000 (15:16 +0000)
commit23bfdacf4eb525ff3404161429cedaa281c23e47
tree82b850e1d22d617cc3e9e648325df38c4ed97c23
parent6fa85e5ce311a8c57fe32cb6403961f7a897112d
ARM: 6798/1: aout-core: zero thread debug registers in a.out core dump

The removal of the single-step emulation from ptrace on ARM means that
thread_struct no longer has software breakpoint fields in its debug
member.

This patch fixes the a.out core dump code so that the debug registers
are zeroed rather than trying to copy from non-existent fields.

Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/a.out-core.h
arch/arm/include/asm/user.h