[PATCH] ARM: ptrace: Code cleanup

From: Kunwu Chan
Date: Thu Jan 25 2024 - 04:06:22 EST


This part was commented in about 19 years before.

If there are no plans to enable this part code in the future,
we can remove this dead code.

Signed-off-by: Kunwu Chan <chentao@xxxxxxxxxx>
---
arch/arm/kernel/ptrace.c | 8 --------
1 file changed, 8 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index c421a899fc84..71c0b2233f56 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -37,13 +37,6 @@
* in exit.c or in signal.c.
*/

-#if 0
-/*
- * Breakpoint SWI instruction: SWI &9F0001
- */
-#define BREAKINST_ARM 0xef9f0001
-#define BREAKINST_THUMB 0xdf00 /* fill this in later */
-#else
/*
* New breakpoints - use an undefined instruction. The ARM architecture
* reference manual guarantees that the following instruction space
@@ -54,7 +47,6 @@
*/
#define BREAKINST_ARM 0xe7f001f0
#define BREAKINST_THUMB 0xde01
-#endif

struct pt_regs_offset {
const char *name;
--
2.39.2