summaryrefslogtreecommitdiffstats
path: root/arch/x86/um/shared/sysdep/ptrace_user.h
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2023-11-10 12:03:38 +0100
committerRichard Weinberger <richard@nod.at>2024-01-04 23:29:11 +0100
commita55719847da0a780baa84d0baee745358f144c39 (patch)
tree900cd94ee627fbac7cec0469fdc12a46a92057ff /arch/x86/um/shared/sysdep/ptrace_user.h
parenta8e75902f4d7d342350ea3f79e3e65f2bbfa4c8d (diff)
downloadlinux-stable-a55719847da0a780baa84d0baee745358f144c39.tar.gz
linux-stable-a55719847da0a780baa84d0baee745358f144c39.tar.bz2
linux-stable-a55719847da0a780baa84d0baee745358f144c39.zip
um: Drop support for hosts without SYSEMU_SINGLESTEP support
These features have existed since Linux 2.6.14 and can be considered widely available at this point. Also drop the backward compatibility code for PTRACE_SETOPTIONS. Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net> ---- v2: * Continue to define PTRACE_SYSEMU_SINGLESTEP as glibc only added it in version 2.27. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/shared/sysdep/ptrace_user.h')
-rw-r--r--arch/x86/um/shared/sysdep/ptrace_user.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/um/shared/sysdep/ptrace_user.h b/arch/x86/um/shared/sysdep/ptrace_user.h
index 44782bbad41e..1d1a824fa652 100644
--- a/arch/x86/um/shared/sysdep/ptrace_user.h
+++ b/arch/x86/um/shared/sysdep/ptrace_user.h
@@ -15,14 +15,12 @@
#define FP_SIZE ((HOST_FPX_SIZE > HOST_FP_SIZE) ? HOST_FPX_SIZE : HOST_FP_SIZE)
#else
#define FP_SIZE HOST_FP_SIZE
+#endif
/*
- * x86_64 FC3 doesn't define this in /usr/include/linux/ptrace.h even though
- * it's defined in the kernel's include/linux/ptrace.h. Additionally, use the
- * 2.4 name and value for 2.4 host compatibility.
+ * glibc before 2.27 does not include PTRACE_SYSEMU_SINGLESTEP in its enum,
+ * ensure we have a definition by (re-)defining it here.
*/
-#ifndef PTRACE_OLDSETOPTIONS
-#define PTRACE_OLDSETOPTIONS 21
-#endif
-
+#ifndef PTRACE_SYSEMU_SINGLESTEP
+#define PTRACE_SYSEMU_SINGLESTEP 32
#endif