Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2019 18:00:03 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351821 - head/sys/amd64/linux
Message-ID:  <201909041800.x84I03ZQ071188@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed Sep  4 18:00:03 2019
New Revision: 351821
URL: https://svnweb.freebsd.org/changeset/base/351821

Log:
  Improve debugging output.
  
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/amd64/linux/linux_ptrace.c

Modified: head/sys/amd64/linux/linux_ptrace.c
==============================================================================
--- head/sys/amd64/linux/linux_ptrace.c	Wed Sep  4 17:52:30 2019	(r351820)
+++ head/sys/amd64/linux/linux_ptrace.c	Wed Sep  4 18:00:03 2019	(r351821)
@@ -319,6 +319,22 @@ linux_ptrace_peek(struct thread *td, pid_t pid, void *
 }
 
 static int
+linux_ptrace_peekuser(struct thread *td, pid_t pid, void *addr, void *data)
+{
+
+	linux_msg(td, "PTRACE_PEEKUSER not implemented; returning EINVAL");
+	return (EINVAL);
+}
+
+static int
+linux_ptrace_pokeuser(struct thread *td, pid_t pid, void *addr, void *data)
+{
+
+	linux_msg(td, "PTRACE_POKEUSER not implemented; returning EINVAL");
+	return (EINVAL);
+}
+
+static int
 linux_ptrace_setoptions(struct thread *td, pid_t pid, l_ulong data)
 {
 	struct linux_pemuldata *pem;
@@ -566,11 +582,17 @@ linux_ptrace(struct thread *td, struct linux_ptrace_ar
 		error = linux_ptrace_peek(td, pid,
 		    (void *)(uap->addr + 4), (void *)(uap->data + 4));
 		break;
+	case LINUX_PTRACE_PEEKUSER:
+		error = linux_ptrace_peekuser(td, pid, addr, (void *)uap->data);
+		break;
 	case LINUX_PTRACE_POKETEXT:
 		error = kern_ptrace(td, PT_WRITE_I, pid, addr, uap->data);
 		break;
 	case LINUX_PTRACE_POKEDATA:
 		error = kern_ptrace(td, PT_WRITE_D, pid, addr, uap->data);
+		break;
+	case LINUX_PTRACE_POKEUSER:
+		error = linux_ptrace_pokeuser(td, pid, addr, (void *)uap->data);
 		break;
 	case LINUX_PTRACE_CONT:
 		error = map_signum(uap->data, &sig);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909041800.x84I03ZQ071188>