The branch main has been updated by trasz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e3a83df1195cc4f48f2908b423b5c80dd9c49a21

commit e3a83df1195cc4f48f2908b423b5c80dd9c49a21
Author:     Edward Tomasz Napierala <[email protected]>
AuthorDate: 2021-10-22 18:58:52 +0000
Commit:     Edward Tomasz Napierala <[email protected]>
CommitDate: 2021-10-23 08:30:06 +0000

    linux: Improve debug for PTRACE_GETREGSET
    
    No functional changes.
    
    Sponsored By:   EPSRC
---
 sys/amd64/linux/linux_ptrace.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/amd64/linux/linux_ptrace.c b/sys/amd64/linux/linux_ptrace.c
index 370b1c818b6f..b8123221f463 100644
--- a/sys/amd64/linux/linux_ptrace.c
+++ b/sys/amd64/linux/linux_ptrace.c
@@ -85,6 +85,7 @@ __FBSDID("$FreeBSD$");
 #define        LINUX_PTRACE_O_SUSPEND_SECCOMP  2097152
 
 #define        LINUX_NT_PRSTATUS               0x1
+#define        LINUX_NT_PRFPREG                0x2
 #define        LINUX_NT_X86_XSTATE             0x202
 
 #define        LINUX_PTRACE_O_MASK     (LINUX_PTRACE_O_TRACESYSGOOD |  \
@@ -541,6 +542,10 @@ linux_ptrace_getregset(struct thread *td, pid_t pid, 
l_ulong addr, l_ulong data)
        switch (addr) {
        case LINUX_NT_PRSTATUS:
                return (linux_ptrace_getregset_prstatus(td, pid, data));
+       case LINUX_NT_PRFPREG:
+               linux_msg(td, "PTRAGE_GETREGSET NT_PRFPREG not implemented; "
+                   "returning EINVAL");
+               return (EINVAL);
        case LINUX_NT_X86_XSTATE:
                linux_msg(td, "PTRAGE_GETREGSET NT_X86_XSTATE not implemented; "
                    "returning EINVAL");

Reply via email to