ARM: Fix kgdb breakpoint for Thumb2
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 16 Feb 2022 15:37:38 +0000 (15:37 +0000)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 21 Feb 2022 14:56:53 +0000 (14:56 +0000)
commitd920eaa4c4559f59be7b4c2d26fa0a2e1aaa3da9
treee44e05f64a7b9701dda5a25d45c4a40d46af4ed6
parent9f80ccda53b9417236945bc7ece4b519037df74d
ARM: Fix kgdb breakpoint for Thumb2

The kgdb code needs to register an undef hook for the Thumb UDF
instruction that will fault in order to be functional on Thumb2
platforms.

Reported-by: Johannes Stezenbach <js@sig21.net>
Tested-by: Johannes Stezenbach <js@sig21.net>
Fixes: 5cbad0ebf45c ("kgdb: support for ARCH=arm")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/kgdb.c