[PATCH 03/27] um: Drop support for hosts without SYSEMU_SINGLESTEP support
Richard Weinberger
richard.weinberger at gmail.com
Sat Jun 19 13:17:55 PDT 2021
On Thu, Mar 4, 2021 at 12:03 AM Benjamin Berg <benjamin at sipsolutions.net> wrote:
>
> These features have existed since Linux 2.6.14 and can be considered
> widely available at this point.
[...]
> -#ifndef PTRACE_SYSEMU
> -#define PTRACE_SYSEMU 31
> -#endif
> -#ifndef PTRACE_SYSEMU_SINGLESTEP
> -#define PTRACE_SYSEMU_SINGLESTEP 32
> -#endif
Where did you test this? On my OpenSUSE 15.2 machine this change
causes a build failure.
arch/um/os-Linux/start_up.c: In function ‘check_sysemu’:
arch/um/os-Linux/start_up.c:153:14: error: ‘PTRACE_SYSEMU_SINGLESTEP’
undeclared (first use in this function); did you mean
‘PTRACE_SINGLESTEP’?
if (ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, 0) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~
PTRACE_SINGLESTEP
I think we need to carefully include the right asm headers.
--
Thanks,
//richard
More information about the linux-um
mailing list